Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Error finding object for block device" when unmounting Btrfs drives #1324

Open
itaranto opened this issue Oct 17, 2024 · 5 comments
Open

"Error finding object for block device" when unmounting Btrfs drives #1324

itaranto opened this issue Oct 17, 2024 · 5 comments

Comments

@itaranto
Copy link

itaranto commented Oct 17, 2024

Every time I unmount any of my Btrfs-formated external drives I get something like this:

$ umount /run/media/ignacio/External
Error finding object for block device 0:61

Even using umount on the device file directly doesn't work:

$ umount /dev/sdf1
Error finding object for block device 0:61

The only way I can make this work is by using udisksctl -b like this:

$ udisksctl unmount -b /dev/sdf1
Unmounted /dev/sdf1.
@tbzatek
Copy link
Member

tbzatek commented Oct 22, 2024

umount is unrelated to UDisks, please open an issue on https://github.com/util-linux/util-linux/

@tbzatek tbzatek closed this as not planned Won't fix, can't repro, duplicate, stale Oct 22, 2024
@vojtechtrefny vojtechtrefny reopened this Oct 22, 2024
@vojtechtrefny
Copy link
Member

vojtechtrefny commented Oct 22, 2024

umount is unrelated to UDisks, please open an issue on https://github.com/util-linux/util-linux/

I forgot to answer here. This was my first thought as well, but no, this is actually error from our unmount helper called by umount. Unfortunately umount.udisks2 is very basic tool that doesn't work with btrfs (it's completely confused by the major 0 of the device) and will need some work.

@tbzatek
Copy link
Member

tbzatek commented Oct 22, 2024

Ah, I see that now, totally forgot about the mount helper.

@tbzatek
Copy link
Member

tbzatek commented Oct 23, 2024

TODO: add umount tests in test_80_filesystem.py, so far we're only testing unmount through the D-Bus API.

@tbzatek
Copy link
Member

tbzatek commented Oct 23, 2024

The problem with btrfs and device major:minor numbers is this one: https://github.com/storaged-project/udisks/blob/master/src/udisksmountmonitor.c#L504-L553

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants