[plug] Kernel build problems

Bernard Blackham bernard at blackham.com.au
Fri Jun 11 22:07:14 WST 2004


On Fri, Jun 11, 2004 at 06:53:08PM +0800, nofixed wrote:
> When I boot "New" I get:
> kmod: failed to exec /sbin/modprobe -s -k block-major-3, errno = 2
> VFS: Cannot open root device "348" or 3:48
> Please append a correct "root=" boot option
> Kernel panic...

Sounds like you need to compile IDE drivers and/or your filesystem
drivers directly into your kernel (not as modules).

> I assume the 3:48 is the same as the "Root device is (3, 72)"
> reported above, as 0x48 is 72 decimal.  I cannot find where it is set.

Yep. These correspond to the major and minor numbers of the device
node in /dev:

$ ls -l /dev/hdb8
brw-rw----    1 root     disk       3,  72 Mar 15  2002 /dev/hdb8

You can set it with the rdev command, but setting root=/dev/hda8 in
lilo overrides this (you only need to use rdev if you're using a
less-capable bootloader, which lilo is not :)

> Also, how do I deal with the depmod errors (unresolved references)?

They're to be expected - the dependencies generally won't be
resolved until you boot your new kernel. If you get them after
booting your new kernel, then there's something fishy (it does
happen from time to time, but less likely).

HTH,

Bernard.

-- 
 Bernard Blackham <bernard at blackham dot com dot au>



More information about the plug mailing list