I am running ubuntu 12.04 64bit. I used the dd command to clone my 80gb drive (filesystem) to a clean 500gb. It worked flawlessly. Afterwards , I took out the 80gb and replaced it with the new 500gb. It boots up perfectly and the entire filesystem is as it was. However , when I right click inside a directory and click properties or when I tupe df -h , it shows that there is only 10gb free space. Howrver , in the disk utility it shows the 500gb as the filesystem and nothing seems wrong. How can I make ubuntu see that there is more than just 10gb free space on the new hdd ?
EDIT:
Here is the result I get in gparted and then also the contradictory result when right clicking in a directory and selecting properties:
Best Answer
If you copied one drive to another using
dd
, the partition table is copied from one drive to another as-is, so all your partitions are of exactly the same size as they were on the old drive. The rest of your new drive is unallocated space.You need to boot from Ubuntu LiveCD/USB and use
gparted
to resize the partition(s).Here's an example how unallocated space looks in
gparted
:The above is true if you
dd
'ed the whole device to another, something likedd if=/dev/sda of=/dev/sdb
. In case you created partitions on the target drive first and then copied a partition from one drive to another (something likedd if=/dev/sda1 of=/dev/sdb1
), then the partition table on the target drive is correct (i.e. it has one partition which is ~500Gb), however, the filesystem on that partition is of the same size it was on the source drive.To resize an ext4 partition you need to use
resize2fs
command.See
man resize2fs
for more details.