LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   VFS: Cannot open root device "<NULL>" or unknown-block(8.22) (http://www.linuxquestions.org/questions/linux-from-scratch-13/vfs-cannot-open-root-device-null-or-unknown-block-8-22-a-595367/)

aleksanteri 10-29-2007 12:38 AM

VFS: Cannot open root device "<NULL>" or unknown-block(8.22)
 
I have a problem with the boot of LFS 6.3. I keep getting
Code:

VFS: Cannot open root device "<NULL>" or unknown-block(8.22)
Please append a correct "root=" boot option , herea re the avaivable partitions:
0300    4194302 hda driver: ide-cdrom
Kernel panic - not synching: VFS: Unable to mount root fs on unknown-block(8,22)

on boot, no matter what I try.

lspci:
Code:

00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller (rev a3)
00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev a3)
00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2)
00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2)
00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a3)
00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio Controller (rev a2)
00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2)
00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2)
00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev a3)
00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
05:00.0 VGA compatible controller: nVidia Corporation NV44 [GeForce 6200 SE TurboCache (TM)] (rev a1)

/boot/grub/menu.lst:
Code:

title                LFS 6.3
root                (hd1,5)
kernel                /boot/lfskernel-2.6.22.5 root=/dev/sdb6
savedefault

/etc/fstab:
Code:

# Begin /etc/fstab

# file system  mount-point    type    options                dump  fsck order
/dev/sdb6      /              ext3    defaults                1      1
proc            /proc          proc    defaults                0      0
sysfs          /sys            sysfs  defaults                0      0
devpts          /dev/pts                devpts  gid=4,mode=620  0      0
shm            /dev/shm                tmpfs  defaults        0      0
# End /etc/fstab


gerald_M2B 10-30-2007 04:02 AM

LFS simplest boot
 
With the simplest booting method, you have these obligations:
The EXT3 filesystem is compiled into the kernel that you created.
CONFIG_EXT3_FS=y in the .config file (Command: grep "EXT3" .config)
The disk access is also.
If either are not, redo the kernel build.

If you created the 2 sector floppy in the grub package, it comes in handy now.

grub>root (hd<TAB>

This should respond with all available hard disks. For me, it only works on the
first entry (AND then only on about every other attempt, so try a few times if needed)
Complete the root line, and then the kernel line as shown in grub's menu.lst

<ENTER> and enjoy.

Gerald


All times are GMT -5. The time now is 11:59 AM.