Requiremenets for a minimal Linux system
Hi. As a learning exercise I'm trying to piece together a very minimal Linux system. At the moment I keep getting a kernel panic suggesting that it can't load the root file system. I've been trying various different suggestions on which drivers I need and no joy.
It's occurred to me that some of the supporting system may be to blame and I was hoping someone might run their eyes over the following and let me know if there is anything missing or wrong with it: (I know I will need to add more to make a useful system, I'm just after one that boots for now) I'm using grub as the boot loader, installed in /boot/grub on the root file system. This is my menu.lst Code:
default 0 The Root file system itself contains very little: Code:
/boot ... containing the kernel (bzImage) Thanks |
Quote:
Surly that is wrong. Did you try root=/dev/hda1 ? |
Quote:
For my understanding, am I right to think that "root=/dev/hda1" doesn't need me to actually have "/dev/hda1" created on my system? |
Yes, you'll need to have the hard drive devices available or you're not going to get very far (I think even if you specify the patitions by their UUID, you still need the device files). You'll probably need a few more like mem and kmem too...
|
Is there a reason you are not using an initrd?.
|
Quote:
-- Is the memory capable enough without initrd? -- grub> root (hd0,0) kernel /boot/name-of-bzImage root=/dev/sda initrd /boot/"if-you-have".gz Hope this helps. |
Quote:
How does the kernel use them since the device files won't be available unti the root file system has been loaded ... wont it? Thanks for all your help |
Quote:
|
Thanks that's really helpful.
Quote:
As suggested I've created some extra devices and used root=/dev/sda1. This has got me one step closer but still not there. I'm now getting a panic "Attempt to kill init" but with no message from bash about why... I replaced bash(sbin/init) with a program which simply prints out numbers starting at 0 and counting up (statically compiled). This doesn't die but doesn't print anything either. Before I dive into kernel config again, does anyone have any suggestions about what else I've missed to cause this. My new grub menu.lst is Code:
default 0 Code:
brwxrwxrwx root 5, 1 console |
All times are GMT -5. The time now is 04:30 PM. |