[ILUG] dual boot situation
conor.daly at oceanfree.net
Fri Oct 11 18:25:05 IST 2002
On Thu, Oct 10, 2002 at 10:58:56PM +0100 or so it is rumoured hereabouts,
> the plan is to edit necessary files, remove the damaged drive, make current
> hdb master, boot with some rescue disk, run lilo.
from the Hard Disk Upgrade Mini HOWTO :
8. Prepare LILO to boot the new disk
(Thanks to Rick Masters for helping with this.)
We're assuming that LILO is installed on the hard disk's Master Boot
Record (MBR); this seems to be the most common configuration. You want
to install LILO on what's presently the second hard disk but will
become the first hard disk.
Edit the file /new-disk/etc/lilo.conf as follows:
disk=/dev/hdb bios=0x80 # Tell LILO to treat the second
# disk as if it were the first
# disk (BIOS ID 0x80).
boot=/dev/hdb # Install LILO on second hard
map=/new-disk/boot/map # Location of "map file".
install=/new-disk/boot/boot.b # File to copy to hard disk's
# boot sector.
prompt # Have LILO show "LILO boot:"
timeout=50 # Boot default system after 5
# seconds. (Value is in tenths of
image=/new-disk/boot/vmlinuz # Location of Linux kernel. The
# actual name may include a version
# number, for example
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.
You can do it without a boot floppy that way.
Conor Daly <conor.daly at oceanfree.net>
Domestic Sysadmin :-)
5:14pm up 41 days, 21:42, 0 users, load average: 0.16, 0.03, 0.01
5:06pm up 41 days, 21:15, 2 users, load average: 0.14, 0.12, 0.09
More information about the ILUG