|
|
know how to unmount network drives on sleep?
Great hint - does anyone know of an easy script to unmount network drives that can be executed on sleep by this? I have been looking for something like this to avoid the unpleasant effects of changing networks w/ old drives still mounted....
This hint mentions disktool and diskutil. I suppose you could do something like this in the .sleep script:
for VOL in $(ls /Volumes); do
but, are there any potential issues? what if a finder window was open for one of those volumes? or an app had a file open? unfortunately I can't test this now... I'm away from my network. thanks, Jon
know how to unmount network drives on sleep?
Nice idea! I tried using for VOL in /Volumes/*; do diskutil eject "$VOL" done in my .sleep file, which works nice with mounted disk images. However, I cannot get a disk mounted from a Linux box over Netatalk to eject. It simply doesn't work, even when I execute the command manually. bash-2.05a$ diskutil eject "/Volumes/Space" Disk Utility Tool Š2002, Apple Computer, Inc. Usage: diskutil [mount(Disk)|unmount(Disk)|eject] [Mount Point|Disk Identifier|Device Node] Mount, unmount or eject disks or volumes. Root access is not required. Example: diskutil unmount /Volumes/SomeDisk Any ideas?
know how to unmount network drives on sleep?
Now that I'm at home & attempting this w/ my network, it seems that diskutil doesn't work (unmount or eject) for disks shared via SMB either. Anyone know how to unmount these via the command line???
There is way to unmount network volumes
umount /Volumes/name |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|