Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'image and segment music folder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
image and segment music folder
Authored by: Graff on May 11, '04 03:35:44AM

You can do this through hdiutil, which comes with a standard install of Mac OS X. I'm assuming that you are using at least Mac OS X 10.2 here.

If you want to make a set of CDs or DVDs then run these commands to make the set. You would then take the resulting image files and burn them using Disk Utility or some other CD burning software.

Here are the commands to make a CD set, it assumes that 650 megabytes will be small enough to fit on a CD. Remember that a CD will hold less than its printed size due to differences in how the bytes are counted and what the filesystem takes up:

hdiutil create -ov -srcfolder /Users/username/Music/iTunes -volname 'Music Backup' /tmp/musicbackup.dmg
mkdir ~/Desktop/music\ backup
hdiutil segment -o ~/Desktop/music\ backup/musicbackup -segmentSize 650m /tmp/musicbackup.dmg
rm /tmp/musicbackup.dmg

Here are the commands to make a DVD set, it assumes that 4.2 gigabytes will be small enough to fit on a DVD:

hdiutil create -ov -srcfolder /Users/username/Music/iTunes -volname 'Music Backup' /tmp/musicbackup.dmg
mkdir ~/Desktop/music\ backup
hdiutil segment -o ~/Desktop/music\ backup/musicbackup -segmentSize 4300m /tmp/musicbackup.dmg
rm /tmp/musicbackup.dmg

The size for the DVD set is 4300 megabytes because a gigabyte is 1024 megabytes so 4.2 GiB = 4300.8 MiB.

It can take a while to create the master image in the first command. On my PowerMac G5 dual 2 gHz a music library of approximately 8.4 gigs took about 15 minutes for the first command.



[ Reply to This | # ]