If you wish, you can make a boot diskette, in case you run into
problems when trying to boot the new disk.
Insert an empty diskette, format it, create a file system on it and
mount it:
fdformat /dev/fd0H1440
mkfs.ext2 /dev/fd0
mount -t ext2 /dev/fd0 /mnt |
Copy all files in /boot to the
diskette:
Create a new file /mnt/lilo.conf as follows:
boot=/dev/fd0 # Install LILO on floppy disk.
map=/mnt/map # Location of "map file".
install=/mnt/boot.b # File to copy to floppy's
# boot sector.
prompt # Have LILO show "LILO boot:"
# prompt.
timeout=50 # Boot default system after 5
# seconds. (Value is in tenths of
# seconds.)
image=/mnt/vmlinuz # Location of Linux kernel on
# floppy. The actual name may
# include a version number, for
# example "vmlinuz-2.0.35".
label=linux # Label for Linux system.
root=/dev/hda1 # Location of root partition on
# new hard disk. Modify this as
# appropriate for your system.
# Note that you must use the name
# of the future location, once the
# old disk has been removed.
read-only # Mount partition read-only at
# first, to run fsck. |
Install LILO on the boot diskette:
/sbin/lilo -C /mnt/lilo.conf |
The -C option tells LILO what
configuration file to use.
Unmount the diskette: