On Thu, Oct 10, 2002 at 10:58:56PM +0100 or so it is rumoured hereabouts,
Tom thought:
>> 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
# disk.
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:"
# prompt.
timeout=50 # Boot default system after 5
# seconds. (Value is in tenths of
# seconds.)
image=/new-disk/boot/vmlinuz # Location of Linux kernel. 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.
You can do it without a boot floppy that way.
Conor
--
Conor Daly <conor.daly at oceanfree.net>
Domestic Sysadmin :-)
---------------------
Faenor.cod.ie
5:14pm up 41 days, 21:42, 0 users, load average: 0.16, 0.03, 0.01
Hobbiton.cod.ie
5:06pm up 41 days, 21:15, 2 users, load average: 0.14, 0.12, 0.09
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!