View Full Version : [ubuntu] ubuntu disk copy
February 22nd, 2009, 06:34 AM
Can I use ubuntu to copy a Windows XP System disk to a new drive that I will use to replace the original C: drive? I have tried several wintel free applications with no luck.
February 22nd, 2009, 06:39 AM
Yes. The most straightforward way is to use the dd command, like this:
sudo dd if=/dev/sda of=/dev/sdb
Where /dev/sda is the original disk and /dev/sdb is the new disk. This is for whole disk copying; if you just want to move the partition around, things get trickier because of the way the windows bootloader works.
I've also made good use of the g4l boot CD, which you can get here:
February 22nd, 2009, 06:44 AM
I will try it. Thanks for the information.
February 22nd, 2009, 07:01 AM
Another good one is PING (Partimage is not Ghost) It is a backup and restore utility that I use all the time. I push my system a little and used to crash it 2 to 3 times a week and used this to restore a backup file. I used it to migrate my system a few times to. The ntfs shrink is option is still experimental so only use it after you have a normal backup already.
February 22nd, 2009, 07:11 AM
Most fancy looking disk copy programs use dd underneath. You can even copy a disk over a network connection:
March 13th, 2009, 10:40 PM
I copied my old disk successfully with dd as described above (thank you).
But the old disk was 12 G, the new one has a paper label that says 30G.
I tried to enlarge the (only) partition with parted, but parted thinks
the new disk is only 12G. I assume that this is because dd copied the
recorded label as well as all the data. info parted says that you can
do mklabel but this destroys the partition.Please any advice? thankyou
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.