Prevent auto-mounting of partition in OSX

1,217 views
Skip to first unread message

Ruiwen Chua

unread,
Aug 31, 2012, 9:46:30 AM8/31/12
to HackerspaceSG List
Hi all,

Would anyone have an idea of how to prevent a partition from automounting in OSX Mountain Lion?

/etc/fstab reports itself to be unreliable and is empty, save for comments telling you not to use it.

I've managed to set the 'noatime' flag on my SSD via a plist in /Library/LaunchDaemons, and suspect that there might be a similar way to tell a partition not to automount, but I'm not quite sure.


Clues?

Patrick Haller

unread,
Aug 31, 2012, 11:47:37 PM8/31/12
to hacker...@googlegroups.com
On 2012-08-31 21:46, Ruiwen Chua wrote:
> Would anyone have an idea of how to prevent a partition from
> automounting in OSX Mountain Lion?
>
> /etc/fstab reports itself to be unreliable and is empty, save for
> comments telling you not to use it.

Try adding the partition/mount info to /etc/fstab anyway, like:

UUID=922AD32A-308F-332B-876D-57C5F9CE2EDD /Volumes/StupidPart hfs rw,noauto

Ruiwen Chua

unread,
Sep 1, 2012, 12:10:18 AM9/1/12
to hacker...@googlegroups.com
Yep did that in the end, thanks!

[sudo] vifs appears to create an empty template into which you can stick the expected /etc/fstab config lines. Works like a charm now =)

Reply all
Reply to author
Forward
0 new messages