Re: grub2: VFS: Unable to mount root fs

2010-08-14 Thread Simon Brandmair
On Fri, 13 Aug 2010 18:20:02 +0200 Tom H wrote:
 
 Please post the output of blkid -c /dev/null and the working grub2
 menuentry ... { ... }.

blkid -c /dev/null:
/dev/sda2: LABEL=root UUID=d8f9ae65-2e4f-4b20-aaac-9c5b6e7c6be7 
TYPE=ext3 
/dev/sda5: LABEL=var UUID=1e30fe16-85e9-4c48-adda-0a5367e6d22d 
TYPE=ext3 
/dev/sda8: LABEL=boot UUID=c9c772a6-75a5-4dbe-8bb8-2663db42e7f4 
TYPE=ext2 
/dev/mapper/swap: UUID=b83e7fa2-d2f7-48c3-ac46-ab92b7680b84 TYPE=swap 

/boot/grub/grub.cfg:
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-20100812' --class debian --
class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set 
c9c772a6-75a5-4dbe-8bb8-2663db42e7f4
echo'Loading Linux 2.6.32-20100812 ...'
linux   /vmlinuz-2.6.32-20100812 root=/dev/sda2 ro  quiet
echo'Loading initial ramdisk ...'
initrd  /initrd.img-2.6.32-20100812
}

Simon


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/i45pph$fgn$0...@news.t-online.com



Re: grub2: VFS: Unable to mount root fs

2010-08-13 Thread Tom H
On Fri, Aug 13, 2010 at 11:07 AM, Simon Brandmair sbrandm...@gmx.net wrote:

 I upgraded grub to grub2 (squeeze) and at first I couldn't boot my linux
 kernel (2.6.32), which work fine with the old grub. The boot process
 stopped with the following messages: VFS: Unable to mount root fs on
 unknown-block(0,0).

 After some research, I figured that the root fs is not set correctly in /
 boot/grub/grub.cfg. The root fs was defined with a uuid string, which I
 confirmed as correct. After altering the uuid string to /dev/sda2, linux
 would boot normally.

 Since grub.cfg is not supposed to be edited, I added to /etc/default/grub
 (thanks to https://help.ubuntu.com/community/Grub2):
 # Uncomment if you don't want GRUB to pass root=UUID=xxx parameter to
 # Linux
 GRUB_DISABLE_LINUX_UUID=true

 and then ran `update-grub`.

 I thought this might be helpful for others running into the same problem.
 Also, any idea why the (again: correct) uuid string didn't work? I have
 two other systems with a similar set-up and defining the root fs with uuid
 works just fine.

Please post the output of blkid -c /dev/null and the working grub2
menuentry ... { ... }.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/aanlktim1wddtb2x2wj8myjaurqbskwtxh5oatdrc1...@mail.gmail.com