Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have browsed several answers... but none seems to address my question.

As reported in bug #1067876 the options to "safely remove" an external drive is gone.

No problem! Umount is sufficient for me. However, I cannot recognize WHEN it is safe to pull the USB plug out since the icon for the storage device does not disappear, and no notification is displayed. How can I know if it is safe to unplug the device? How can I explain to my mother when it is safe to do so? So I am looking for an easy solution (as it is present in 12.04).

share|improve this question
    
I know that I can take a look with Gnome Disks, or check in a terminal with 'mount'. Ubuntu is supposed to be user-friendly. Ejecting external drives is daily business. It cannot be possible that users have to use special software or terminal commands to check if they can safely unplug a device. –  Andre Dec 31 '12 at 1:16

1 Answer 1

Perhaps a BASH script on the Desktop might suffice until the bug is fixed. This solution is from Nikunj Lahoti. The software, udisks, can unmount and power down an external hard drive.

sudo apt-get install udisks

Then create a file (safelyremove.sh, perhaps) on the Desktop or a convenient place. Change /dev/sdc to your device. Make sure to include all partitions on the device.

#!/usr/bin/env bash

echo "Unmounting..."
udisks --unmount /dev/sdc1
udisks --unmount /dev/sdc2

echo "Spinning down..."
udisks --detach /dev/sdc

read -p "Done! Press [Enter] to exit."

Make the script executable. It will wait for [Enter] so you can see it is done.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.