I created a copy of a working (but getting a few disk errors) 1TB spinning disk drive using dd
. I can mount the image (hdiutil attach
or just double click in Finder) no problem and see the files on the main HFS+ volume. However, I don't see the other partitions which I know are there (EFI, Recovery HD). I know these are there because if I restore the image directly to a physical drive, they are there.
However, I would like to restore this image to a 480GB SSD (smaller), so I need to shrink the main/large HFS+ partition of the image. There is plenty of free space in the partition (700GB) so this should be feasible.
I have tried converting the image to a read-write image (hdiutil convert -format UDRW
) or a sparse bundle (hdiutil convert -format UDSB
- results in a 200GB file).
The read-write image won't resize:
hdiutil: resize request is below minimum size allowed.
Running hdiutil compact
on the sparse bundle won't shrink it:
Reclaimed 0 bytes out of 796.9 GB possible.
What is the correct way to accomplish resizing the main/large HFS+ partition in the full disk image?