You are not logged in.

#1 2009-08-12 08:49:36

mrpringle
Member
Registered: 2009-07-11
Posts: 74

Backup and restore partition

HI,
I'm planning to upgrade my notebook's 5400rpm hard disk with a 7200rpm disk and I want to copy me entire OS over to the new hard disk.

What I plan to do is:
1. Connect the new notebook disk and old notebook disk to my desktop.
2. Create the partitions on the new disk and mount them
3. For each partition on the old disk, copy to the corresponding partition to the new disk, using "cp -r"
4. Install grub on the MBR of the new disk.

Will this method work. I don't want to create an exact clone of the disk because I want to change my partition sizes around.
I'm just wondering whether cp is suitable for copying an entire filesystem because of symoblic links.

Cheers

Offline

#2 2009-08-12 09:02:48

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: Backup and restore partition

I have done similar on may occasions. Should work fine. Use cp -a which will preserve permissions. Check man cp for details. You may need to edit /etc/fstab depending on how your partitions are referenced.

*** Just make sure you don't get the disks mixed up. smile ***

Last edited by mikesd (2009-08-12 09:06:14)

Offline

#3 2009-08-12 09:32:15

mrpringle
Member
Registered: 2009-07-11
Posts: 74

Re: Backup and restore partition

Thanks.

Offline

#4 2009-08-13 08:53:30

mrpringle
Member
Registered: 2009-07-11
Posts: 74

Re: Backup and restore partition

I just copied over the partitions today. Everything went well using "cp -a".

Offline

#5 2009-08-13 11:10:35

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: Backup and restore partition

mrpringle wrote:

I just copied over the partitions today. Everything went well using "cp -a".

Happy Days! It's really convenient being able to move a Linux OS install that way.

Offline

Board footer

Powered by FluxBB