আপনি সম্ভবত udisks2
প্যাকেজ ইনস্টল করেছেন; তুমি ব্যবহার করতে পার
udisksctl power-off -b /dev/sdX
/dev/sdX
আপনি যে ডিভাইসটি বন্ধ করতে চান তা কোথায় ?
udisksctl
ম্যান পৃষ্ঠা থেকে (সংস্করণ ২..6..6):
power-off
Arranges for the drive to be safely removed and powered off. On the OS
side this includes ensuring that no process is using the drive, then
requesting that in-flight buffers and caches are committed to stable
storage. The exact steps for powering off the drive depends on the
drive itself and the interconnect used. For drives connected through
USB, the effect is that the USB device will be deconfigured followed
by disabling the upstream hub port it is connected to.
Note that as some physical devices contain multiple drives (for
example 4-in-1 flash card reader USB devices) powering off one drive
may affect other drives. As such there are not a lot of guarantees
associated with performing this action. Usually the effect is that the
drive disappears as if it was unplugged.