Package: util-linux
Version: 2.31.1-0.4
Severity: normal

Dear Maintainer,

the command
> partx --show /dev/sda
prints
> partx: /dev/sda: failed to read partition table

However,
> fdisk -l /dev/sda
results in
> Disk /dev/sda: 119,2 GiB, 128035676160 bytes, 250069680 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: dos
> Disk identifier: 0x0006f804
> 
> Device     Boot     Start       End   Sectors  Size Id Type
> /dev/sda1            2048  62736383  62734336 29,9G 83 Linux
> /dev/sda3        62736384 204175359 141438976 67,5G 83 Linux
> /dev/sda4       204175360 250068991  45893632 21,9G 82 Linux swap / Solaris

The partition table seems to be completely valid according to fdisk. There
are no problems by using the disk's partitions. The partitions have probably
been created with cfdisk and changed with gparted, where the second partition
has been deleted.

The relevant part of a hexdump of this disk:
> 00001b0 10cd 3cac 7500 c3f4 f804 0006 0000 2000
> 00001c0 0021 fe83 ffff 0800 0000 4000 03bd 0000
> 00001d0 0000 0000 0000 0000 0000 0000 0000 fe00
> 00001e0 ffff fe83 ffff 4800 03bd 3000 086e fe00
> 00001f0 ffff fe82 ffff 7800 0c2b 4800 02bc aa55

Due to usage of little endianness, this looks correct according to
> https://de.wikipedia.org/wiki/Master_Boot_Record#Aufbau_der_Partitionstabelle
(sorry, in German, but great figure) or
> https://en.wikipedia.org/wiki/Master_boot_record#Partition_table_entries

Even if it were wrong, fdisk and partx should have identical results.


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'stable'), (500, 'testing-debug'), (400, 
'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.15.0-rc8-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de:en_US (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages util-linux depends on:
ii  fdisk          2.30.2-0.3
ii  libblkid1      2.31.1-0.1
ii  libc6          2.26-6
ii  libmount1      2.30.2-0.3
ii  libpam0g       1.1.8-3.7
ii  libselinux1    2.7-2+b1
ii  libsmartcols1  2.30.2-0.3
ii  libsystemd0    236-3
ii  libtinfo5      6.0+20171125-1
ii  libudev1       236-3
ii  libuuid1       2.30.2-0.3
ii  zlib1g         1:1.2.8.dfsg-5

util-linux recommends no packages.

Versions of packages util-linux suggests:
ii  dosfstools          4.1-1
ii  kbd                 2.0.4-2
pn  util-linux-locales  <none>

-- debconf information:
  util-linux/noauto-with-nonzero-passnum:

Reply via email to