Filesystem not showing correct size

backupfilesystemhard drive

I installed a new HDD and transferred my old data to it by using dd on my old HDD and then dd again to the new HDD. However, when booting from the new HDD, it does not recognize the new, larger disk space, and still thinks it has the old size.

My old HDD was 160 GB and it was near capacity, new HDD is 1TB.

The command I ran to write to my new harddrive was

>: sudo dd if=/dev/rdisk3 of=/dev/rdisk0s2 bs=131072

>: df -h
Filesystem      Size   Used  Avail Capacity  Mounted on
/dev/disk0s2   149Gi  146Gi  2.4Gi    99%    /

>: diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk0
   1:                        EFI                         209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            999.9 GB   disk0s2

How should I fix this? I can run another round of dd again if need be.

Best Answer

dd copies the filesystem exactly, byte by byte. It is not the best way to duplicate a filesystem, however, now that it is done, you can use Disk Utility to resize. Select the Drive (not partition), then Partition tab, and you can drag the partition to the desired size.