tring tring – research log

research log

Posts Tagged ‘build linux kernel

Kernel Panic…VFS:Unable to mount root fs on unknown block…

without comments

Recently I was trying to install a linux kernel on a Compaq N800W. After I built the kernel I would always get the error kernel panic error. I found my answer on page 59 in here.

The full book is here.

I feel the main problem was that “ata_piix” was built as a plugin module instead of being built into the kernel. When I explicitly required “ata_piix” in the config file, then the kernel panic went away.

From the book but I want this as quick reference.

How to find out the Disk Controller:

$ tree -d /sys/block | egrep “hd|sd”

$ ls -l /sys/block/sda

device -> /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0

$ ls -l /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0

device -> ../../../../../../bus/scsi/drivers/sd

Notice here that the SCSI disk controller is responsible for making this device work.

Continuing up …

Written by tringer

February 7, 2009 at 8:30 am