You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And (importantly), if you start devmon when drives are already mounted, you never get the Mounted ... line in the devmon output, so you never get the mountpoint info in the drive metadata.
Presumably the mount point can be deduced by appending the label to the end of the standard mount directory (/media/pi in this case), but nobody should be guessing paths in that way. One example of how this can break is if there are two drives that have the same disk label (then .2 is appended, etc.). Currently the user has to manually look in /etc/mtab to get the current mount point info, which requires extra effort.
However the regular metadata does not list the UDisks device path, so you have to manually figure out which drive to update metadata for, by converting e.g. /org/freedesktop/UDisks/devices/sdb1 into /dev/sdb1 (which presumably works, but seems dicey). There should be a metadata field:
There are several missing fields in drive metadata.
(1)
mountpoint
Currently a
Mounted ...
line looks like this:whereas all the other metadata looks like this
And (importantly), if you start devmon when drives are already mounted, you never get the
Mounted ...
line in the devmon output, so you never get the mountpoint info in the drive metadata.Presumably the mount point can be deduced by appending the label to the end of the standard mount directory (
/media/pi
in this case), but nobody should be guessing paths in that way. One example of how this can break is if there are two drives that have the same disk label (then.2
is appended, etc.). Currently the user has to manually look in/etc/mtab
to get the current mount point info, which requires extra effort.For consistency there should be another field:
(2)
udevpath
If you unplug a drive, you get the line
However the regular metadata does not list the UDisks device path, so you have to manually figure out which drive to update metadata for, by converting e.g.
/org/freedesktop/UDisks/devices/sdb1
into/dev/sdb1
(which presumably works, but seems dicey). There should be a metadata field:(3)
usbport
USB port number is also missing. You have to make a separate call to udevadm:
Explanation of this path is here:
https://unix.stackexchange.com/a/406096/340704
There needs to be a metadata field like
(4)
size
It would be really helpful to have the partition size and free space reported in the metadata too, saving a call to
df
:The text was updated successfully, but these errors were encountered: