Marc Lehmann
2019-08-25 17:20:01 UTC
Package: util-linux
Version: 2.33.1-0.1
Severity: normal
Dear Maintainer,
I have a script that gathers information using lsblk., It specifically needs
the partition table type, uuid and partition uuid. It uses something like this:
lsblk -o PATH,KNAME,MAJ:MIN,TYPE,PTTYPE,PTUUID,PARTUUID,LABEL,FSTYPE
This works mostly fine, except on some disks, it gives a bogus PTTYPE of
"dos" when it should be "gpt" for example:
PATH KNAME MAJ:MIN TYPE PTTYPE PTUUID PARTUUID LABEL FSTYPE
/dev/loop4 loop4 7:4 loop USBROOT btrfs
/dev/sda sda 8:0 disk gpt 81c62d1c-b086-4f48-b1e9-b8ae2d457f91
/dev/sda1 sda1 8:1 part gpt 81c62d1c-b086-4f48-b1e9-b8ae2d457f91 cf573ead-cdeb-42d5-9d75-aee9ceec3370
/dev/sda2 sda2 8:2 part gpt 81c62d1c-b086-4f48-b1e9-b8ae2d457f91 89a285e0-09ca-44eb-b7ca-e1261a5e2f07 USBEFI vfat
/dev/sda3 sda3 8:3 part dos 81c62d1c-b086-4f48-b1e9-b8ae2d457f91 d7f7dfdf-a2a6-4097-9975-c09fa73b19b3 DATA ntfs
/dev/sr0 sr0 11:0 rom
Here, /dev/sda3 has a bogus pttype of "dos", but correct PTUUID and
PARTUUID values (mbr entries don't have uuids).
-- System Information:
Debian Release: 10.0
APT prefers stable
APT policy: (990, 'stable'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-updates'), (500, 'stable-debug'), (500, 'oldstable-updates'), (500, 'oldstable-debug'), (500, 'unstable'), (500, 'testing'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, x32
Kernel: Linux 5.1.21-050121-generic (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8), LANGUAGE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages util-linux depends on:
ii fdisk 2.33.1-0.1
ii libaudit1 1:2.8.4-3
ii libblkid1 2.33.1-0.1
ii libc6 2.28-10
ii libcap-ng0 0.7.9-2
ii libmount1 2.33.1-0.1
ii libpam0g 1.3.1-5
ii libselinux1 2.8-1+b1
ii libsmartcols1 2.33.1-0.1
ii libsystemd0 241-5
ii libtinfo6 6.1+20181013-2
ii libudev1 241-5
ii libuuid1 2.33.1-0.1
ii login 1:4.5-1.1
ii zlib1g 1:1.2.11.dfsg-1
util-linux recommends no packages.
Versions of packages util-linux suggests:
ii dosfstools 4.1-2
ii kbd 2.0.4-4
pn util-linux-locales <none>
-- debconf information excluded
Version: 2.33.1-0.1
Severity: normal
Dear Maintainer,
I have a script that gathers information using lsblk., It specifically needs
the partition table type, uuid and partition uuid. It uses something like this:
lsblk -o PATH,KNAME,MAJ:MIN,TYPE,PTTYPE,PTUUID,PARTUUID,LABEL,FSTYPE
This works mostly fine, except on some disks, it gives a bogus PTTYPE of
"dos" when it should be "gpt" for example:
PATH KNAME MAJ:MIN TYPE PTTYPE PTUUID PARTUUID LABEL FSTYPE
/dev/loop4 loop4 7:4 loop USBROOT btrfs
/dev/sda sda 8:0 disk gpt 81c62d1c-b086-4f48-b1e9-b8ae2d457f91
/dev/sda1 sda1 8:1 part gpt 81c62d1c-b086-4f48-b1e9-b8ae2d457f91 cf573ead-cdeb-42d5-9d75-aee9ceec3370
/dev/sda2 sda2 8:2 part gpt 81c62d1c-b086-4f48-b1e9-b8ae2d457f91 89a285e0-09ca-44eb-b7ca-e1261a5e2f07 USBEFI vfat
/dev/sda3 sda3 8:3 part dos 81c62d1c-b086-4f48-b1e9-b8ae2d457f91 d7f7dfdf-a2a6-4097-9975-c09fa73b19b3 DATA ntfs
/dev/sr0 sr0 11:0 rom
Here, /dev/sda3 has a bogus pttype of "dos", but correct PTUUID and
PARTUUID values (mbr entries don't have uuids).
-- System Information:
Debian Release: 10.0
APT prefers stable
APT policy: (990, 'stable'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-updates'), (500, 'stable-debug'), (500, 'oldstable-updates'), (500, 'oldstable-debug'), (500, 'unstable'), (500, 'testing'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, x32
Kernel: Linux 5.1.21-050121-generic (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8), LANGUAGE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages util-linux depends on:
ii fdisk 2.33.1-0.1
ii libaudit1 1:2.8.4-3
ii libblkid1 2.33.1-0.1
ii libc6 2.28-10
ii libcap-ng0 0.7.9-2
ii libmount1 2.33.1-0.1
ii libpam0g 1.3.1-5
ii libselinux1 2.8-1+b1
ii libsmartcols1 2.33.1-0.1
ii libsystemd0 241-5
ii libtinfo6 6.1+20181013-2
ii libudev1 241-5
ii libuuid1 2.33.1-0.1
ii login 1:4.5-1.1
ii zlib1g 1:1.2.11.dfsg-1
util-linux recommends no packages.
Versions of packages util-linux suggests:
ii dosfstools 4.1-2
ii kbd 2.0.4-4
pn util-linux-locales <none>
-- debconf information excluded