![]() ![]() Just using udisksctl results in error if still mounted and eject alone does not power-off, only unmounts USB. Initial answer was on askubuntu.īased on two top answers. This process is close to the manual procedure that is suggested here. logically disables/removes it from its USB port.Precisely, the current implementation (as of 2014): Usually the effect is that theĭrive disappears as if it was unplugged. As such there are not a lot of guaranteesĪssociated with performing this action. Note that as some physical devices contain multiple drives (forĮxample 4-in-1 flash card reader USB devices) powering off one drive USB, the effect is that the USB device will be deconfigured followedīy disabling the upstream hub port it is connected to. The exact steps for powering off the drive depends on theĭrive itself and the interconnect used. Requesting that in-flight buffers and caches are committed to stable Side this includes ensuring that no process is using the drive, then The documentation states (about the power-off option):Īrranges for the drive to be safely removed and powered off. Note: udisksctl might be a more "mainstream" tool, compared to udisks (the former is already installed on my Debian, the latter isn't & has been criticised for unnecessary spin up/down). This usually causes the drive to spin down gracefully. So first, you eject /dev/sdb (or umount everything).Īnd then, after proper unmounting, the best way to unplug a USB external hard-drive is: udisksctl power-off -b /dev/sdb On Linux, eject will work, but will not really "finish the job" regarding USB rotating drives. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |