Replacing a hard drive with a larger one.

Brian McKee brian.mckee at gmail.com
Thu Oct 11 14:47:09 UTC 2007


On Mon, 2007-08-10 at 02:06 -0400, stuart_lesnett at lesnett.com wrote:
> I have a new 20gb but I'm not sure how to go about installing it and
> successfully moving the current information.

There are lots of different ways to do this - If you have a working Live
cd of some sort, I would do as follows:

Install the new hard drive alongside the old one (careful with the drive
jumpers)

Boot from the live cd.  Use gparted or fdisk or whatever you are
comfortable with to partition and format the new disk.  Careful you are
formatting the new one not the old one!

Use rsync -av --progress /mount/point/old/disk/ /mount/point/new/disk
This will take a while - but not too bad with only 7 gig or so of data.
Again - be really careful you have the right disk in the right spot or
you'll delete everything.
(some people prefer to use cp -ax rather than rsync)

Shutdown, remove the old drive, rejumper the new drive, boot from the
live cd again and fix the mbr.

Reboot from your new harddrive!

---
If you have another computer on the network with space, I think you
could use partimage (see partimage.org) to back it up to another
machine, then restore back from that after you've installed your new
drive and removed your old one.
---
If you have at least 650 meg free you could install mondoarchive and
back up to cds or a network location and restore from there,  but I'm
guessing you don't have that kind of space.
---
If you haven't heavily modified system type stuff you could do a clean
install on the new disk and then just copy/rsync your home folder
----

HTH
Brian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071011/880d8191/attachment.sig>


More information about the ubuntu-users mailing list