udisksctl is still a joke on deskop (Buster)

Discussion about development of the Debian OS itself
Post Reply
Message
Author
kanliot
Posts: 36
Joined: 2013-09-02 08:00

udisksctl is still a joke on deskop (Buster)

#1 Post 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

User avatar
Head_on_a_Stick
Posts: 13450
Joined: 2014-06-01 17:46
Location: /dev/chair

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

#2 Post 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?
Black Lives Matter

Debian buster-backports ISO image: for new hardware support

kanliot
Posts: 36
Joined: 2013-09-02 08:00

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

#3 Post 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.

User avatar
Head_on_a_Stick
Posts: 13450
Joined: 2014-06-01 17:46
Location: /dev/chair

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

#4 Post 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.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support

kanliot
Posts: 36
Joined: 2013-09-02 08:00

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

#5 Post 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?

Post Reply