For those whom prefer the GUI Disk Utility on a Mac. To create the same spare image 5GB file do the following.
- Start up Disk Utility from the Applications->Utilities folder
- Click the drive to highlight where you want create the image file.
- On the menu, click File – New – Blank Disc Image
- Change the dialog options to match the below image. Give it a file name like backup and click create.