Jump to content

Any way to automatically unmount a harddrive a startup?


6 posts in this topic

Recommended Posts

o.k., it seems i have found something for myself:

A apple Script could do the job:


tell application "Terminal"


do script ¬

"diskutil unmount \"/Volumes/volumename to unmount\"" in ¬

window frontmost

delay 5


end tell


Save as programm, add to startupitems.

Link to comment
Share on other sites

  • 5 months later...

create the file /etc/fstab an put these line:


LABEL=NOMOUNT1 /Volumes/NOMOUNT1 ntfs ro,noauto


where NOMOUNT1 should be replaced with the name of your windows volume


you should create/edit the /etc/fstab file as root:


sudo su -

(type your user password here)

cat >>/etc/fstab

(paste the line above)



reboot the machine and see if it is still mounted.

Link to comment
Share on other sites


  • Create New...