Upgrading a disk in place

Sam Couter sam at topic.com.au
Mon Aug 6 15:23:19 EST 2001

Jan Newmarch <jan.newmarch at infotech.monash.edu.au> wrote:
> Copying is okay. Booting from both old (IDE primary) and new disk
> (IDE secondary) is okay, using lilo. But I can't figure out how
> to get lilo to boot from my new disk as primary. If I just
> disconnect the old disk, leaving the new as secondary, it won't
> boot. If I make the new disk the primary then lilo expects the
> old disk and won't boot either.

Use grub. ;)

If you want to stick with lilo:

Make a lilo.conf in /tmp or somewhere, which is a copy of the one in /etc.
This may need to be a directory on your second disk (see the -C option in
the man page; lilo will chroot() to the given directory before doing
anything else).

Modify it so it will install the chainloader into the MBR on your second
disk: boot=/dev/hdc (or whatever your second disk is).

Make sure your lilo files are copied to your second disk, and:
lilo -r /second/disk -C /tmp/lilo.conf

I think you should be able to achieve something similar without the copy of
the config file with:
lilo -r /second/disk -b /dev/hdc
Sam Couter          |   Internet Engineer   |   http://www.topic.com.au/
sam at topic.com.au    |   tSA Consulting      |
OpenPGP key ID:       DE89C75C,  available on key servers
OpenPGP fingerprint:  A46B 9BB5 3148 7BEA 1F05  5BD5 8530 03AE DE89 C75C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.samba.org/archive/linux/attachments/20010806/9eff0528/attachment.bin

More information about the linux mailing list