Re: LFS grub start error
Bruce Dubbs bruce.dubbs at gmail.com writes: Rosario Turco wrote: What partition did you use for LFS? /dev/sdb1? Try all variations of root=/dev/sd??. fstab at this point doesn't matter. -- Bruce OK thanks I have found the problem -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: LFS grub start error
On Sat, Jan 8, 2011 at 7:24 AM, Rosario Turco rosario_tu...@virgilio.it wrote: Bruce Dubbs bruce.dubbs at gmail.com writes: Rosario Turco wrote: What partition did you use for LFS? /dev/sdb1? Try all variations of root=/dev/sd??. fstab at this point doesn't matter. -- Bruce OK thanks I have found the problem -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page what was the problem/solution? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: LFS grub start error
Rosario Turco wrote: Please ask on lfs-support. I have seen with 'c' on prompt No filesystem could mount root, tried: ext3 vfat msdos iso9960 Kernel panic - not syncing: VFS: Unable to mount root fs at unknown-block(8,4) This is a kernel message, so at this point grub's job is done. It has loaded the kerenl properly. Now i have an important question: I have partitioned with ext4. Is this the problem? The fs support must be built into the kernel. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: LFS grub start error
Bruce Dubbs bruce.dubbs at gmail.com writes: -- Bruce I haven't got /dev/sda4, my /dev/sda has got only two (sda1 e sda2) brw-rw 1 root daemon 8, 0 Jan 2 18:31 /dev/sda brw-rw 1 root daemon 8, 1 Jan 2 18:31 /dev/sda1 brw-rw 1 root daemon 8, 2 Jan 2 18:31 /dev/sda2 brw-rw 1 root daemon 8, 16 Jan 2 18:31 /dev/sdb brw-rw 1 root daemon 8, 17 Jan 2 18:31 /dev/sdb1 brw-rw 1 root daemon 8, 18 Jan 2 18:31 /dev/sdb2 brw-rw 1 root daemon 8, 19 Jan 2 18:31 /dev/sdb3 brw-rw 1 root daemon 8, 20 Jan 2 18:31 /dev/sdb4 So i have modified grub.cfg with set root=(hd0,1) and root=/dev/sda2 with boot on /dev/sda1 In fstab i have done the same /dev/sda1 /boot ext3 ... /dev/sda2 / ext3 Now i obtain this error: .. (i cannot read all because is very speed ... How can read all? Is there alog?) list of all partions: 0800 sda 0801 sda1 0802 sda2 0803 sda3 0804 sda4 0b00 sr0 driver No filesystem could mount root, tried: ext3 vfat msdos iso9660 Kernel panic: not syncing: VFS: Unable to mount root fs on unknown block(8,2) I am blocked. Then i cannot use 8.4.3 Testing teh configuration with Fedora 14, because /sbin/reboot restarts all and doesn't show prompt grub -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: LFS grub start error
On Thu, 6 Jan 2011 10:56:23 + (UTC) Rosario Turco rosario_tu...@virgilio.it wrote: Bruce Dubbs bruce.dubbs at gmail.com writes: -- Bruce I haven't got /dev/sda4, my /dev/sda has got only two (sda1 e sda2) brw-rw 1 root daemon 8, 0 Jan 2 18:31 /dev/sda brw-rw 1 root daemon 8, 1 Jan 2 18:31 /dev/sda1 brw-rw 1 root daemon 8, 2 Jan 2 18:31 /dev/sda2 brw-rw 1 root daemon 8, 16 Jan 2 18:31 /dev/sdb brw-rw 1 root daemon 8, 17 Jan 2 18:31 /dev/sdb1 brw-rw 1 root daemon 8, 18 Jan 2 18:31 /dev/sdb2 brw-rw 1 root daemon 8, 19 Jan 2 18:31 /dev/sdb3 brw-rw 1 root daemon 8, 20 Jan 2 18:31 /dev/sdb4 So i have modified grub.cfg with set root=(hd0,1) and root=/dev/sda2 with boot on /dev/sda1 In fstab i have done the same /dev/sda1 /boot ext3 ... /dev/sda2 / ext3 Now i obtain this error: .. (i cannot read all because is very speed ... How can read all? Is there alog?) list of all partions: 0800 sda 0801 sda1 0802 sda2 0803 sda3 0804 sda4 The kernel sees 4 partitions on /dev/sda. 0b00 sr0 driver No filesystem could mount root, tried: ext3 vfat msdos iso9660 Kernel panic: not syncing: VFS: Unable to mount root fs on unknown block(8,2) Clearly, what your host Fedora system sees as /dev/sdb your LFS kernel sees as /dev/sda. Try altering your grub.cfg to pass your LFS kernel the option root=/dev/sdb2 linux /boot/vmlinux-lfs root=/dev/sdb2 Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: LFS grub start error
Rosario Turco wrote: I haven't got /dev/sda4, my /dev/sda has got only two (sda1 e sda2) brw-rw 1 root daemon 8, 0 Jan 2 18:31 /dev/sda brw-rw 1 root daemon 8, 1 Jan 2 18:31 /dev/sda1 brw-rw 1 root daemon 8, 2 Jan 2 18:31 /dev/sda2 brw-rw 1 root daemon 8, 16 Jan 2 18:31 /dev/sdb brw-rw 1 root daemon 8, 17 Jan 2 18:31 /dev/sdb1 brw-rw 1 root daemon 8, 18 Jan 2 18:31 /dev/sdb2 brw-rw 1 root daemon 8, 19 Jan 2 18:31 /dev/sdb3 brw-rw 1 root daemon 8, 20 Jan 2 18:31 /dev/sdb4 So i have modified grub.cfg with set root=(hd0,1) and root=/dev/sda2 with boot on /dev/sda1 In fstab i have done the same /dev/sda1 /boot ext3 ... /dev/sda2 / ext3 Now i obtain this error: .. (i cannot read all because is very speed ... How can read all? Is there alog?) list of all partions: 0800 sda 0801 sda1 0802 sda2 0803 sda3 0804 sda4 0b00 sr0 driver No filesystem could mount root, tried: ext3 vfat msdos iso9660 Kernel panic: not syncing: VFS: Unable to mount root fs on unknown block(8,2) I am blocked. Then i cannot use 8.4.3 Testing teh configuration with Fedora 14, because /sbin/reboot restarts all and doesn't show prompt grub Do you get a menu before it starts to build? If so type 'c' when it comes up and enter commands there. I'd also recommend cutting down the grub.cfg file to the minimum and posting it here, You really only need something like this to start: insmod ext2 set root=(hd0,1) menuentry Linux 2.6.36.2-lfs { linux /linux-2.6.36.2-lfs root=/dev/sda1 ro But it really sounds like you are booting, but there is a problem with the parameters. Note that the 'set root=(hd0,1)' is for grub and 'root=/dev/sda1' is for the linux kernel. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: LFS grub start error
Bruce Dubbs bruce.dubbs at gmail.com writes: Rosario Turco wrote: I haven't got /dev/sda4, my /dev/sda has got only two (sda1 e sda2) brw-rw 1 root daemon 8, 0 Jan 2 18:31 /dev/sda brw-rw 1 root daemon 8, 1 Jan 2 18:31 /dev/sda1 brw-rw 1 root daemon 8, 2 Jan 2 18:31 /dev/sda2 brw-rw 1 root daemon 8, 16 Jan 2 18:31 /dev/sdb brw-rw 1 root daemon 8, 17 Jan 2 18:31 /dev/sdb1 brw-rw 1 root daemon 8, 18 Jan 2 18:31 /dev/sdb2 brw-rw 1 root daemon 8, 19 Jan 2 18:31 /dev/sdb3 brw-rw 1 root daemon 8, 20 Jan 2 18:31 /dev/sdb4 So i have modified grub.cfg with set root=(hd0,1) and root=/dev/sda2 with boot on /dev/sda1 In fstab i have done the same /dev/sda1 /boot ext3 ... /dev/sda2 / ext3 Now i obtain this error: .. (i cannot read all because is very speed ... How can read all? Is there alog?) list of all partions: 0800 sda 0801 sda1 0802 sda2 0803 sda3 0804 sda4 0b00 sr0 driver No filesystem could mount root, tried: ext3 vfat msdos iso9660 Kernel panic: not syncing: VFS: Unable to mount root fs on unknown block(8,2) I am blocked. Then i cannot use 8.4.3 Testing teh configuration with Fedora 14, because /sbin/reboot restarts all and doesn't show prompt grub Do you get a menu before it starts to build? If so type 'c' when it comes up and enter commands there. I'd also recommend cutting down the grub.cfg file to the minimum and posting it here, You really only need something like this to start: insmod ext2 set root=(hd0,1) menuentry Linux 2.6.36.2-lfs { linux /linux-2.6.36.2-lfs root=/dev/sda1 ro But it really sounds like you are booting, but there is a problem with the parameters. Note that the 'set root=(hd0,1)' is for grub and 'root=/dev/sda1' is for the linux kernel. -- Bruce I have reduced grub.cfg at minimum as your suggest. Now the error is: xxx] md: ... autorun DONE. VFS: Cannot open root device sda1 or un-known block(8,1) Please append a correct root= boot options. Here are the available partitions: 0800 n sda driver: sd 0802 sda2 0803 sda3 0804 sda4 0b00 sr0 driver: sr No filesystem could mount root, tried: ext3 vfat msdos iso9660 Kernel panic: not syncing: VFS: Unable to mount root fs on unknown block(8,1) GRUB.CFG ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then load_env fi set default=0 if [ ${prev_saved_entry} ]; then set saved_entry=${prev_saved_entry} save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z ${boot_once} ]; then saved_entry=${chosen} save_env saved_entry fi } insmod ext2 set root='(hd1,1)' set timeout=5 ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/10_linux ### menuentry GNU/Linux, with Linux 2.6.36-lfs-6.7 --class gnu-linux --class gnu --class os { insmod ext2 set root='(hd1,1)' search --no-floppy --fs-uuid --set c544afb8-6417-4d14-89e0-5aa35173c3c3 echoLoading Linux 2.6.36-lfs-6.7 ... linux /boot/vmlinux-2.6.36-lfs-6.7 root=/dev/sda1 ro } ### END /etc/grub.d/10_linux ### FSTAB /dev/sdb1 / ext3 defaults 1 1 /dev/sdb2 /home ext3 defaults 1 1 /dev/sdb3 swap swap pri=1 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 devpts /dev/pts devpts gid=4,mode=620 0 0 tmpfs /dev/shm tmpfs defaults 0 0 My /dev now is: /dev/sda /dev/sda1 /dev/sda2 /dev/sdb /dev/sdb1 /dev/sdb2 /dev/sdb3 Is it possible to see a log of the complete error? For example the output of dmesg ... -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: LFS grub start error
Rosario Turco wrote: Is it possible to see a log of the complete error? For example the output of dmesg ... Until you get it to boot, no. If it can't mount /, where would it write to? I don't think you understand. Make a grub.cfg file that is exactly 5 lines long: insmod ext2 set root='(hd0,1)' menuentry LFS { linux /boot/vmlinux-2.6.36-lfs-6.7 root=/dev/sda1 ro } What partition did you use for LFS? /dev/sdb1? Try all variations of root=/dev/sd??. fstab at this point doesn't matter. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
LFS grub start error
created a virtual machine with Fedora 14 guest host a filesystem with no errors everything is set up in LFS 6.7 Chapter 9. Kernel is ok. When I mount the new virtual machine obtained LFS, I get errors because I did not understand how to configure fstab and grub.cfg For LFS I have created these partitions on virtual machine: /boot /dev/sdb1 /home /dev/sdb2 /swap /dev/sdb3 /LFS /dev/sdb4 My actual /etc/fstab is: # Begin /etc/fstab # file system mount-point type options dump fsck # order /dev/sdb1 /boot ext3 defaults 1 1 /dev/sdb3 /home ext3 defaults 1 1 /dev/sdb4 / ext3 defaults 1 1 /dev/sdb2 swap swap pri=1 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 devpts /dev/pts devpts gid=4,mode=620 0 0 tmpfs /dev/shm tmpfs defaults 0 0 none /proc/bus/usb usbfs devgid=46,devmode=664 0 0 # End /etc/fstab My /boot/grub/grub.cfg is: ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then load_env fi set default=0 if [ ${prev_saved_entry} ]; then set saved_entry=${prev_saved_entry} save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z ${boot_once} ]; then saved_entry=${chosen} /boot/grub/grub.cfg [readonly] 60L, 1772C save_env saved_entry fi } insmod ext2 set root='(hd1,4)' search --no-floppy --fs-uuid --set c544afb8-6417-4d14-89e0-5aa35173c3c3 set locale_dir=($root)/boot/grub/locale set lang= insmod gettext set timeout=5 ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/10_linux ### menuentry GNU/Linux, with Linux 2.6.36-lfs-6.7 --class gnu-linux --class gnu --class os { insmod ext2 set root='(hd1,4)' search --no-floppy --fs-uuid --set c544afb8-6417-4d14-89e0-5aa35173c3c3 echoLoading Linux 2.6.36-lfs-6.7 ... linux /boot/vmlinux-2.6.36-lfs-6.7 root=/dev/sdb4 ro } menuentry GNU/Linux, with Linux 2.6.36-lfs-6.7 (recovery mode) --class gnu-linux --class gnu --class os { insmod ext2 set root='(hd1,4)' search --no-floppy --fs-uuid --set c544afb8-6417-4d14-89e0-5aa35173c3c3 echoLoading Linux 2.6.36-lfs-6.7 ... linux /boot/vmlinux-2.6.36-lfs-6.7 root=/dev/sdb4 ro single } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/30_os-prober ### ### END /etc/grub.d/30_os-prober ### My /dev is: brw-rw 1 root daemon 8, 0 Jan 2 18:31 /dev/sda brw-rw 1 root daemon 8, 1 Jan 2 18:31 /dev/sda1 brw-rw 1 root daemon 8, 2 Jan 2 18:31 /dev/sda2 brw-rw 1 root daemon 8, 16 Jan 2 18:31 /dev/sdb brw-rw 1 root daemon 8, 17 Jan 2 18:31 /dev/sdb1 brw-rw 1 root daemon 8, 18 Jan 2 18:31 /dev/sdb2 brw-rw 1 root daemon 8, 19 Jan 2 18:31 /dev/sdb3 brw-rw 1 root daemon 8, 20 Jan 2 18:31 /dev/sdb4 The error is: VFS: cannot open root device sdb4 or unknown block (2,0) Please append a correct root= boot options; here are the available partions: 0800 sda 0801 sda1 0802 sda2 0803 sda3 0804 sda4 0b00 sr0 driver Kernel panic: not syncing: VFS: Unable to mpunt root fs on unknown block(2,0) -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: LFS grub start error
Rosario Turco wrote: created a virtual machine with Fedora 14 guest host a filesystem with no errors everything is set up in LFS 6.7 Chapter 9. Kernel is ok. When I mount the new virtual machine obtained LFS, I get errors because I did not understand how to configure fstab and grub.cfg For LFS I have created these partitions on virtual machine: /boot /dev/sdb1 /home /dev/sdb2 /swap /dev/sdb3 /LFS /dev/sdb4 My /dev is: brw-rw 1 root daemon 8, 0 Jan 2 18:31 /dev/sda brw-rw 1 root daemon 8, 1 Jan 2 18:31 /dev/sda1 brw-rw 1 root daemon 8, 2 Jan 2 18:31 /dev/sda2 brw-rw 1 root daemon 8, 16 Jan 2 18:31 /dev/sdb brw-rw 1 root daemon 8, 17 Jan 2 18:31 /dev/sdb1 brw-rw 1 root daemon 8, 18 Jan 2 18:31 /dev/sdb2 brw-rw 1 root daemon 8, 19 Jan 2 18:31 /dev/sdb3 brw-rw 1 root daemon 8, 20 Jan 2 18:31 /dev/sdb4 The error is: VFS: cannot open root device sdb4 or unknown block (2,0) Please append a correct root= boot options; here are the available partions: 0800 sda 0801 sda1 0802 sda2 0803 sda3 0804 sda4 0b00 sr0 driver Kernel panic: not syncing: VFS: Unable to mpunt root fs on unknown block(2,0) It would appear that your kernel is loading, but not picking up both drives. It looks like it is only picking up the LFS drive as sda. You might try changing your fstab to sda and the boot line to root=/dev/sda4. Note that for LFS the grub search command is meaningless. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page