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.
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
udisksctl is still a joke on deskop (Buster)
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 132 times
Re: udisksctl is still a joke on deskop (Buster)
How about
I don't use that program but I did just read the man page, perhaps try that before posting next time?
Code: Select all
udisksctl unmount --block-device /dev/sde
udisksctl poweroff --block-device /dev/sde
deadbang
Re: udisksctl is still a joke on deskop (Buster)
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.
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.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 132 times
Re: udisksctl is still a joke on deskop (Buster)
Well I've just tried it and it did work:kanliot wrote:not sure why you think your code will work.
Code: Select all
user@debian:~$ udisksctl unmount --block-device /dev/sdb1
Unmounted /dev/sdb1.
user@debian:~$
Yes, looks like it.kanliot wrote:it's user error?
What happens when you try my suggestion? Is the device not un-mounted by the udisksctl command?
No, your problem is that you don't know how to use it.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.
deadbang
Re: udisksctl is still a joke on deskop (Buster)
I can't tell the difference between your response and trolling. What did I do wrong?No, your problem is that you don't know how to use it.