Re: file under /initrd/lib/modules doesn't exist for make-kpkg made kernel--> does not boot?
On Tue, 5 Feb 2002, Ben Collins wrote:
> On Tue, Feb 05, 2002 at 11:28:58AM -0500, Walter Tautz wrote:
> > I can't get a make-kpkg kernel to boot. It can't mount the root fs. Note
> > I am using initrd and compiled make-kpkg with --initrd. One difference
> > I notice with the stock kernel and mine is:
> >
> > # locate ext3
> > /initrd/lib/modules/2.4.17-686/kernel/fs/ext3
> > /initrd/lib/modules/2.4.17-686/kernel/fs/ext3/ext3.o
> > /lib/modules/2.4.17-686/kernel/fs/ext3
> > /lib/modules/2.4.17-686/kernel/fs/ext3/ext3.o
> > /lib/modules/2.4.17mfcf/kernel/fs/ext3
> > /lib/modules/2.4.17mfcf/kernel/fs/ext3/ext3.o
> >
> >
> > Perhaps this accounts for the difference in behaviour, i.e. 2.4.17-686 boots
> > but mine 2.4.17mfcf does not? Gives a VHS kernel panic message to the effect
> > it can't mount the root file system. Note I am using ext3 on the root
> >
> > in the fstab I put in ext3,ext2 for the type.
> >
>
> Can it not mount the initrd root, or the main root? If it can't mount
> the initrd root, maybe you forgot ramdisk/initrd support.
>
# grep -i initrd config-2.*
config-2.4.17-686:CONFIG_BLK_DEV_INITRD=y
config-2.4.17mfcf:CONFIG_BLK_DEV_INITRD=y
while running 2.4.17-686 cat /proc/mounts gives:
# cat /proc/mounts
/dev/root.old /initrd cramfs rw 0 0
/dev/root / ext2 rw 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/hda8 /var ext3 rw 0 0
none /proc/bus/usb usbdevfs rw 0 0
/dev/hda7 /fsys1 ext3 rw 0 0
/dev/hdb5 /home ext3 rw 0 0
/dev/hdb6 /potato ext2 rw 0 0
My perception is I am NOT mounting /initrd with my make-kpkg made kernel,
2.4.17mfcf, and so it can't find ext3? or ext2. The stuff under /initrd is a mounted file
system with odd looking time stamps when running 2.4.17-686:
# ls -al /initrd
total 5
drwxr-xr-x 1 root root 68 Dec 31 1969 bin
drwxr-xr-x 1 root root 36 Dec 31 1969 dev
drwxr-xr-x 1 root root 24 Dec 31 1969 etc
drwxr-xr-x 1 root root 148 Dec 31 1969 lib
-rwxr-xr-x 1 root root 455 Dec 31 1969 linuxrc
-rw-r--r-- 1 root root 8 Dec 31 1969 linuxrc.conf
-rw-r--r-- 1 root root 17 Dec 31 1969 loadmodules
drwxr-xr-x 1 root root 40 Dec 31 1969 sbin
-rw-r--r-- 1 root root 0 Dec 31 1969 script
drwxr-xr-x 1 root root 0 Dec 31 1969 scripts
Reply to: