The same goes for disk images, as they're not powered in the first place instead, you'll need a different command to remove them from your list of devices: udisksctl loop-delete -b /dev/loop0 Mounting With mountįor the most part, Udisks should do the job for you. Note that you should never power-off your Linux PC's partitions, as they're part of your system.
To remove it completely and safely remove your device, you need to enter in another command which switches it off: udisksctl power-off -b /dev/sdb1 If you check your devices using lsblk, you'll notice that your hard drive is still present, even after unmounting it. Don't forget to change out the name at the end with the name of your device, and keep in mind that virtual devices, such as disk images, are named differently than hard disk drives and USBs.