Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the 'Automatically eject/mount disks on sleep/wake' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Automatically eject/mount disks on sleep/wake
Authored by: Steve28 on Fri, Apr 4 2008 at 11:47AM PDT
I have been using SleepWatcher, but I get very sporradic results. I have the following .sleep script in my home dir:

#!/bin/sh
/usr/sbin/diskutil eject /Volumes/Backup

The console shows that the .sleep is being executed, but the drive is not ejected and I get the "Device Removal" error. If I run it manually, it works fine. I know the script actually runs.

I *think* I remember this working prior to 10.5.2... but I'm not sure. Any ideas?


[ Reply to This | # ]
Automatically eject/mount disks on sleep/wake
Authored by: johnsawyercjs on Fri, Apr 4 2008 at 10:35PM PDT
I'm not seeing this working under OS 10.5.2 either--it's not ejecting my USB flash drive, plugged into a USB hub--I still get the "Device Removal" error when I wake the Mac from sleep.

[ Reply to This | # ]