从 Nautilus 中“安全移除”后,USB 3.0 硬盘驱动器不会停止旋转

Pol*_*eme 2 usb hard-drive unmount external-hdd 14.04

我有几个外部驱动器,一些使用外部电源,其他使用 USB 供电。

我将 USB 3.0 驱动器插入 USB 3.0 端口。
当我“弹出”驱动器(来自 Nautilus)时,它会继续旋转。
当我“安全地移除”驱动器时,它的名字从 Nautilus 中消失了,但驱动器继续旋转。我看不出重点。
我需要物理拔下 USB 电缆才能停止它。

如何使驱动器在弹出时停止旋转?

现在,发生了一些奇怪的事情,这可能会有所帮助:
如果我将同一个 USB 3.0 驱动器插入 USB 2.0 端口,当我“安全移除”驱动器时,它会正确关闭并停止旋转。

然后当我将它插回 USB 3.0 端口并尝试“安全移除”时,它会……自动重新安装!这真的很奇怪,我不明白。

我注意到的最后一件事是命令udisks --detach /dev/sdb可以解决问题。为什么“安全移除”不这样做?

s3l*_*lph 5

AFAIK,“安全删除”只是卸载设备,并将其从 udev 中删除。它不会向驱动器发送任何关闭命令。

相反,udisks --detatch这样做:(udisks联机帮助页)

--detach device_file [--detach-options options]
       Detaches (e.g. powering down the physical port the device is
       connected to) the device represented by device_file using a
       comma-separated list of options.
Run Code Online (Sandbox Code Playgroud)