PDA

View Full Version : [ubuntu] after dd from full 15GB part to 1.3TB part, shows same free space



teddmeister2
December 8th, 2010, 10:42 PM
I just used dd to clone a linux partition to a new hard drive, it had 800mb left on the old hard drive, after dd, new hard drive lists 1.29/1.3 terabytes full. Is this what happens by default in dd? How can I fix this?

anglican
December 9th, 2010, 03:06 PM
I just used dd to clone a linux partition to a new hard drive, it had 800mb left on the old hard drive, after dd, new hard drive lists 1.29/1.3 terabytes full. Is this what happens by default in dd? How can I fix this?Indeed, this is exactly what dd does when you use it to copy a disk partition, the copied partition should look just like the original i.e. not use the additional space on the new drive (I presume the new disk is larger than the original). You can use gparted (or various other utilities) to resize the partition on the new disk... but not if it is mounted, so unmount it before trying to resize it. If it is the file system on which your OS resides and you've booted from it, you will need to go back to the original disk to do this (or use a live CD).

H