A bit about

Hello, everyone! All you can see below is just my bank of information. Some material I've found in the fathomless net, some I've learned myself. Don't think all of the information here is right or actual, but may be it could be of use for you :) All feedback is welcome, especially constructive ones :)

Friday, July 31, 2009

Debian: "Waiting for root file system..."

After installation of Debian RC4 on my server I noticed that sometimes in hangs on boot with message like "Waiting for root file system...". I didn't know how to deal with this problem and as long as it appeared not often I didn't pay attention to this.

But then I decided to upgrade my kernel to the latest version (2.6.30.3 at that moment) and the new version hanged each time. I spend some time in Google and finally found the solution here http://www.debianhelp.org/node/11653. Big thanks to this guy for full description.

The problem hides in conflicts of kernel's devices naming convention and udev's one. For example, in my grub/menu.lst the root partition is /dev/hda1 while kernel considers it as /dev/sda1. I've solved this problem by using UUID's of devices.
$ blkid /dev/hda1
/dev/hda1: UUID="38ed6c23-3908-49f6-81eb-9945a173a60a" TYPE="ext3"

And then just typed this identifier into /etc/fstab and /boot/grub/menu.lst:

fstab:
{...}
UUID=38ed6c23-3908-49f6-81eb-9945a173a60a / ext3 defaults,errors=remount-ro 0 1
{...}

/boot/grub/menu.lst:
{...}
title Debian GNU/Linux, kernel 2.6.30.3
root (hd0,0)
kernel /boot/vmlinuz-2.6.30.3 root=UUID=38ed6c23-3908-49f6-81eb-9945a173a60a ro
initrd /boot/initrd.img-2.6.30.3
savedefault
{...}

3 comments:

  1. similar problem, but didn't work for me, have tried UUID, Label, dbpk-reconfigure on the img.. *Sigh*

    ReplyDelete
  2. May be there is another reason of this problem in your case? Does it appear during each boot or from time to time? Have you tried different kernel versions?
    I remember my friend told me that he has the same problem and it's widespread in certain Debian distributives

    ReplyDelete
  3. the same problem,i will try it

    ReplyDelete