Jump to content

Any way to automatically unmount a harddrive a startup?


rhalls
 Share

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"

activate

do script ¬

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

window frontmost

delay 5

quit

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)

Ctrl-D

 

reboot the machine and see if it is still mounted.

Link to comment
Share on other sites

 Share

×
×
  • Create New...