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: jasont on May 10, '04 07:52:38PM

There should be someway to do something like this (if this hint hasn't been posted somewhere else):

make an image of your music folder (disk copy expert mode, toast, disk utility...etc)...

Then run split (I got this part from the project gutenberg dvd parts readme so you may need to change it also here we're using iso which we probably don't want).

something like
split --bytes=4700m --suffix-length=4 music.iso music.iso.

(you may need to go down to less than 4.7M or use a different format (ex a few more zeros and k or even b) depending on your media)

So now you should have all your autogenerated 'parts' which you burn to dvd and then when you get them back to your restore drive you do something like

cat music.iso.???? > music.iso

and you get back your big huge folder.

It's not as fast as the playlist solution and it relies on you having some drive space and some time(although this could probably be worked somehow imaging and segmenting at the same time)...but it does automatically calc data size for you based on media.

I haven't tried this one yet.



[ Reply to This | # ]
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 | # ]