Re: grub and rootfs as LVM



I setup my rootfs as an LVM, the menu.lst of grub looks like this;

title Debian GNU/Linux, kernel 2.6.18-4-386
root (hd0,0)
kernel /vmlinuz-2.6.18-4-686 root=/dev/volume/root ro
initrd /my_init
savedefault

Error happens when the kernel tried to mount the root filesystem:
The error message is "Waiting for root file system..."
yuwen check root=bootarg cat /proc/cmdline or missing modules, devices; cat
/proc/modules ls /dev/

I setup /boot as a seperate disk parition. The rest is for LVM.
/dev/volume/root is OK when I use a rescue CDRom. And I re-build the
initrd, adding all dm-* modules to the initrd. Any suggestion?

Try use /dev/mapper/volume-root instead.
I'm not sure why, but I recently had a similar problem where using
/dev/Debian/root didn't work but /dev/mapper/Debian-root did (even though
once the boot is over, /dev/Debian/root can be used just fine, it looks
like the alternate name is constructed later).


Stefan


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: help for kernel panic
    ... Thank you for your suggestion. ... How would I skip initrd? ... There is always a rational reason! ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: grub and rootfs as LVM
    ... > initrd, adding all dm-* modules to the initrd. ... Any suggestion? ... once the boot is over, /dev/Debian/root can be used just fine, it looks ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Compiling a kernel
    ... or you can use vanilla source as you describe ... Will I still have to configure grub? ... I prefer to go without initrd myself. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Linux-image-2.6.25 wont boot - target filesystem error
    ... Google shows a number of people with similar problems, mainly on Ubuntu. ... How large is your initrd? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Re: Fwd: 2.6.26 and 2.6.29 kernel image , Couldnt find valid RAM disk image starting at 0
    ... vanilla kernel find and use the initrd img. ... io scheduler anticipatory registered ... cpuidle: using governor ladder ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)