Using GRUB to boot CF into ramdrive is failing!
dontspamrrn at po.cwru.edu
Sat Feb 21 17:01:39 PST 2004
So, I finally got my CF card to boot properly. Right now, I'm using Red Hat
9 to get the system up and running, then I'll be on my way to using LFS!
Now, to avoid a bunch of writes to it, I'd like to just make it boot up into
a ramdrive. Unfortunately, it's not working so well. The relevant parts of
my grub.conf look like this:
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/dev/ram hdc=ide-scsi
I don't expect this to fully work, since the initrd image doesn't have
/sbin/init. I just want to see that it gets that far. Anyhow, this seems
to work at first, but then a good part of the way through boot I get the
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 147k freed
Creating root device
mkrootdev: label /dev/ram not found
Mounting root filesystem
mount: error 2 mounting ext3
pivotroot pivot_root(/sysroot,/sysroot/initrd) failed: 2
unmount /initrd/proc failed: 2
Freeing unused kernel memory: 132k freed
Kernel panic: No init found. Try passing init= option to the kernel
So, I confirmed that my initrd image contains /dev/ram and I've read the
boot HOWTOs that indicate the initrd should be in /dev/ram. Not sure why
this isn't turning up.
P.S. I'm really glad I found LFS, but even more glad I found this group.
You guys are real life savers.
More information about the lfs-support