Results 1 to 7 of 7

Thread: command line alternative for "Safely Remove Drive"

  1. #1
    Join Date
    Aug 2006
    Location
    Alexandria, VA
    Beans
    51
    Distro
    Ubuntu 11.04 Natty Narwhal

    Question command line alternative for "Safely Remove Drive"

    Ubuntu Server 10.04 LTS

    Is there a command line alternative to clicking on "Safely Remove Drive" in nautilus?

    When I click on "Safely Remove Drive" in nautilus, the USB HDD attached (WD Elements) vanishes from the nautilus "places" list, the drive spins down, and the light on the drive dims to indicate that it is powered down.

    I have tried the "umount" command as well as the "eject" command from the terminal, but they both only seem to unmount the drive, as it is still shown in the nautilus "places" list and the light on the drive stays bright.

    is there another way? thanks!
    Last edited by balance07; August 9th, 2011 at 05:18 PM. Reason: tried 'umount' as well

  2. #2
    Join Date
    Sep 2009
    Beans
    27

    Re: command line alternative for "Safely Remove Drive"

    sudo umount /media/<name of HDD>

  3. #3
    Join Date
    Aug 2006
    Location
    Alexandria, VA
    Beans
    51
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: command line alternative for "Safely Remove Drive"

    thanks for the reply, xiainx. i should have mentioned that i tried 'umount' before 'eject', and that they both seem to do the same thing, unmount only, and not power down the usb drive.

  4. #4
    Join Date
    Jun 2007
    Beans
    17,337

    Re: command line alternative for "Safely Remove Drive"

    You should really d. check this, just what I've observed here
    Ex.I have a usb drive, sdb with 1 partition sdb1

    So to 'Safely remove' from cli -
    Code:
    udisks --unmount /dev/sdb1 && udisks --detach /dev/sdb
    see man udisks for more info, ect.
    Last edited by mc4man; August 9th, 2011 at 05:35 PM.

  5. #5
    Join Date
    Aug 2006
    Location
    Alexandria, VA
    Beans
    51
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: command line alternative for "Safely Remove Drive"

    YES!

    thanks mc4man, that did the trick!

  6. #6
    Join Date
    Feb 2011
    Beans
    11

    Re: command line alternative for "Safely Remove Drive"

    Thanks a lot!!!!!!!

  7. #7
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: command line alternative for "Safely Remove Drive"

    Old thread closed.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •