file utility truncates UUID for LUKS-encrypted volumes

Bug #877884 reported by David Tomaschik on 2011-10-19
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
file (Ubuntu)
Undecided
Unassigned

Bug Description

When I use the "file" utility against a LUKS-encrypted volume, it claims to report the UUID of the volume, but the UUID is truncated 5 characters short.

I run:
sudo file -s /dev/sda2
/dev/sda2: LUKS encrypted file, ver 1 [aes, cbc-essiv:sha256, sha1] UUID: 462f8ffc-1a87-4eeb-970c-120f09c

But blkid (correctly) reports:
sudo blkid /dev/sda2
/dev/sda2: UUID="462f8ffc-1a87-4eeb-970c-120f09ca3671" TYPE="crypto_LUKS"

As you can see, the "a3671" is truncated from the output of file.

(Oneiric system, patched as of today, with file 5.04-5ubuntu3)

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: file 5.04-5ubuntu3
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Tue Oct 18 23:31:14 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110426)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: file
UpgradeStatus: Upgraded to oneiric on 2011-09-12 (36 days ago)

David Tomaschik (matir) wrote :
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in file (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers