Page 1 of 1

udisksctl is still a joke on deskop (Buster)

Posted: 2019-05-14 03:38
by kanliot
I wanted to quickly unmount an external disk after a backup rsync...

my old method was to type mount, then look for the correct block device but this isn't really easy now.

1. udisksctl power-off -p /media/user/sea*
..... # fails with an lookup error
2. sudo udisksctl power-off -b /dev/sde
..... #fails with an error because it's mounted
3. umount /dev/sde1 ; ( then #2)
....#immediately remounts the disk and opens it in the file manager.


WTF. :x

Re: udisksctl is still a joke on deskop (Buster)

Posted: 2019-05-14 15:49
by Head_on_a_Stick
How about

Code: Select all

udisksctl unmount --block-device /dev/sde
udisksctl poweroff --block-device /dev/sde
I don't use that program but I did just read the man page, perhaps try that before posting next time?

Re: udisksctl is still a joke on deskop (Buster)

Posted: 2019-05-16 21:42
by kanliot
not sure why you think your code will work. Maybe you're assuming it's user error?

My problem isn't getting the disk unmounted, it's using udisksctl. it's trash because it doesn't work for basic stuff, and it returns error messages that are trash.

Rather on debian, we have a dev snapshot of udev/udisksctl which seems to be unfinished, untested.

So while I expect umount to work, I wouldn't expect udisksctl to work.

Re: udisksctl is still a joke on deskop (Buster)

Posted: 2019-05-16 22:49
by Head_on_a_Stick
kanliot wrote:not sure why you think your code will work.
Well I've just tried it and it did work:

Code: Select all

user@debian:~$ udisksctl unmount --block-device /dev/sdb1
Unmounted /dev/sdb1.
user@debian:~$
But I did miss the dash in power-off so sorry about that.
kanliot wrote:it's user error?
Yes, looks like it.

What happens when you try my suggestion? Is the device not un-mounted by the udisksctl command?
kanliot wrote:My problem isn't getting the disk unmounted, it's using udisksctl. it's trash because it doesn't work for basic stuff, and it returns error messages that are trash.
No, your problem is that you don't know how to use it.

Re: udisksctl is still a joke on deskop (Buster)

Posted: 2019-05-22 17:18
by kanliot
No, your problem is that you don't know how to use it.
I can't tell the difference between your response and trolling. What did I do wrong?