Discussion Forums > Technology
Question - Using dd to clone different sized disks?
Freedom Kira:
Alrighty. Another problem, this time from a coworker.
Ever since upgrading from Ubuntu 10.04 to 10.10, he's noticed the system has been running slower and slower.
One day, he decided to swap his HDD to a new one. He booted Ubuntu with a Live CD and used dd to clone the disk. When he booted with the new drive, the speeds were back to normal.
However, there's a small problem. When he cloned the disk, he (obviously) also cloned the partition table. His old disk was 200GB, and his new one is 250GB. The new disk has been partitioned into 200GB and a 50GB "swap" partition. GParted won't let him extend the partition from 200GB to 250GB.
Any ideas?
Other computer specs unknown, though I could ask him if necessary. Filesystem is ext3 if I'm not mistaken.
toaow:
If the partition is in use, Gparted won't work. Your friend has to resize the partition by booting from a LiveCD. I recommend using Parted Magic:
http://partedmagic.com/doku.php
You could also use an Ubuntu LiveCD, but the gparted version on Ubuntu is usually a couple of versions older. Plus Parted Magic contains several other rescue/repair tools.
Freedom Kira:
Not sure if you quite understood. He booted from the Ubuntu Live CD to do the dd, and when he tried GParted from there it didn't let him extend the partition. So, from what you're saying, GParted won't allow resizing of the partition like that?
I'm getting him to check this thread every so often, so if anyone's got any more suggestions, feel free to throw them in.
toaow:
Did he reboot to the LiveCD in between the dd operation and attempting to resize? Trying to do it from GParted after booting from the hard disk won't work. You have to reboot from a LiveCD and NOT mount any partitions, then run GParted.
bork:
I have never used dd to clone my boot drive, used a script that mount the partitions on both existing drive and the new drive while in single user and runs dump to move. If interested, I can provide more details.
Navigation
[0] Message Index
[#] Next page
Go to full version