switching hard drives

David A. Bandel david
Mon May 17 11:57:00 PDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 20 Dec 2003 07:23:33 -0500
dep <dep at linuxandmain.com> wrote:

> greets, folks . . .
> 
> sorry to interrupt the "nothing-is-going-on-here" discussion. (how to 
> fix the list? simple: start including chili recipes, contests of 
> imagined bravado in the consumption of hot peppers, and bring in 
> somebody who does a "i just got linux. it sucks. i wish i had my 
> windows back, and it's up to you to change my mind" newbie act. and
> get rid of the <OT> police.)
> 
> now. i've had the flu for a week now -- 80 percent better at the
> moment, but by no means recovered, and 20 percent of this flu is 100
> percent of the worst flu you've ever had unless you had the flu in
> 1918, so go out of your way to avoid it. one of the effects is that
> i'm not entirely certain that i could make it clear through the
> alphabet. stuff i know is now just lost.
> 
> and the problem is, i absolutely *must* today move a linux
> installation from one hard drive to another. i haven't done this for
> about fisix years. used to be it involved doing a general copy over of
> everything, but then there was insane jumping through hoops to get it
> to boot -- getting the boot sector to behave. this machine has lilo
> and suse 7.3 on it.
> 
> anybody remember the short version of what i need to do to get lilo in
> 
> good order so the thing will boot with the new drive?
> 
> thanks.

1. stick the new drive in (properly jumpered)
2. fdisk and format w/ XFS (or reiserfs or ext3) the partitions you want
to use (plus a swap partition, formatted w/ mkswap)
3. mount the new drive on /mnt (note, if you want to use mounts, like
/usr on a different partition than /, you'll need to create usr and
mount the other partition first)
4. tar (or cpio) from one drive to the other
5. cd to /mnt/etc and adjust fstab
6. adjust lilo.conf and run /mnt/sbin/lilo -r /mnt
7. reboot into second system

There are a few more steps if you're actually going to remove the first
(old) drive and replace it with the new drive.

There are other ways to do this.  And if you're going to just replace
the hard drive, I suggest looking into MondoRescue
(http://www.mondorescue.org/about/about.html).  It's easier than the
above.

Ciao,

David A. Bandel
- -- 
Focus on the dream, not the competition.
		Nemesis Racing Team motto
GPG key autoresponder:  mailto:david_key at pananix.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/5ELvj31PLQNUbV4RApucAKCO7P5OuFEOAesc8GHIc8xAXUw57ACfQDLz
ND+3whGBd1dqJOyG4GjDUZU=
=6CD+
-----END PGP SIGNATURE-----


More information about the Linux-users mailing list