grub problem

stosss stosss at gmail.com
Mon Nov 23 06:11:13 PST 2009


On Mon, Nov 23, 2009 at 8:27 AM, su.sinnes <su.sinnes at mail.com> wrote:
> Hi im stuck with grub, as soon as i restart i get into the grub shell
> and when i type boot it says no loaded kernel.
> but if i do:
>  1) made a file under /boot/grub/device.map as Bruce
> (hd0) /dev/sda
>
> 2) grub-install --root-directory=/boot/ /dev/sda
>
> 3) grub-mkconfig -o /boot/boot/grub/grub.cfg
>
> then it boots up and i get a " kernel panic , not syncing:VFS:unable to
> mount root
> fs on unknown-block(2,0)"
>
> i have recompiled the kernel 4 times now and i have selected all SATA
> drivers, and ext 2 filesystem.
> but no luck.
>
> Anyone got any ideas?

You appear to be having the same problem I just had.

If you followed the the chapter about compiling and then configuring
grub you will have a menu.lst file in boot/grub your entry for root
might look something like root=/dev/hda# if you are doing lfs 6.5 and
using kernel 2.6.30.2 change your root entry to root=/dev/sd# and also
in your fstab file change all your hd entries to sd example /dev/hda1
and /dev/hda5 will be /dev/sda1 and /dev/sda5

That should fix your problem. It did for me.



More information about the lfs-support mailing list