Block device aliases are non-unique
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SpaceView |
In Progress
|
Medium
|
Jacob Vlijm |
Bug Description
Block devices such as USB drives often are referred to by the same device file. This means that for two distinct USB drives, the alias will be the same.
Reproducing the issue:
1. Insert a USB drive.
2. Once it is mounted, create alias for its partition device. For example, if it's /dev/sdc1, make alias for sdc1
3. Unplug the device. Plug in a different USB drive.
4. The alias for original device will be shown in the indicator
Use UUID instead. UUID are unique identifiers to each block device. For example, you could use something like this:
$ find /dev/disk/by-uuid/ -printf "%f\t%l\n"
by-uuid/
9224-C204 ../../sdc1
483CDA9D3CDA84FA ../../sdb5
8e344ab1-
32AE5766AE5721A1 ../../sdb4
7852-5217 ../../sdb2
B8E453D4E453940A ../../sdb3
D668510B6850EC2D ../../sdb1
86df21bf-
Hi Serg,
Thanks for this, and totally true. I will fix this in version 1.0 or sooner.