hal lists msdos compatibility label instead of full label

Bug #33794 reported by Tristan Wibberley
10
Affects Status Importance Assigned to Milestone
hal (Ubuntu)
Invalid
Low
Unassigned

Bug Description

I have a USB flash drive with a single partition containing a vfat filesystem. This is mounted correctly but hal-device shows its volume label incorrectly.

$ mlabel -s u:
 Volume label is Tristan's USB Drive (abbr=TRISTA~1S U)

$ hal-device | grep ' volume.label'
  volume.label = 'TRISTA~1S U' (string)
  volume.label = '/boot' (string)
  volume.label = '' (string)
  volume.label = '' (string)

This causes applications that get data from hal to show the volume with the msdos shortname instead of the full vfat longname.

This means nautilus appears to be buggy, among other applications, displaying a silly name with sqiggles and things when hotplugging a usb flash drive. The expected behaviour is that nautilus should show the real volume label and the following should happen:

$ hal-device | grep ' volume.label'
  volume.label = 'Tristan's USB Drive' (string)
  volume.label = '/boot' (string)
  volume.label = '' (string)
  volume.label = '' (string)

Matt Zimmerman (mdz)
Changed in hal:
assignee: nobody → pitti
Revision history for this message
Martin Pitt (pitti) wrote :

This works for my drives. Do you know how to set the label in a way to get the effect you observe?

Changed in hal:
status: Unconfirmed → Needs Info
Revision history for this message
Tristan Wibberley (tristan-wibberley) wrote :

set up mtools to define a drive letter for your usb memory stick by adding the following line to /etc/mtools.conf:

    drive u: file="/dev/sdb1"

ensure your usb memory stick is not mounted but that its partitions are shown.

  $ sudo umount /media/

set a vfat label:

  $ sudo drive u: file="/dev/sdb1"

marvell:

  $ mlabel -s u:
   Volume label is Martin Pitt's 512MB Stick (abbr=MARTIN PITT)

mount it again, eg by ejecting, retracting, and reinserting and see how everything calls the stick by its abbreviated name (in this case "MARTIN PITT"). This unfortunately wouldn't distinguish between the 512MB drive named above and another drive named "Martin Pitt's 128MB Stick"

Revision history for this message
Tristan Wibberley (tristan-wibberley) wrote :

whoops:

  $ sudo drive u: file="/dev/sdb1"

should have been

  $ sudo mlabel u:"Martin Pitt's 512MB Stick"

and "marvell" should be "marvel"

Revision history for this message
Parthan SR (parth-technofreak) wrote :

As there has been no response for almost a year, the bug is marked as invalid.

Changed in hal:
assignee: pitti → nobody
status: Incomplete → Invalid
Revision history for this message
Tristan Wibberley (tristan-wibberley) wrote :

As the lack of a response is not from the reporter (me) who has provided the requested information, I'm setting this back to Incomplete.

Changed in hal:
status: Invalid → Incomplete
Revision history for this message
Duane Hinnen (duanedesign) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Revision history for this message
Duane Hinnen (duanedesign) wrote :

This bug was reported a while ago and there hasn't been any activity in it recently so we are closing this bug report. If you are still experiencing this bug with the latest release of Ubuntu please feel free to reopen this bug report. You can click on the current status, under the Status column, and change the Status back to "New". Thanks again and don't hesitate to submit bug reports in the future.

Changed in hal:
status: Incomplete → Invalid
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.