blkid returns label in uppercase

Bug #448693 reported by John McCabe-Dansted
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
util-linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: gnome-mount

My USB stick is mounted at "/media/Kingston_8GB" in Jaunty, but is mounted as "/media/KINGSTON_8GB" in Karmic. Unless there is a reason for this change, I would recommend that this be changed back so as:
1) To Allow non-uppercase volume names, and
2) To be consistent with Jaunty.

ProblemType: Bug
Architecture: i386
CheckboxSubmission: 404bd18599e0899eb2769ef0d7f6c695
CheckboxSystem: 6944d89cd962d3dec0d4098e584fb8ff
Date: Sun Oct 11 21:15:37 2009
DistroRelease: Ubuntu 9.10
Package: gnome-mount 0.8-2ubuntu1
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_AU.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-11.36-generic
SourcePackage: gnome-mount
Tags: ubuntu-unr
Uname: Linux 2.6.31-11-generic i686

Revision history for this message
John McCabe-Dansted (gmatht) wrote :
affects: gnome-mount (Ubuntu) → devicekit-disks (Ubuntu)
Revision history for this message
Martin Pitt (pitti) wrote :

This works fine for me, so I need further information from you. Please do

  devkit-disks --dump > /tmp/dkd.txt

attach /tmp/dkd.txt here, and copy&paste the output of

  sudo blkid

(all with the stick being plugged in and mounted, please). Thanks!

Changed in devicekit-disks (Ubuntu):
status: New → Incomplete
Revision history for this message
John McCabe-Dansted (gmatht) wrote :

Here is the output of "sudo blkid" on Karmic.

/dev/sda2: TYPE="swap"
/dev/sda5: UUID="935c65b7-3b63-4d34-9a67-c35ba38d4915" TYPE="ext4"
/dev/sdc1: LABEL="KINGSTON_8G" UUID="4A4C-DD52" TYPE="vfat"

The KINGSTON_8G line is the same in jaunty.

I noticed an error in my original bug report. There is no "B" at the end of the Volume names. This doesn't seem to be relevant though. I changed the label to "LaTeX_8GB". It was then mounted as /media/LaTeX_8GB on Jaunty, but /media/LATEX_8GB on Karmic. Hence this does not seem dependent on the name.

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 448693] Re: Removable media mounted as uppercase

John McCabe-Dansted [2009-10-11 18:18 -0000]:
> Here is the output of "sudo blkid" on Karmic.
>
> /dev/sda2: TYPE="swap"
> /dev/sda5: UUID="935c65b7-3b63-4d34-9a67-c35ba38d4915" TYPE="ext4"
> /dev/sdc1: LABEL="KINGSTON_8G" UUID="4A4C-DD52" TYPE="vfat"
>
> The KINGSTON_8G line is the same in jaunty.

Using vol_id? That's curious, I wonder where hal got the "Kingston"
capitalization from then.

> I noticed an error in my original bug report. There is no "B" at the end
> of the Volume names. This doesn't seem to be relevant though. I changed
> the label to "LaTeX_8GB". It was then mounted as /media/LaTeX_8GB on
> Jaunty, but /media/LATEX_8GB on Karmic. Hence this does not seem
> dependent on the name.

Is that change reflected in the output of blkid/vol_id?

Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)

Revision history for this message
John McCabe-Dansted (gmatht) wrote : Re: Removable media mounted as uppercase

I now get

/dev/sdc1: LABEL="LATEX_8GB" UUID="4A4C-DD52" TYPE="vfat"

from blkid In both Jaunty and Karmic. I do not have a vol_id command. If this helps, I used gparted on Jauny to changed the partition label.

Changed in devicekit-disks (Ubuntu):
status: Incomplete → New
Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 448693] Re: Removable media mounted as uppercase

John McCabe-Dansted [2009-10-11 19:00 -0000]:
> I now get
>
> /dev/sdc1: LABEL="LATEX_8GB" UUID="4A4C-DD52" TYPE="vfat"
>
> from blkid In both Jaunty and Karmic. I do not have a vol_id command. If
> this helps, I used gparted on Jauny to changed the partition label.

vol_id only exists in Jaunty. Can you please check again in Jaunty
(live system will work fine)?

Martin Pitt (pitti)
Changed in devicekit-disks (Ubuntu):
status: New → Incomplete
Revision history for this message
John McCabe-Dansted (gmatht) wrote : Re: Removable media mounted as uppercase

I am not rebooting, my Desktop is Jaunty and Netbook is Karmic.

On Jaunty:
$ sudo vol_id /dev/sdc1
ID_FS_USAGE=filesystem
ID_FS_TYPE=vfat
ID_FS_VERSION=FAT32
ID_FS_UUID=4A4C-DD52
ID_FS_UUID_ENC=4A4C-DD52
ID_FS_LABEL=LaTeX_8GB
ID_FS_LABEL_ENC=LaTeX_8GB

Changed in devicekit-disks (Ubuntu):
status: Incomplete → New
Revision history for this message
Martin Pitt (pitti) wrote :

Thanks! So it appears that the label is really "Kingston_8GB", and vol_id in Jaunty detects that correctly, but blkid in Karmic returns it as all uppercase.

summary: - Removable media mounted as uppercase
+ blkid returns label in uppercase
affects: devicekit-disks (Ubuntu) → util-linux (Ubuntu)
Changed in util-linux (Ubuntu):
status: New → Confirmed
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.