PDA

View Full Version : Safely Eject USB Drive REMOTELY




mainstay
Apr 8, 2011, 11:55 AM
Hi All,

I have a headless mac mini server that has a usb drive acting as a backup that rotated out night.

The network consists of no macs.

Is there a way to easily send a "safely eject the usb drive" command over the network?

The guy who is in charge of logging in via logmein and then ejecting the drive is bawking at the steps involved (which truthfully is a pita).

Any thoughts?

Thanks!



Phil A.
Apr 8, 2011, 11:58 AM
Do you have terminal access via ssh? if you do you can just use

sudo umount /volumes/VolName


where VolName is the volume name of your USB disk

Alternatively, if you need to do this on a regular basis you could setup a scheduled task (using Cron or even iCal) to eject it at the same time every night (all the backup disks would need to have the same volume name though)

mainstay
Apr 8, 2011, 12:04 PM
so connect on the pc using something like putty, and then issue the unmount command...?

great idea! (but may be too scary for the user).

Wonder if I can "batch" this in putty... I seem to recall some ability to do this.



side question, if I name ALL the external drives we'll be using with the same VolName... will this work? (i.e., I wouldn't want to have one set of commands for each different volume).


Thanks for the great (and super speedy) response!