Em 10-09-2012 10:26, Henrik /KaarPoSoft escreveu:> You may try root=/dev/sda1
> Sometimes device naming is not consistent between distros.
>
> On 09/10/12 14:01, Khoa Nguyen wrote:
>> Hi all,
>>
>> I've just finished LFS. However, I'm facing with the problem that I
>> can't boot into the LFS kernel.
>>
>> It displays :
>>
>> VFS: Cannot open root device "sdb1" or unkonwn-block(2,0)
>> Please append a correct "root=" boot option;
>>
>> ....
>>
>> Kernel panic - not syncing : VFS: Unable to mount root fs on
>> unknown-block (2-0).
>>
>> ...
>> title LFS7.1 (Linux 3.2.6-lfs-7.1)
>> root (hd1,0)
>> insmod ext3
>> kernel /boot/vmlinuz-3.2.6-lfs-7.1 root=/dev/sdb1 ro
I have:
$ cat /etc/release
SVN-20120311 (7.1)
$ grub-install --version
grub-install (GRUB) 1.99
# blkid | grep LFS
/dev/sda1: LABEL="LFS71" UUID="54f684bc-5a56-4a05-8a93-37dd108c617e"
TYPE="ext4"
One section og grub.cfg:
menuentry 'GNU/Linux, with Linux 3.5.3-lfs' --class gnu-linux --class gnu
--class os {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 54f684bc-5a56-4a05-8a93-37dd108c617e
echo 'Loading Linux 3.5.3-lfs ...'
linux /boot/vmlinuz-3.5.3-lfs root=/dev/sda1 ro
}
In another machine:
$ cat /etc/release
SVN-20120311 (7.1)
$ grub-install --version
grub-install (GRUB) 1.99
# blkid | grep -i LFS
/dev/sda3: LABEL="LFS" UUID="0a76e206-bd43-4ebf-b54a-75c9c1cf4267" TYPE="ext4"
menuentry "GNU/Linux, with Linux 3.5.3-NG-pae (on /dev/sda3)" --class gnu-linux
--class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 0a76e206-bd43-4ebf-b54a-75c9c1cf4267
linux /boot/vmlinuz-3.5.3-NG-pae root=/dev/sda3 ro
}
Although the search not being useful, according to the editors, here, I
did not bother to delete the respective lines.
What is grub version?
--
[]s,
Fernando
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page