0

I have an external usb hard drive, however when I try to safely remove it, the device turns off and then the device mounts itself again. I've tried to do

sudo udisks --detach /dev/sdb

However, the device gets mounted again!

Any solutions? Thanks for reading :)

  • Refer to my answer on another question here. There is command to actually power off the device – Sergiy Kolodyazhnyy Apr 15 '15 at 21:08
  • I have already used udisk --detach, as i mentioned the disk gets mounted again – CerealKiller Apr 15 '15 at 21:15
  • Can you safely remove it in nautilus? If yes you can type this command so it doesn’t auto remount: gsettings set org.gnome.desktop.media-handling automount false – Da1T Apr 15 '15 at 21:25
  • I can, however after 1 or 2 seconds the device gets mounted again. After doing the gsettings command, it appears on nautilus but doesn't get mounted... however it appears again – CerealKiller Apr 15 '15 at 21:31

1 Answers1

0

For removing your device, you should un-mount it:

sudo umount /dev/sdb

in case it failed to un-mount, you should force it by add -f option:

sudo umount -f /dev/sdb