d-track Posted February 6, 2011 Share Posted February 6, 2011 my second hdd is for windows only and i never use it under OSX. Even when i blacklist that HDD in spotlight piracy sometimes "grinding" and takes time awaking from sleep when i click finder after a while, so as at shutdown/restart. the only solution to unmount them in disk utility. so i would like it to be unmounted at startup. i am not into scripting (last time i did it in DOS batch files:) thanks Link to comment https://www.insanelymac.com/forum/topic/246797-how-to-unmount-drive-at-boot-automatically/ Share on other sites More sharing options...
WhatTheFiber Posted February 7, 2011 Share Posted February 7, 2011 Here's a Perl script I whipped up. Open it in TextEdit and change "Volume Name Here" to the name of the volume and save it. Go to System Preferneces>Accounts>Login items. Drag the script into there. http://cl.ly/270d3f3o3g272F2I422R Link to comment https://www.insanelymac.com/forum/topic/246797-how-to-unmount-drive-at-boot-automatically/#findComment-1635622 Share on other sites More sharing options...
d-track Posted February 7, 2011 Author Share Posted February 7, 2011 it doesn't work. opens the script file at startup in textedit, thats all. do i need any additional config i missed? Link to comment https://www.insanelymac.com/forum/topic/246797-how-to-unmount-drive-at-boot-automatically/#findComment-1635825 Share on other sites More sharing options...
WhatTheFiber Posted February 7, 2011 Share Posted February 7, 2011 it doesn't work.opens the script file at startup in textedit, thats all. do i need any additional config i missed? Right click the file and choose "Get info". Go to the section where it says "Open with" and choose terminal. Applications>Utilities>Terminal.app Also, I forgot to add a line of code. At the very bottom add the following. system "killall Terminal"; That will close the terminal window when the job is complete. Link to comment https://www.insanelymac.com/forum/topic/246797-how-to-unmount-drive-at-boot-automatically/#findComment-1636069 Share on other sites More sharing options...
d-track Posted February 7, 2011 Author Share Posted February 7, 2011 now it opens terminal at startup but nothing happens. doesnt even close it. is there any other way to do it? i'm on 10.6.6 Link to comment https://www.insanelymac.com/forum/topic/246797-how-to-unmount-drive-at-boot-automatically/#findComment-1636155 Share on other sites More sharing options...
retack Posted February 13, 2011 Share Posted February 13, 2011 Have you tried chameleon's built-in function for hiding partitions? Might do the trick. Link to comment https://www.insanelymac.com/forum/topic/246797-how-to-unmount-drive-at-boot-automatically/#findComment-1639103 Share on other sites More sharing options...
d-track Posted February 14, 2011 Author Share Posted February 14, 2011 that was the first i tired. that functions seems only hiding it away from booting. thanks anyway Link to comment https://www.insanelymac.com/forum/topic/246797-how-to-unmount-drive-at-boot-automatically/#findComment-1639351 Share on other sites More sharing options...
Myr7 Posted February 15, 2011 Share Posted February 15, 2011 edit /etc/rc.local and write: diskutil unmount "/Volumes/PartitionName" Link to comment https://www.insanelymac.com/forum/topic/246797-how-to-unmount-drive-at-boot-automatically/#findComment-1639754 Share on other sites More sharing options...
d-track Posted February 17, 2011 Author Share Posted February 17, 2011 there is no rc.local there. only rc.common should i create one? Link to comment https://www.insanelymac.com/forum/topic/246797-how-to-unmount-drive-at-boot-automatically/#findComment-1640680 Share on other sites More sharing options...
Myr7 Posted February 17, 2011 Share Posted February 17, 2011 yes Link to comment https://www.insanelymac.com/forum/topic/246797-how-to-unmount-drive-at-boot-automatically/#findComment-1640695 Share on other sites More sharing options...
Recommended Posts