Package: util-linux Version: 2.36.1-7 Severity: normal X-Debbugs-Cc: t...@mirbsd.de, team+linux-blo...@tracker.debian.org
I’m trying to use partx instead of kpartx to make partitions available to the system, but it completely fails: tglase@tglase:~ $ sudo partx -a -v - /dev/vg-tglase/ufs partition: none, disk: /dev/vg-tglase/ufs, lower: 0, upper: 0 /dev/vg-tglase/ufs: partition table type 'dos' detected range recount: max partno=4, lower=0, upper=0 partx: /dev/vg-tglase/ufs: adding partition #4 failed: Invalid argument partx: /dev/vg-tglase/ufs: error adding partition 4 Doing this with kpartx works… tglase@tglase:~ $ sudo kpartx -a -v /dev/mapper/vg--tglase-ufs add map vg--tglase-ufs4 (253:9): 0 67108832 linear 253:8 32 … but kpartx fails in the second step, making the slices from the BSD disklabel available… tglase@tglase:~ $ sudo kpartx -a -v /dev/mapper/vg--tglase-ufs4 device-mapper: reload ioctl on vg--tglase-ufs4p1 (253:10) failed: Invalid argument create/reload failed on vg--tglase-ufs4p1 device-mapper: reload ioctl on vg--tglase-ufs4p2 (253:10) failed: Invalid argument create/reload failed on vg--tglase-ufs4p2 device-mapper: reload ioctl on vg--tglase-ufs4p3 (253:10) failed: Invalid argument create/reload failed on vg--tglase-ufs4p3 device-mapper: reload ioctl on vg--tglase-ufs4p4 (253:10) failed: Invalid argument create/reload failed on vg--tglase-ufs4p4 … whereas partx at least recognises the disklabel: tglase@tglase:~ $ sudo partx --show - /dev/mapper/vg--tglase-ufs4 NR START END SECTORS SIZE NAME UUID 1 2097152 67108863 65011712 31G 2 32 2097151 2097120 1024M 3 0 31 32 16K So I’m stuck. -- System Information: Debian Release: 11.0 APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'buildd-unstable'), (500, 'unstable'), (100, 'experimental') Architecture: x32 (x86_64) Foreign Architectures: i386, amd64 Kernel: Linux 5.10.0-6-amd64 (SMP w/4 CPU threads) Kernel taint flags: TAINT_FIRMWARE_WORKAROUND Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/lksh Init: sysvinit (via /sbin/init) Versions of packages util-linux depends on: ii libaudit1 1:3.0-2 ii libblkid1 2.36.1-7 ii libc6 2.31-12 ii libcap-ng0 0.7.9-2.2+b1 ii libcrypt1 1:4.4.18-4 ii libelogind0 [libsystemd0] 246.9.1-1+debian1 ii libmount1 2.36.1-7 ii libpam0g 1.4.0-7 ii libselinux1 3.1-3 ii libsmartcols1 2.36.1-7 ii libtinfo6 6.2+20201114-2 ii libudev1 247.3-5 ii libuuid1 2.36.1-7 ii login 1:4.8.1-1 ii zlib1g 1:1.2.11.dfsg-2 util-linux recommends no packages. Versions of packages util-linux suggests: ii dosfstools 4.2-1 ii kbd 2.3.0-3 pn util-linux-locales <none> -- debconf information: util-linux/noauto-with-nonzero-passnum: