Moving up to a larger harddrive
Does anyone have a script or iron clad step-by-step instructions how one can move their current installation from a smaller hard drive (80-GB in my case) to a larger hard drive (160-GB)? Tools provided by most hard drive manufactures allow this for ugh-Windows, but I don't know of any for SUSE Linux. During upgrades I always do a fresh install, so moving to a different drive is easy then, although time consuming. Cheers, Bo b
Install the new drive, partition it, install the file system. Then rsync the entire contents from the old drive to the new one. Remove old drive. Plug new drive in where old one was. Should be OK. Matthew -----Original Message----- From: Robert Lewis [mailto:rll@felton.felton.ca.us] Sent: 20 August 2006 17:29 To: Suse-Linux-E (E-mail) Subject: [SLE] Moving up to a larger harddrive Does anyone have a script or iron clad step-by-step instructions how one can move their current installation from a smaller hard drive (80-GB in my case) to a larger hard drive (160-GB)? Tools provided by most hard drive manufactures allow this for ugh-Windows, but I don't know of any for SUSE Linux. During upgrades I always do a fresh install, so moving to a different drive is easy then, although time consuming. Cheers, Bo b -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Sunday 20 August 2006 18:28, Robert Lewis wrote:
Does anyone have a script or iron clad step-by-step instructions how one can move their current installation from a smaller hard drive (80-GB in my case) to a larger hard drive (160-GB)?
The archives for this list give many recommendations for doing this. In short, the general consensus is simply this: Do a clean install and use tar to copy your /home partition's data to the new drive. Copying your whole installation is, IMO, a path fraught with potholes. It's normally a simple process to reinstall the base OS, keeping your /home data. If you have a space for your old 80GB drive in your system, you might even want to convert that to your new /home. <can't resist> Then again, since the Suse 10.1 update tools are so hosed, doing a new install and getting the proper updates probably is as much, or more, trouble than using tools like 'dd' to copy the old partition's data to the new drive. </can't resist> -- ----- stephan@s11n.net http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts
On Sun, 2006-08-20 at 09:28 -0700, Robert Lewis wrote:
Does anyone have a script or iron clad step-by-step instructions how one can move their current installation from a smaller hard drive (80-GB in my case) to a larger hard drive (160-GB)?
I do this all the time. 1. Put both discs in the machine, (say 80gb = hda and 160 = hdb), and boot off a live CD 2. Use fdisk to partition the new disc. 3. Make mount points for all partitions, mount them, and then copy your stuff accross. More or less like this: # mount /dev/hda1 /hda1 # mount /dev/hdb1 /hdb1 then, one of two ways: # cd /hda1 # cp -av * /hdb1/ or # cd /hda1 # tar cfpv /hdb1/hdb1.tar.bz2 * # cd /hdb1 # tar xfjv hdb1.tar.bz2 On both I've gotten errors like "can't copy special file something or another" - usually a socket or something, but these usually get created by the relevant software. And of course, you still have your old disc as a perfect working backup. Hans
On Sunday 20 August 2006 20:40, Hans du Plooy wrote:
# cd /hda1 # tar cfpv /hdb1/hdb1.tar.bz2 *
correction: cfj (j == bzip2) Don't use 'v' for a big tar like this - it only slows things down.
# cd /hdb1 # tar xfjv hdb1.tar.bz2
You can also skip the intermediary file altogether: cd /hda1 tar cf - * | tar xf - -C /hdb1 that should run a lot faster. -- ----- stephan@s11n.net http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts
participants (4)
-
Hans du Plooy
-
Matthew Stringer
-
Robert Lewis
-
stephan beal