Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Automatically eject/mount disks on sleep/wake' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Automatically eject/mount disks on sleep/wake
Authored by: Steve28 on Apr 04, '08 11:47:38AM

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 Apr 04, '08 10:35:36PM

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 | # ]