udisks
udisks copied to clipboard
looks like encrypted tcrypt devices or partitions are not inheriting the removable flag correctly.
After
touch /etc/udisks2/tcrypt.conf
tcrypt encrypted partitions/devices on usb pen drives seem to always get removable=0
I get the impression the removable is like the rotational and there is not a direct relationship with services on the device, or at least there should not be. I read some stuff that sometimes drivers incorrectly set this, so it could be someone just forgot to implement this properly.
I noticed also that eg. the removable is not directly available on partitions, so it would be more logical to not even have this listed here at all. It could also be that it is required/expected/default of the kernel for such devices residing in the /dev/ root. I think the the dm created by udisks should set this flag correctly.
these are the crypt devices that should have the removable=1
lsblk --output NAME,KNAME,TYPE,SIZE,MOUNTPOINT
sda sda disk 28.7G
├─sda1 sda1 part 1G /run/media/xxx/xxxxxxxxxxx
├─sda2 sda2 part 26.3G /run/media/xxx/xxxxxxxxxxxxx
└─sda3 sda3 part 1.3G
└─tcrypt-2051_2 dm-0 crypt 1.3G
└─tcrypt-2051_1 dm-1 crypt 1.3G
└─tcrypt-2051 dm-2 crypt 1.3G /run/media/xxx/xxxxxxxxxxxxxx