1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Safely Eject USB Drive REMOTELY

Discussion in 'Mac OS X Server, Xserve, and Networking' started by mainstay, Apr 8, 2011.

  1. macrumors 6502


    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?

  2. macrumors 68040

    Phil A.

    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)
  3. macrumors 6502


    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!

Share This Page