#3 closed defect (fixed)
creating a custom bootdisk
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | BOOK | Version: | ~CVS |
Severity: | normal | Keywords: | |
Cc: |
Description ¶
Relevant file is BLFS/part2/chapter2a/bootdisk.xml
Basically this is so people can create a bookdisk for when they sod up their system by forgetting to run lilo or something
Change History (8)
comment:1 by , 24 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 24 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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
comment:3 by , 24 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
This needs actually putting into the book.
comment:4 by , 23 years ago
Milestone: | → 1.0 |
---|
comment:5 by , 23 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
2 ways I know to do this, dd if={kernel image} of=/dev/fd0 or lilo -b /dev/fd0 Are we looking for linux on a floppy here, or just a boot disk?