udiskie
udiskie copied to clipboard
LVM on external drive not showing up in udiskie menu
I have an external SDD with two partition on LVM :
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 465,8G 0 disk
└─sda1 8:1 0 465,8G 0 part
├─T5systerel-crypted 254:4 0 300G 0 lvm
└─T5systerel-clear 254:5 0 165,7G 0 lvm
However udiskie does only show SDA (and I'm only able to unpower sda) :
udiskie-info -a
/dev/sda
Even if the partition are seen in udiskctl dump:
/org/freedesktop/UDisks2/block_devices/dm_2d4:
org.freedesktop.UDisks2.Block:
Configuration: []
CryptoBackingDevice: '/'
Device: /dev/dm-4
DeviceNumber: 65028
Drive: '/'
HintAuto: false
HintIconName:
HintIgnore: false
HintName:
HintPartitionable: false
HintSymbolicIconName:
HintSystem: true
Id: by-id-dm-name-T5systerel-crypted
IdLabel:
IdType: crypto_LUKS
IdUUID: 660accec-9c92-4fdc-b0b9-03c40354481f
IdUsage: crypto
IdVersion: 2
MDRaid: '/'
MDRaidMember: '/'
PreferredDevice: /dev/T5systerel/crypted
ReadOnly: false
Size: 322122547200
Symlinks: /dev/T5systerel/crypted
/dev/disk/by-id/dm-name-T5systerel-crypted
/dev/disk/by-id/dm-uuid-LVM-tH6CH6ptcOAUGoff5bMCpPVzcdypY3tz9KVYYogPzjCTkpunSuaN0yFoPX2YXw8P
/dev/disk/by-uuid/660accec-9c92-4fdc-b0b9-03c40354481f
/dev/mapper/T5systerel-crypted
UserspaceMountOptions:
org.freedesktop.UDisks2.Encrypted:
ChildConfiguration: []
CleartextDevice: '/'
HintEncryptionType:
MetadataSize: 16777216
/org/freedesktop/UDisks2/block_devices/dm_2d5:
org.freedesktop.UDisks2.Block:
Configuration: []
CryptoBackingDevice: '/'
Device: /dev/dm-5
DeviceNumber: 65029
Drive: '/'
HintAuto: false
HintIconName:
HintIgnore: false
HintName:
HintPartitionable: false
HintSymbolicIconName:
HintSystem: true
Id: by-id-dm-name-T5systerel-clear
IdLabel:
IdType: ext4
IdUUID: 873f04c2-5dd9-45d5-87ab-485060490974
IdUsage: filesystem
IdVersion: 1.0
MDRaid: '/'
MDRaidMember: '/'
PreferredDevice: /dev/T5systerel/clear
ReadOnly: false
Size: 177947541504
Symlinks: /dev/T5systerel/clear
/dev/disk/by-id/dm-name-T5systerel-clear
/dev/disk/by-id/dm-uuid-LVM-tH6CH6ptcOAUGoff5bMCpPVzcdypY3tzMHU22R5J36PHooGkOZXK22Yhh37qYIth
/dev/disk/by-uuid/873f04c2-5dd9-45d5-87ab-485060490974
/dev/mapper/T5systerel-clear
UserspaceMountOptions:
org.freedesktop.UDisks2.Filesystem:
MountPoints:
Size: 177947541504
Hi,
thanks for the info!
will admit that udiskie's support for LVM etc is currently less than ideal, so this doesn't surprise me. I haven't had time to look into this in detail and as I currently have lots on my plate, so this might take a while, sorry. (I will probably have some more time in about two months).
My first guess is that most likely, the device is marked as ignored by one of udiskie's builtin rules to hide internal devices. You can check this by launching udiskie with the verbose flag, i.e. udiskie -v and observe whether the device is excluded by a rule (and by which). In this case, you should also be able to add your own rule to ~/.config/udiskie/config.yml that will mark the device as handleable, e.g.:
device_config:
- id_uuid: 9d53-13ba # [filter] match by device UUID
ignore: false # [action] never ignore this device
I assume it has to do with the fact that HintSystem is set to true for the device itself, and that LVM devices do not necessarily have a single parent (which therefore makes it more awkward to determine the "external-ness" of a device from their parent). Determining the parent-child relationship might be possible through the LVM related udisks D-Bus interfaces, but that has not been implemented in udiskie so far.
Thanks for the tip ! The disk do now appear on udiskie. I still have some problem to mount them but I'm still investigating why (I have possibly mess something on my LVM setup).
I think the remaining problem was on my side. For now I've removed LVM and only works with a LUKs partitition and as such I won't be able to provide more information. Thanks again for udiskie and for your very kind support.