File system of a sparse bundle disk image, mounted at ~/Music/iTunes
That's what I wanted to know, thanks.
… to guess in advance what size to make the partitions. …
Think instead (again) towards a solution that does not involve a fixed size.
I think I'm all out of ideas. Anything I've missed?
Sparse bundle disk image with a nonstandard mount point
Prepare the directory that is to be the mount point.
For example, here's that directory and its (empty) content for user gjp22:
Code:
sh-3.2$ ls -@adel /Users/gjp22/Music/iTunes
drwxr-xr-x 2 root wheel 2 2 Jan 2014 /Users/gjp22/Music/iTunes
sh-3.2$ ls -@ael /Users/gjp22/Music/iTunes
total 80
drwxr-xr-x 2 root wheel 2 2 Jan 2014 .
drwx------+ 21 gjp22 wheel 62 18 Jan 2014 ..
0: group:everyone deny delete
sh-3.2$
Create then detach the image.
If you want an HFS Plus file system, and if you prefer relatively rapid recovery from an ungraceful unmount, then allow journalling.
If you prefer data integrity (within the constraints of HFS Plus) then you might prefer to disable journalling – I can discuss why, but not in this topic.
Consider the nature of the iTunes data in your case. If you wish to experiment with a nonstandard size for the bands of the bundle, then use
hdiutil(1), not Disk Utility, to create the image.
Use the
attach verb of hdiutil with option
-mountroot and the path to the prepared directory.
Finally, move your iTunes data to the mounted file system.
Take care to not improperly disconnect the device on which the .sparsebundle is stored. If you do so, you may eventually find it necessary to force a restart of the OS (I can discuss why, but not in this topic).
-----
As you're familiar with command line solutions, the brief outline above should be enough to get you started.
Whilst I have
not tested that .sparsebundle approach to ~/Music/iTunes I assume that it will be fine. If it's successful then you might like to share something less brief.
(I
have used the .sparsebundle approach extensively, and successfully, for other applications.)