Subject: libparted failed to write logical partition metadata

From: Gilles BENE POUGOUE <[email-masked]>
Date: Sun, 17 Apr 2022 21:31:53 +0100

sudo partprobe -s
Backtrace has 20 calls on stack:
 20: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x49) [0x7f2707d686a9]
 19: /lib/x86_64-linux-gnu/libparted.so.2(+0x25159) [0x7f2707d80159]
 18: /lib/x86_64-linux-gnu/libparted.so.2(+0x122fa) [0x7f2707d6d2fa]
 17: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_add_partition+0x1bc)
[0x7f2707d6db5c]
 16: /lib/x86_64-linux-gnu/libparted.so.2(+0x24a13) [0x7f2707d7fa13]
 15: /lib/x86_64-linux-gnu/libparted.so.2(+0x24aaf) [0x7f2707d7faaf]
 14: /lib/x86_64-linux-gnu/libparted.so.2(+0x24aaf) [0x7f2707d7faaf]
 13: /lib/x86_64-linux-gnu/libparted.so.2(+0x24aaf) [0x7f2707d7faaf]
 12: /lib/x86_64-linux-gnu/libparted.so.2(+0x24aaf) [0x7f2707d7faaf]
 11: /lib/x86_64-linux-gnu/libparted.so.2(+0x24aaf) [0x7f2707d7faaf]
 10: /lib/x86_64-linux-gnu/libparted.so.2(+0x24aaf) [0x7f2707d7faaf]
 9: /lib/x86_64-linux-gnu/libparted.so.2(+0x24aaf) [0x7f2707d7faaf]
 8: /lib/x86_64-linux-gnu/libparted.so.2(+0x24aaf) [0x7f2707d7faaf]
 7: /lib/x86_64-linux-gnu/libparted.so.2(+0x24a4b) [0x7f2707d7fa4b]
 6: /lib/x86_64-linux-gnu/libparted.so.2(+0x25a37) [0x7f2707d80a37]
 5: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_new+0x4c)
[0x7f2707d6d81c]
 4: partprobe(+0x16f1) [0x55ee7fa0a6f1]
 3: partprobe(main+0x214) [0x55ee7fa0a574]
 2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)
[0x7f2707b900b3]
 1: partprobe(_start+0x2e) [0x55ee7fa0a60e]

Assertion (metadata_length > 0) at ../../../libparted/labels/dos.c:2352 in
function add_logical_part_metadata() failed.
Aborted

Machine: Linux ubuntu 5.4.0-91-generic #102-Ubuntu SMP Fri Nov 5 16:31:28
UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

-- 
Gilles BENE POUGOUE