mkg
11-09-2003, 12:17 AM
I am remastering Knoppix to produce a demo disk for some kernel monitoring software I have been developing. As a first step, I am just trying to remaster with a kernel I compiled using the configuration file in /boot of the Knoppix CD (v3.3 2003/09/22 EN). I have read through the Knoppix Custom Kernel Howto and have followed the directions. These are the general steps I took (details available on demand):
Installed new kernel and cloop module using dpkg (in chroot environment)
Added an entry in lilo.conf for new kernel (in chroot environment)
Remastered miniroot.gz with modules from above kernel
Remastered boot.img with above kernel
Install boot.img on floppy and reboot (/cdrom files on root of /dev/hda4)
Syslinux uncompresses miniroot and starts to boot vmlinuz. When linuxrc gets to "Creating directories and symlinks on ramdisk..." it dies with the following error messages:
/linuxrc: cannot create /etc/ioctl.save: file system full
FAT: bogus logical sector size 61440
Kernel panic: VFS: Unable to mount root fs on 03:01
The custom kernel howto says that changing the size of miniroot causes problems (although not specifically this problem), so I kept the same size when I used dd to create the empty file to be mounted as miniroot. (I had to increase the number of inodes to 1024 when creating the file system so I wouldn't run out when copying things onto it.) I don't think that is the problem either. In fact, I have no idea what the problem is or how to look for it. I have been stuck on this problem for over a week. I would greatly appreciate any help you can give. If there is a more detailed explanation of how to install a custom kernel on Knoppix, I would appreciate knowing about that too.
BTW, my ultimate goal is to be able to select at boot time the original kernel or the kernel with my monitoring instrumentation in it. Does anyone know how to create boot floppies that can do that or will I have to go with isolinux? Is there a way to boot using isolinux without having to burn a CD each time? (My mastering machine does not have a CD-R/RW drive in it so I would need to move everything to another machine if I need to burn a CD each time. Not to mention that burning CDs are a bother... CD-RWs take a long time to erase.)
Mark
Installed new kernel and cloop module using dpkg (in chroot environment)
Added an entry in lilo.conf for new kernel (in chroot environment)
Remastered miniroot.gz with modules from above kernel
Remastered boot.img with above kernel
Install boot.img on floppy and reboot (/cdrom files on root of /dev/hda4)
Syslinux uncompresses miniroot and starts to boot vmlinuz. When linuxrc gets to "Creating directories and symlinks on ramdisk..." it dies with the following error messages:
/linuxrc: cannot create /etc/ioctl.save: file system full
FAT: bogus logical sector size 61440
Kernel panic: VFS: Unable to mount root fs on 03:01
The custom kernel howto says that changing the size of miniroot causes problems (although not specifically this problem), so I kept the same size when I used dd to create the empty file to be mounted as miniroot. (I had to increase the number of inodes to 1024 when creating the file system so I wouldn't run out when copying things onto it.) I don't think that is the problem either. In fact, I have no idea what the problem is or how to look for it. I have been stuck on this problem for over a week. I would greatly appreciate any help you can give. If there is a more detailed explanation of how to install a custom kernel on Knoppix, I would appreciate knowing about that too.
BTW, my ultimate goal is to be able to select at boot time the original kernel or the kernel with my monitoring instrumentation in it. Does anyone know how to create boot floppies that can do that or will I have to go with isolinux? Is there a way to boot using isolinux without having to burn a CD each time? (My mastering machine does not have a CD-R/RW drive in it so I would need to move everything to another machine if I need to burn a CD each time. Not to mention that burning CDs are a bother... CD-RWs take a long time to erase.)
Mark