Contribute
Register

Edit fstab to not mount some drives on boot

Status
Not open for further replies.
Joined
Jul 23, 2012
Messages
2
Mac
  1. 0
Classic Mac
  1. 0
Mobile Phone
  1. 0
My First post as V2.0

Maybe you have SL and Lion and ML on seperate partitions and don't want some of them mounted on boot.

Here's the simplified method:

open /etc/fstab
create it if it doesn't exist (make a simple empty text file on your desktop and name it fstab then drag it into /etc/
add something like this to the file then save and close it

LABEL=Drive.Name.Goes.Here none hfs rw,noauto
LABEL=SnowLeo none hfs rw,noauto
LABEL=Drive.Name.Goes.Here none hfs rw,noauto

(obviously each line represents one partition. To hide only one partition you only need one line. You can also use the drives unique identifier but that is a lesson for another day).

reboot to take effect

Sample attached

ps: Nice work on the new site T&MM. Sorry I have no idea what my original information was when I signed up all those years ago. Good Luck and all the best. Woohoo I'm a virgin noob again. 哈哈
 

Attachments

  • fstab.txt
    128 bytes · Views: 364
A bit late I guess, but you can also make an Automator application that runs a shell script to unmount any partitions and then place that application in your Login Items. The shell script itself would contain "diskutil unmount /Volumes/<Insert Name of Partition to Unmount>". Probably not the best way but it sure is damn easy. lol.
 
Status
Not open for further replies.
Back
Top