Well, That is not that difficult as it looks like.
One can mount one of the images located on the installation cdrom as a
loopback filesystem. You do this like this:
Create a temporary directory. (I.e. mkdir /mnt/loopback )
copy an installdisk images to your harddisk from the install cdrom to your
/tmp directory:
cp /mnt/cdrom/images/cdrom.img /tmp (make sure the images has write
permissions on the image in the /tmp directory).
mount your image with this command:
mount -o loop /tmp/cdrom.img /mnt/loopback
now cd into your boot floppy image with command: cd /mnt/loopback
if you do an ls you can see the contents of the install floppy (image).
You will see a kernel images there also.
Now you can create your own kernel and after that copy it to the image file
by just doing a: cp vmlinuz /mnt/loopback
after that do a: cd /;umount /mnt/loopback
If everything worked as planned your /tmp/cdrom.img contains your new kernel.
Now you should create a new boot floppy with command:
dd if=/tmp/cdrom.img of=/dev/fd0 bs=1440k.
You can do a df to check how much space is left on the images:
in my case:
/dev/hda3 4348448 2898456 1229100 70% /
/dev/hda2 15554 1567 13184 11% /boot
/dev/hdd1 2511008 263916 2247092 11% /mnt/data
/mnt/cdrom/images/hd.img 1436 1415 21 99% /mnt/loopback
If your new kernel is smaller than the one on the boot-image than everything
should fit.
You can use the mount -o loop for all your bootimages to see what is on it
and you can use it for iso images as well.
Hope it works for you. never needed to adjust a bootimage myself but I know
what to do if I need it. Let us know if it worked for you. I used cdrom.img
in this example but you can use any other image as well.
Marcus
On Sun, 12 Nov 2000, you wrote:
> > hi,
>
> quite some time back i had seen a document on modifying the initrd file on
> a boot disk to include a module that is not present by default. I don't
> remember where :-(
> the reason i want to do this is because I want to install LM 7.0 (i486) on
> an old laptop from the paralled port (OnSpec drive). After I get to the
> screen where I choose the 'backpack' option the install fails. Alt-F4
> (ithink)displays a message 'on26.o' cannot be found. so my guess is that
> the required module is missing.
>
> Thanks in advance,
> Ashley Moore.
>
>
> ***Disclaimer***********************************************
> Please note the following points:
>
> * This message and any attachments thereto may contain
> privileged or proprietary information, and are intended
> for the sole use of the addressee(s). Total or partial
> reproduction, communication, distribution or use of this
> information by persons other than the addressee(s) is
> prohibited.
> * If you have received this message in error, please notify
> the sender either by telephone or message and delete the
> message from any computer.
> * This message and any attachments have been scanned by
> Batelco for malicious code on best efforts basis for your
> protection.
>
> Thank you for your cooperation.
> ************************************************************
----------------------------------------
Content-Type: text/plain; name="message.footer"
Content-Transfer-Encoding: 8bit
Content-Description:
----------------------------------------
Keep in touch with http://mandrakeforum.com:
Subscribe the "[EMAIL PROTECTED]" mailing list.