[Bug 3] creating a custom bootdisk

bugzilla at linuxfromscratch.org bugzilla at linuxfromscratch.org
Mon Aug 6 22:42:58 PDT 2001


http://blfs-bugs.linuxfromscratch.org/show_bug.cgi?id=3

thaz at if.rmci.net changed:

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From thaz at if.rmci.net  2001-08-06 22:42 -------
Here it is, not sure which way we want to go here, I've used all of these 
successfully.  Last one may be the most failsafe, as it uses a lilo.conf that 
already works, and just changes a few things.

Boot disk instructions


To make a boot disk with kernel on floppy - loads slower - better chance of 
booting failed system.
Type dd if=vmlinuz of=/dev/fd0 <enter>
Type rdev /dev/fd0 /dev/hdax<enter> note: where x is the "/" root partition 
number

To make a boot floppy with kernel on hard drive
lilo -b /dev/fd0

get mkbootdisk script - better to work around 'customized' lfs systems

download http://rpmfind.net/linux/Kondara/Jirai/SOURCES/mkbootdisk-1.2.8.tar.gz
su to root
make

To create floppy type
mkbootdisk --device=/dev/fd0 lfskernel


The way I've done it is as follows:


fdformat /dev/fd0H1440
mkfs.ext2 /dev/fd0
mount -t ext2 /dev/fd0 /mnt

cp -dp /boot/* /mnt

Copy /etc/lilo.conf /mnt/lilo.conf
Change the boot=/dev/hda(or whichever device you have)
to read
boot=/dev/fd0

Make the floppy bootable with:
/sbin/lilo -C /mnt/lilo.conf

umount /mnt



More information about the blfs-book mailing list