Closed gagara closed 2 years ago
What does udisksctl info -b /dev/dm-0
shows about the device?
$ udisksctl info -b /dev/dm-0
/org/freedesktop/UDisks2/block_devices/dm_2d0:
org.freedesktop.UDisks2.Block:
Configuration: []
CryptoBackingDevice: '/org/freedesktop/UDisks2/block_devices/loop1'
Device: /dev/dm-0
DeviceNumber: 64768
Drive: '/'
HintAuto: false
HintIconName:
HintIgnore: false
HintName:
HintPartitionable: false
HintSymbolicIconName:
HintSystem: true
Id:
IdLabel:
IdType:
IdUUID:
IdUsage:
IdVersion:
MDRaid: '/'
MDRaidMember: '/'
PreferredDevice: /dev/dm-0
ReadOnly: false
Size: 35651584
Symlinks:
UserspaceMountOptions:
Could you also post output of udevadm info /dev/dm-0
please? Does an explicit udevadm trigger
make any difference?
# udevadm info /dev/dm-0
P: /devices/virtual/block/dm-0
N: dm-0
E: DEVNAME=/dev/dm-0
E: DEVPATH=/devices/virtual/block/dm-0
E: DEVTYPE=disk
E: MAJOR=253
E: MINOR=0
E: SUBSYSTEM=block
udevadm trigger
doesn't help either.
Here are udev events captured when partition is unlocked:
# udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[92939.200972] add /devices/virtual/bdi/253:0 (bdi)
KERNEL[92939.201001] add /devices/virtual/block/dm-0 (block)
KERNEL[92939.201267] change /devices/virtual/block/dm-0 (block)
KERNEL[92939.212501] change /devices/virtual/block/loop1 (block)
UDEV [92939.213067] add /devices/virtual/bdi/253:0 (bdi)
UDEV [92939.213319] add /devices/virtual/block/dm-0 (block)
UDEV [92939.213701] change /devices/virtual/block/dm-0 (block)
UDEV [92939.383897] change /devices/virtual/block/loop1 (block)
Can it be connected with kernel version? I had it working well some time ago. Now if I even downgrade udisks to e.g. 2.9.0
it still doesn't work.
My current kernel version is 5.14.9
It appears that there was a problem with cryptsetup
.
This issue can be closed. Thanks for support.
OK, thanks for your feedback. Feel free to reopen should the issue reappear.
I have LUKS encrypted partition in a file. It is exposed to the system through e.g.
/dev/loop1
device I can decrypt it usingudisks
I can mount it using usual
mount /dev/mapper/luks-04e7f218-94ae-481e-b448-d61065e112c7 /some/where
with no problem. But when I try to mount it usingudisksctl
I got:Same problem if I unlock it with
cryptsetup
udisks
version 2.9.3