blkid man page needs to document BLKID_DEBUG values to help diagnose device type conflicts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
util-linux (Ubuntu) |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: util-linux
My swap partition is no longer being mounted in karmic as blkid does not recognize it and exits with error code 2. It used to be LUKS partition, but I long ago mkswapped over it.
This can be recreated using the following procedure:
Works
1) dd if=/dev/zero of=/tmp/works bs=1M count=1
2) mkswap /tmp/works
3) file /tmp/works (appears as swap)
4) blkid /tmp/works (TYPE="swap")
Not work
1) dd if=/dev/zero of=/tmp/busted bs=1M count=1
2) dd if=<(printf "LUKS\xba\xbe") of=/tmp/busted conv=nocreat,
3) mkswap /tmp/busted
4) file /tmp/busted (appears as swap)
5) blkid /tmp/busted (nothing)
6) echo $? (return code 2)
Additionally using blkid from Jaunty, package version 2.14.2-1ubuntu4, shows the TYPE as swap.
ProblemType: Bug
Architecture: amd64
Date: Thu Oct 15 13:09:16 2009
DistroRelease: Ubuntu 9.10
Package: util-linux 2.16-1ubuntu4
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/zsh
ProcVersionSign
SourcePackage: util-linux
Uname: Linux 2.6.31-14-generic x86_64
description: | updated |
description: | updated |
tags: | added: regression-potential |
summary: |
- blkid fails to recognize swap partition / file + mkswap fails to fully wipe swap partition / file (resulting in blkid not + seeing it) |
summary: |
- blkid needs --verbose to report device type conflicts + blkid man page needs to document BLKID_DEBUG values to help diagnose + device type conflicts |
As you've proved here, you've deliberately put two types of metadata into your partition.
We've never supported that. Remember that in jaunty we used vol_id, which should equally not recognise your swap partition.