Block device aliases are non-unique

Bug #1637775 reported by Serg
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SpaceView
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-5eb5-4e20-becd-4147fffd439f ../../sdb6
32AE5766AE5721A1 ../../sdb4
7852-5217 ../../sdb2
B8E453D4E453940A ../../sdb3
D668510B6850EC2D ../../sdb1
86df21bf-d95f-435c-9292-273bdbcba056 ../../sda1

Revision history for this message
Jacob Vlijm (vlijm) wrote :

Hi Serg,
Thanks for this, and totally true. I will fix this in version 1.0 or sooner.

Changed in spaceview:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Jacob Vlijm (vlijm)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers