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

Click here to return to the 'OS X 10.7 Lion, customizing mount points' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
OS X 10.7 Lion, customizing mount points
Authored by: magnamous on Apr 20, '12 08:50:00PM
I just tried this on 10.7.3 and it worked. A few updates:
  • the UUID can be found in Disk Utility (File > Get Info on a volume)
  • the UUID can also be found using diskutil info /Volumes/yourVolumeName in Terminal
  • the preferred way to edit /etc/fstab is now by using the command sudo vifs, but that means you have to edit using Vim. Vim can be learned by typing the command vimtutor. I just used sudo nano /etc/fstab because I didn't know at the time.

I also noted that this can be used to change the mount point of the volume. I have an external 2.5" drive that I use for my iTunes folder, but I also have a partition with a copy of the OS X installer, as well as one with DiskWarrior on it. I used the hint to hide the two boot volumes, but I also set the largest partition to mount as the iTunes folder in my home folder, so the entry looked something like this:
UUID=myPartitionsUUID  /Users/me/Music/iTunes  hfs  rw,auto
Now, when I plug in the drive, the boot partitions don't mount, and the other one mounts in place of the default iTunes folder. Some notes:
  • If you customize the mount point, make sure that the destination folder already exists. If it doesn't, it won't mount, and Disk Utility will claim that there's something wrong with the drive. In other words, if your mount point is /Users/you/Music/someSubFolder, make sure that someSubFolder already exists.
  • If your customized mount folder already has stuff in it, you will lose access to that stuff while the volume is mounted. When it is unmounted, the regular folder's contents will return.
  • Strangely, the iTunes partition also mounts at the "Computer" level, though it does not in /Volumes. I don't know why.
  • Also strange: I can't rename the partition in the Finder once I've added the entry in fstab. That is, if your partition is named "Seagate", when it mounts, the iTunes folder will disappear and be replaced by an icon named "Seagate", with whatever icon the partition has. If you try to rename it to iTunes, the change won't take. Unmount the drive, comment out (#) the appropriate line in fstab, mount the drive, change the name, unmount, remove the comment character in fstab & save, remount, and it should appear with your desired volume name.
  • I have no idea whether anything I've suggested here is monumentally stupid and may destroy everything you hold dear. If someone does know, I would appreciate being enlightened.
Edited on Apr 20, '12 10:35:57PM by magnamous

[ Reply to This | # ]
OS X 10.7 Lion, customizing mount points
Authored by: psaxo on Aug 22, '12 05:29:27PM

Thanks for the tips. vimtutor is great!

[ Reply to This | # ]