GNU bug report logs - #80093
libparted: gpt: Partition type is not updated after changing file system

Previous Next

Package: parted;

Reported by: Pascal Hambourg <pascal <at> plouf.fr.eu.org>

Date: Mon, 29 Dec 2025 13:04:02 UTC

Severity: minor

Found in version 3.6

To reply to this bug, email your comments to 80093 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-parted <at> gnu.org:
bug#80093; Package parted. (Mon, 29 Dec 2025 13:04:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pascal Hambourg <pascal <at> plouf.fr.eu.org>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Mon, 29 Dec 2025 13:04:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Pascal Hambourg <pascal <at> plouf.fr.eu.org>
To: bug-parted <at> gnu.org
Subject: libparted: gpt: Partition type is not updated after changing file
 system
Date: Mon, 29 Dec 2025 14:03:19 +0100
Package: parted
Version: 3.6
Severity: minor

Dear maintainer,

In a GPT partition table, when the file system type of a partition is 
set to a Microsoft filesystem (ex: FAT) with ped_partition_set_system(), 
gpt_partition_set_system() sets the partition type to 
PARTITION_BASIC_DATA_GUID (Microsoft basic data partition type GUID), 
resulting in the "msftdata" flag being set. As expected.

However when a partition has the PARTITION_BASIC_DATA_GUID type, if the 
filesystem type is changed to a non-Microsoft filesystem (ex: ext4), 
gpt_partition_set_system() does not reset the partition type to the 
associated partition type GUID (ex: PARTITION_LINUX_DATA_GUID), 
resulting in the "msftdata" flag still being set.

It is the same with the PARTITION_SWAP_GUID partition type.

This is caused by PARTITION_BASIC_DATA_GUID and PARTITION_SWAP_GUID 
being included in skip_set_system_guids[]. Is there a reason for this or 
is it a bug ? Shouldn't all filesystem-specific partition types be 
excluded from this list ?





Information forwarded to bug-parted <at> gnu.org:
bug#80093; Package parted. (Tue, 30 Dec 2025 09:51:02 GMT) Full text and rfc822 format available.

Message #8 received at 80093 <at> debbugs.gnu.org (full text, mbox):

From: Pascal Hambourg <pascal <at> plouf.fr.eu.org>
To: 80093 <at> debbugs.gnu.org
Subject: Re: libparted: gpt: Partition type is not updated after changing file
 system
Date: Tue, 30 Dec 2025 10:50:45 +0100
Looking at other disk labels, I see that the same issue exists with the 
PARTITION_LINUX_SWAP type in MSDOS.




This bug report was last modified today.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.