Debian Kernel strangeness

ajt on 2005-04-18T14:28:08

Over the weekend I started to build a scrap computer for someone. It's a real monster, two tiny hard-drives, non-original CPU, CD-ROM, ethernet and RAM, it's all the bits of other computers that didn't get thrown away.

The new Debian Installer wouldn't install properly, it jammed when checking out the hard drives. A real pity as it's very nice for a text installer.

The old Debian Woody installer worked okay, and I was even able to apt-get the minimal install up to Debian Sarge status without any problems. I switched from LILO to GRUB, and deleted a few old things. However, though it's running Debian Sarge it still has an antique 2.2.20 kernel, so I added a 2.4 and 2.6 kernel to see if they would work.

So far I can't get it to boot with a 2.4 or 2.6 kernel, both fail on the boot sequence when the "Check Partition" starts, neither like the ancient 500Mb hdb that the box has. Kernel 2.2 is perfectly happy though, and with that booted, all is okay.

I don't know what to do next. I'd rather run a more modern kernel, the stock 2.2.20 is harldy modern, optimised, or secure. I can't run iptables on it either, which is one of the things I want to be able to do.

Strange...


Debian strangeness

kjones4 on 2005-04-18T18:25:25

What is the CPU in the frankenstein machine? I'm just guessing, but maybe the 2.4/2.6 kernel is compiled for something newer than the CPU can handle.

Re:Debian strangeness

ajt on 2005-04-18T18:56:25

Thought of that, they 2.2 and 2.6 kernels are stock i386 and the 2.4 kernel is i586. The CPU is a genuine Intel Pentium 133, a 586 processor, which I have run with stock Debian 586 kernels before.

I'm now wondering if it's something to do with the age of the second hard drive. The motherboard is antique but functional, the IDE interface is PIO, no DMA, and the second drive is even older, pre LBA even...

Re:Debian strangeness

Aristotle on 2005-04-19T14:49:52

The newer kernels might be compiled to turn on DMA by default and if so that may be the culprit.

Re:Debian strangeness

ajt on 2005-04-19T15:31:25

I must admit that DMA was my first guess, but passing ide=nodma doesn't seem to make any difference, I could see that DMA was disabled, but it still failed the partition check.

The problem is I don't know enough about working with a kernels to know what to do next. Another fear is that the drive doesn't do LBA, but that the kernel is assuming it will. Tonight I'm going to read the lable on the drive to make sure that the geometry is correct, it could be something as simple as that...

Even if I don't get it all to work, it's a useful learning experience.

Knoppix/Mepis

gizmo_mathboy on 2005-04-19T00:06:49

I'm lazy and if I'm going to use a debian based distro I will use Knoppix or Mepis LiveCD's for the install. Like I said, I'm lazy.

Re:Knoppix/Mepis

ajt on 2005-04-19T08:15:11

I did consider this, BUT it's so antique that it can't boot from a CD, it's floppy or hard disk only...