udisksctl is still a joke on deskop (Buster)

News and discussion about development of the Debian OS itself

udisksctl is still a joke on deskop (Buster)

Postby kanliot » 2019-05-14 03:38

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
kanliot
 
Posts: 36
Joined: 2013-09-02 08:00

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

Postby Head_on_a_Stick » 2019-05-14 15:49

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?
Don't break DebianHow to report bugs

SharpBang GNU/Linux — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10613
Joined: 2014-06-01 17:46
Location: /dev/chair

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

Postby kanliot » 2019-05-16 21:42

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.
kanliot
 
Posts: 36
Joined: 2013-09-02 08:00

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

Postby Head_on_a_Stick » 2019-05-16 22:49

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.
Don't break DebianHow to report bugs

SharpBang GNU/Linux — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10613
Joined: 2014-06-01 17:46
Location: /dev/chair

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

Postby kanliot » 2019-05-22 17:18

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?
kanliot
 
Posts: 36
Joined: 2013-09-02 08:00


Return to Debian Development

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable