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

Click here to return to the 'Prevent a given partition from mounting at boot' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Prevent a given partition from mounting at boot
Authored by: eitchbar on Feb 15, '09 06:08:11PM
this is handy now that many stick drives have a "U3 System" partition, which is useless for Mac users (next time I buy a thumb drive, I'll just erase the whole thing right off, but it's too late for that this time)

since the disk I want to disable mounting of is on a stick drive, I expect to be going from computer to computer (so a /etc/-based solution isn't ideal), and using computers where I'm not admin (so a /etc/-based solution isn't an option).

Is there a way to automatically, invisibly run a script when a drive mounts, as a sort of "mount items"? I could have something like
diskutil unmount (me)
run from a file on the disk, triggered by the disk itself. (If this is even possible, the script might have to be on the partition I'm keeping mounted?)

[ Reply to This | # ]