Two USB drive are plugged, but only one is shown

Bug #174703 reported by Francis Giraldeau
6
Affects Status Importance Assigned to Milestone
LTSP5
Fix Released
Undecided
Unassigned
ltspfs (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: ltspfs

When plugging two USB drive of the same model, udev assign them the same ID_FS_LABEL_SAFE. It appears that it's the same name than the mount point. Here is the mouting operations on the client :

mount -t vfat -o defaults /dev/sda1 /var/run/drives/KINGSTON
mount -t vfat -o defaults /dev/sdb1 /var/run/drives/KINGSTON
umount /var/run/drives/KINGSTON
umount /var/run/drives/KINGSTON

So, only the content of the latest plugged usb drive is shown.

This problem could be avoided by concatenating another variable to the mount point.

Joined, there is the environment variables for booth drives, as they are available in /lib/udev/add_fstab_entry

Revision history for this message
Francis Giraldeau (francis-giraldeau) wrote :

Here is the environment variables. We could use one of them, or maybe poke HAL for other...

Revision history for this message
GideonRomm (gideon) wrote :

Just pushed a fix upstream. If a previous label of the same name exists in ltspfs_fstab, it will assign a different label based upon the current label plus "-$DEVICENAME". So, "KINGSTON-sdb1".

Revision history for this message
Stéphane Graber (stgraber) wrote :

This has been fixed upstream, adding the device name and title (KINGSTON-sda1 for example).

Changed in ltsp:
status: New → Fix Released
Revision history for this message
Stéphane Graber (stgraber) wrote :

Fixed in Jaunty.

Changed in ltspfs:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.