If you need to backup or copy a huge directory to multiple disks then this might be useful to you. I am on Mac OS X Leopard.

1
2
3
4
5
6
7

# Create a image of the folder. 
hdiutil create -o Image.dmg -format UDRO -srcfolder SourceFolder

# Segment the image into multiple segments.
hdiutil segment -o Image.Segment.dmg  -segmentSize 4.7g Image.dmg

The above command would split the Image.dmg into multiple segments of Size 4.7GB. The first one would be named Image.Segment.dmg and the rest would be Image.Segment.001.dmg and so on. Burn them to individual disks as you like. To mount the images, mount(double click) the first segment. Mac would do the rest.

Leave a Reply

Nonprofit_banner_horizontal_banner_3991