nano -w /embedded_rootfs/boot/grub/grub.conf
/*
default 0
timeout 10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=Linux 2.6.x
root (hd0,0)
kernel /vmlinuz-2.6.x root=/dev/hda1 vga=792
*/
the latter should be
kernel /boot/vmlinuz-2.6.x root=/dev/hda1 vga=792
I didn't follow Heath's HowTo exactly, and my setup is probably a bit
different, but I just want to get this out in the open to make sure
everything is clear.
- If you mount /dev/hda1 at /boot (as in the big Gentoo manual) and
then put your kernel here, root (hd0,0) and kernel /vmlinuz-2.6.x are
correct, but it should have been root=/dev/hda3.
- It seems in the howto, /boot is on /dev/hda2 of the flash
installation, so (hd0,1) and /vmlinuz would be correct (the first
drive's second partition). Root=/dev/hda1 is ok that that case if
that's where your filesystem is.
- Now, if the kernel is in the directory /boot of /dev/hda1 and the
root file system is also /dev/hda1, Pierre's above solution is correct.
Basically, though, a bootloader knows nothing of your local mount
points.
As for your problem, Pierre, check that you're getting your paths to
your init right and don't forget to think about what grub sees. In
this grub conf, the kernel is on /dev/hda1 and the root filesystem is
on /dev/hda3. This also runs pre-init (part of the filesystem on /dev/
hda3) instead of init:
title=Linux 2.6.x
root (hd0,0)
kernel /vmlinuz-2.6.x root=/dev/hda3 init=/sbin/pre-init
Kurt
PS: I apologize if I broke threads in your mailreaders, but I just
signed up for the list after reading some archives online and had to
copy and paste into my reply.
--
[email protected] mailing list