[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to make useful boot disk (was: Re: How to get rid of LILO)

> Then insert new floppy and proceed as root:
> mke2fs /dev/fd0
> mount -t ext2 /dev/fd0 /floppy
> cp /boot/vmlinuz /boot/boot.b /boot/mbr.b /floppy/
> cp /root/lilo-fd.conf /root/fixmbr /bin/dd /bin/sash /floppy/
> mkdir /floppy/dev
> mknod /floppy/dev/hda b 3 0
> chmod 666 /floppy/dev/hda 
> cd floppy
> lilo -C lilo-fd.conf
> cd /
> umount /floppy
> PS: I hope I did not make there some mistake, writing this out of my head.

Eeek.. I knew I forgot something... libraries :)
And also sash is a bit too large, ash would be better.
Its getting a bit complicated... but if you still want
to proceed, you can get from install file root.bin and
get the files from there:

cd /root/
mv root.bin root.bin.gz
gzip -d root.bin.gz
mount -t ext2 -o loop root.bin /mnt
mkdir /floppy/lib/
cp /mnt/lib/ld-2.1.3.so /mnt/lib/libc-2.1.3.so /floppy/lib/
ln /floppy/lib/ld-2.1.3.so /floppy/lib/ld-linux.so.2
ln /floppy/lib/libc-2.1.3.so /floppy/lib/libc.so.6
cp /mnt/bin/ash /mnt/bin/dd /floppy/
umount /mnt
rm root.bin

And change the script accordingly to run ash instead of sash.


PS: If you are lucky and your vmlinuz is around 750k, you should fit :)

Jiri Klouda <jk@atrey.karlin.mff.cuni.cz>

Reply to: