blkid prefers UDF label over iso9660

Bug #1022519 reported by Dan Kegel on 2012-07-09
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
util-linux (Ubuntu)
Medium
Unassigned

Bug Description

Unity / Nautilus / udev display the volume name of a DVD as "DVD Volume" when it's really something else.

The 'volname' command gets the volume ID of DVD volumes right:

$ volname /dev/sr0
FSX DISK 1

but udev doesn't:

$ udevadm info -q env -n /dev/sr0 | grep ID_FS_LABEL
ID_FS_LABEL=UDF_Volume
ID_FS_LABEL_ENC=UDF\x20Volume

Nautilus and Wine and everyone else probably get the volume info from udev, so they get it wrong, leading to problems like games not installing (see http://bugs.winehq.org/show_bug.cgi?id=25558 )

Where does the wrong name come from?

Dan Kegel (dank) wrote :

This is with Ubuntu 12.04.

Martin Pitt (pitti) wrote :

Can you please copy&paste the output of

  sudo BLKID_DEBUG=0xffff blkid -p /dev/sr0

here? Thanks!

affects: udev (Ubuntu) → util-linux (Ubuntu)
Changed in util-linux (Ubuntu):
status: New → Incomplete
Dan Kegel (dank) wrote :

Sure. BTW the magic for this disc is CD001.
Log is http://kegel.com/bug1022519.log
The first 64K of the iso is at http://kegel.com/bug1022519.iso
"volname bug1022519.iso" extracts the right volume id.

Dan Kegel (dank) on 2012-07-09
Changed in util-linux (Ubuntu):
status: Incomplete → New
Martin Pitt (pitti) wrote :

It seems the first 64 KiB are not enough here:

$ blkid -p bug1022519.iso
bug1022519.iso: LABEL="FSX DISK 1" TYPE="iso9660" USAGE="filesystem"

Can you confirm this on your system? I tried it on both Ubuntu 12.04 and Quantal (the current development release).,

This looks alright, but it fails to recognize the UDF volume and thus just reads the iso9660 label. I guess "volname" does not know about UDF labels, but blkid prefers UDF over iso9660.

Dan Kegel (dank) wrote :

Yup:

$ dd if=/dev/sr0 of=bug1022519.iso bs=514k count=1
$ blkid -p bug1022519.iso
bug1022519.iso: LABEL="FSX DISK 1" TYPE="iso9660" USAGE="filesystem"
$ dd if=/dev/sr0 of=bug1022519.iso bs=515k count=1
$ blkid -p bug1022519.iso
bug1022519.iso: LABEL="UDF Volume" TYPE="udf" USAGE="filesystem"

hexdump -C shows:
00080810 00 00 00 00 00 00 00 00 10 00 55 00 44 00 46 00 |..........U.D.F.|
00080820 20 00 56 00 6f 00 6c 00 75 00 6d 00 65 00 00 00 | .V.o.l.u.m.e...|

Windows gives 'FSX DISK 1' as the label.

I guess Windows prefers the iso9660 volume label for discs
of type CD001, and Wine won't be able to install that game unless blkid
does, too.

I've uploaded the first 515k to http://kegel.com/bug1022519.iso

Martin Pitt (pitti) on 2012-07-12
summary: - UDF volume name wrong
+ blkid prefers UDF label over iso9660
Changed in util-linux (Ubuntu):
status: New → Triaged
importance: Undecided → Low
importance: Low → Medium
tags: added: precise
tags: added: quantal
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers