From unknown Mon Jun 23 02:26:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22482: parted 2.3 assigns wrong GUIDs to GPT partitions Resent-From: "Ulrich Windl" Original-Sender: "Debbugs-submit" Resent-CC: bug-parted@gnu.org Resent-Date: Thu, 28 Jan 2016 12:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22482 X-GNU-PR-Package: parted X-GNU-PR-Keywords: To: 22482@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.145398566315977 (code B ref -1); Thu, 28 Jan 2016 12:55:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jan 2016 12:54:23 +0000 Received: from localhost ([127.0.0.1]:39183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aOm5e-00049d-Vl for submit@debbugs.gnu.org; Thu, 28 Jan 2016 07:54:23 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54657) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aOm5d-00049Q-0S for submit@debbugs.gnu.org; Thu, 28 Jan 2016 07:54:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOm5W-0002vc-NZ for submit@debbugs.gnu.org; Thu, 28 Jan 2016 07:54:15 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOm5W-0002vP-L2 for submit@debbugs.gnu.org; Thu, 28 Jan 2016 07:54:14 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOm5V-0003JO-8L for bug-parted@gnu.org; Thu, 28 Jan 2016 07:54:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOm5Q-0002pS-RX for bug-parted@gnu.org; Thu, 28 Jan 2016 07:54:13 -0500 Received: from rrzmta1.uni-regensburg.de ([194.94.155.51]:36672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOm5Q-0002mS-Ff for bug-parted@gnu.org; Thu, 28 Jan 2016 07:54:08 -0500 Received: from rrzmta1.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 8D4E3575E4 for ; Thu, 28 Jan 2016 13:54:05 +0100 (CET) Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by rrzmta1.uni-regensburg.de (Postfix) with ESMTP id 69CD14F0FB for ; Thu, 28 Jan 2016 13:54:05 +0100 (CET) Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de with Novell_GroupWise; Thu, 28 Jan 2016 13:54:04 +0100 Message-Id: <56AA1D7C020000A10001FD12@gwsmtp1.uni-regensburg.de> X-Mailer: Novell GroupWise Internet Agent 14.2.0 Date: Thu, 28 Jan 2016 13:54:04 +0100 From: "Ulrich Windl" References: <5464ADA7020000A100017D5D@gwsmtp1.uni-regensburg.de> <56AA1D7C020000A10001FD12@gwsmtp1.uni-regensburg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) (I discovered this old message being unsent for over a year; maybe it's = still relevant; I didn't re-check) Hi! When creating GPT partitions, wrong GUIDs are assigned to the partition = type: --- > /usr/sbin/parted /tmp/gpt.img WARNING: You are not superuser. Watch out for permissions. GNU Parted 2.3 Using /tmp/gpt.img Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) mklabel gpt Warning: The existing disk label on /tmp/gpt.img will be destroyed and all = data on this disk will be lost. Do you want to continue? Yes/No? yes (parted) print Model: (file) Disk /tmp/gpt.img: 1049kB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags (parted) mkpart ntfs ntfs 0% 25% Warning: You requested a partition from 0.00B to 262kB. The closest location we can manage is 17.4kB to 262kB. Is this still acceptable to you? Yes/No? y Warning: The resulting partition is not properly aligned for best = performance. Ignore/Cancel? i (parted) mkpart ext2 ext2 25% 50% Warning: The resulting partition is not properly aligned for best = performance. Ignore/Cancel? i (parted) mkpart btrfs btrfs 50% 75% Warning: The resulting partition is not properly aligned for best = performance. Ignore/Cancel? i (parted) mkpart swap linux-swap 75% 100% Warning: You requested a partition from 786kB to 1048kB. The closest location we can manage is 786kB to 1031kB. Is this still acceptable to you? Yes/No? y Warning: The resulting partition is not properly aligned for best = performance. Ignore/Cancel? i (parted) p Model: (file) Disk /tmp/gpt.img: 1049kB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 17.4kB 262kB 245kB ntfs 2 262kB 524kB 262kB ext2 3 524kB 786kB 262kB btrfs 4 786kB 1032kB 245kB swap (parted) version GNU Parted 2.3 Copyright (C) 1998 - 2006 Free Software Foundation, Inc. This program is free software, covered by the GNU General Public License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. (parted) --- I use my own program to decode the GPT (irrelevant output removed): --- Disk /tmp/gpt.img Protective MBR: MBR Signature =3D55 aa Unique Signature =3D 0 Partition 1: Boot Indicator: non-bootable Starting Head =3D 0 Starting Sector =3D 1 Starting Cylinder =3D 0 System ID =3D 0xee Ending Head =3D 254 Ending Sector =3D 63 Ending Cylinder =3D 1023 Relative Sectors =3D 1 Total Sectors =3D 2047 GPT Header at LBA 1: EFI Signature =3DOK Revision =3D1.0 (0x00010000) Header Size =3D92 CRC Checksum =3D0x1e722984 Primary LBA =3D 1 Backup LBA =3D 2047 First Usable LBA =3D 34 Last Usable LBA =3D 2014 Disk GUID =3Dccc1a21b-2d8d-4be9-9f11-c80916d67687 Partition Entry LBA =3D 2 Number of Partition Entries =3D128 Size of Partition Entry =3D128 Partition Entry Array CRC32 =3D0xbfb2cf38 Partition Entry =3D 1 Partition Type GUID =3Debd0a0a2-b9e5-4433-87c0-68b6b72699c7= Partition Entry GUID =3D87ecc1e7-89ba-4f0c-b66e-1664489362f8= Starting LBA =3D 34 Ending LBA =3D 511 Partition Entry =3D 2 Partition Type GUID =3Debd0a0a2-b9e5-4433-87c0-68b6b72699c7= Partition Entry GUID =3D34ccc19e-7d32-474b-9d80-cb8390d14e77= Starting LBA =3D 512 Ending LBA =3D 1023 Partition Entry =3D 3 Partition Type GUID =3Debd0a0a2-b9e5-4433-87c0-68b6b72699c7= Partition Entry GUID =3Dcd96003d-d358-43e7-9555-845cf20c17a8= Starting LBA =3D 1024 Ending LBA =3D 1535 Partition Entry =3D 4 Partition Type GUID =3D0657fd6d-a4ab-43c4-84e5-0933c84b4f4f= Partition Entry GUID =3Dfbc96b01-a479-4222-95b3-6dc67834009b= Starting LBA =3D 1536 Ending LBA =3D 2014 Partition Entry =3D 5 Partition Type GUID =3DUnused [...] --- So you see that everything except linux-swap uses the same GUID (Windows = data). According to Wikipedia Linux should use a different GUID for its = filesystems. Regards, Ulrich From unknown Mon Jun 23 02:26:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22482: parted 2.3 assigns wrong GUIDs to GPT partitions Resent-From: "Brian C. Lane" Original-Sender: "Debbugs-submit" Resent-CC: bug-parted@gnu.org Resent-Date: Thu, 28 Jan 2016 16:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22482 X-GNU-PR-Package: parted X-GNU-PR-Keywords: To: 22482@debbugs.gnu.org X-Debbugs-Original-To: bug-parted@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.145399989111637 (code B ref -1); Thu, 28 Jan 2016 16:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jan 2016 16:51:31 +0000 Received: from localhost ([127.0.0.1]:39970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aOpn8-00031c-Nh for submit@debbugs.gnu.org; Thu, 28 Jan 2016 11:51:30 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49019) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aOpn7-00031Q-EP for submit@debbugs.gnu.org; Thu, 28 Jan 2016 11:51:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOpn1-0007tg-JW for submit@debbugs.gnu.org; Thu, 28 Jan 2016 11:51:24 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOpn1-0007tW-GE for submit@debbugs.gnu.org; Thu, 28 Jan 2016 11:51:23 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOpn0-0001ln-Nv for bug-parted@gnu.org; Thu, 28 Jan 2016 11:51:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOpmu-0007qB-IQ for bug-parted@gnu.org; Thu, 28 Jan 2016 11:51:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOpmu-0007pq-Cj for bug-parted@gnu.org; Thu, 28 Jan 2016 11:51:16 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 61B373D3F4E for ; Thu, 28 Jan 2016 16:51:15 +0000 (UTC) Received: from lister.brianlane.com (ovpn-113-181.phx2.redhat.com [10.3.113.181]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u0SGpDY5002928 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 28 Jan 2016 11:51:15 -0500 Date: Thu, 28 Jan 2016 08:51:13 -0800 From: "Brian C. Lane" Message-ID: <20160128165113.GW18191@lister.brianlane.com> References: <5464ADA7020000A100017D5D@gwsmtp1.uni-regensburg.de> <56AA1D7C020000A10001FD12@gwsmtp1.uni-regensburg.de> <56AA1D7C020000A10001FD12@gwsmtp1.uni-regensburg.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56AA1D7C020000A10001FD12@gwsmtp1.uni-regensburg.de> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) On Thu, Jan 28, 2016 at 01:54:04PM +0100, Ulrich Windl wrote: > (I discovered this old message being unsent for over a year; maybe it's still relevant; I didn't re-check) > Hi! > > When creating GPT partitions, wrong GUIDs are assigned to the partition type: > --- > > /usr/sbin/parted /tmp/gpt.img > WARNING: You are not superuser. Watch out for permissions. > GNU Parted 2.3 2.3 is pretty old, the GUID was changed in v3.2 to use the linux data GUID. -- Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT) From unknown Mon Jun 23 02:26:16 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "Ulrich Windl" Subject: bug#22482: closed (Re: bug#22482: parted 2.3 assigns wrong GUIDs to GPT partitions) Message-ID: References: <56B89CB0.4070401@ubuntu.com> <56AA1D7C020000A10001FD12@gwsmtp1.uni-regensburg.de> X-Gnu-PR-Message: they-closed 22482 X-Gnu-PR-Package: parted Reply-To: 22482@debbugs.gnu.org Date: Mon, 08 Feb 2016 13:49:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1454939342-6147-1" This is a multi-part message in MIME format... ------------=_1454939342-6147-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #22482: parted 2.3 assigns wrong GUIDs to GPT partitions which was filed against the parted package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 22482@debbugs.gnu.org. --=20 22482: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D22482 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1454939342-6147-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 22482-done) by debbugs.gnu.org; 8 Feb 2016 13:48:20 +0000 Received: from localhost ([127.0.0.1]:38139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSmAu-0001aC-B2 for submit@debbugs.gnu.org; Mon, 08 Feb 2016 08:48:20 -0500 Received: from mail-yw0-f172.google.com ([209.85.161.172]:34788) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSmAs-0001Zz-NN for 22482-done@debbugs.gnu.org; Mon, 08 Feb 2016 08:48:19 -0500 Received: by mail-yw0-f172.google.com with SMTP id h129so101961281ywb.1 for <22482-done@debbugs.gnu.org>; Mon, 08 Feb 2016 05:48:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=nmOZnNQUgbTDprGQTOyAnrVZDdPHzVWcxsBcW3c59fQ=; b=Db2zIMMFASTWeeiE7pTfpRCMr5G1QM5kC5YFSUsxSHQDYm8GO35TE0k/ZRnCjH3I48 MUT8SvjZURCLebVRrLrarWfcdLppKWrf18AO+pubO23P/A2M+OJi7nxZlnKwBOEvDEBl EkLj6pii2TXsRxOZsCUN1UoqLJOBo7xNLFtfE1flZbAaRNXkOUGj2nQodpeHMFpjAaAG BfISOPEfZa+cXE1TFRevYAeUAvIqv2xYr7PUf4LhhW9ZJZnqt+kvqSKK50oBuYGu1uAe QCTQ2Ei1xBmwEq82SFkjiGN0HStOpW74uy1O4TS7CsugN7Bp+txhjS8okOdBUqTvidjB g+JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=nmOZnNQUgbTDprGQTOyAnrVZDdPHzVWcxsBcW3c59fQ=; b=eTAYM5tuVoTnRFYspBn4TZXdHE2gZeEJgSktvkeOmM9+FWKo9R8SeztpT54gryBiXg GAS2bGApmnn5sPjgDJ0gFuL1J5x+gIHpKwUxE5R1hZqJaJjOhCLvni14JGY1HgUsPvFR 8WzrwtcaL0OhaBcxmrqZ4qQpOnc6+U39F9nfMCLE/XvL8iPuPddMyV0yur6Ul34QGHvP 5VaFN1OOfkotKr8E/5IGKN4XuERYTPPjDnHjnYmlGOe/k7J6sp2logQv/iiK1mpj4Te0 jkDStuFqz7lZPAEItPq+d8zaKIOs154i7ux/nq+pa3ibfQrSiyTVOLxBRHt/uBtPpS6n IwNg== X-Gm-Message-State: AG10YOSJec68vvchnLfS/nW1piQYjnvf76QYvGYyY94fLMHSXgkXlAKfITYh4I4jGhggFg== X-Received: by 10.13.228.131 with SMTP id n125mr15565852ywe.65.1454939293423; Mon, 08 Feb 2016 05:48:13 -0800 (PST) Received: from [10.1.1.179] (fl-67-77-88-12.sta.embarqhsd.net. [67.77.88.12]) by smtp.googlemail.com with ESMTPSA id h129sm20892162ywf.56.2016.02.08.05.48.12 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 08 Feb 2016 05:48:13 -0800 (PST) Subject: Re: bug#22482: parted 2.3 assigns wrong GUIDs to GPT partitions To: Ulrich.Windl@rz.uni-regensburg.de, 22482-done@debbugs.gnu.org References: <5464ADA7020000A100017D5D@gwsmtp1.uni-regensburg.de> <56AA1D7C020000A10001FD12@gwsmtp1.uni-regensburg.de> <56AA1D7C020000A10001FD12@gwsmtp1.uni-regensburg.de> <20160128165113.GW18191@lister.brianlane.com> From: Phil Susi Message-ID: <56B89CB0.4070401@ubuntu.com> Date: Mon, 8 Feb 2016 08:48:32 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20160128165113.GW18191@lister.brianlane.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22482-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On 1/28/2016 11:51 AM, Brian C. Lane wrote: > 2.3 is pretty old, the GUID was changed in v3.2 to use the linux data > GUID. ------------=_1454939342-6147-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Jan 2016 12:54:23 +0000 Received: from localhost ([127.0.0.1]:39183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aOm5e-00049d-Vl for submit@debbugs.gnu.org; Thu, 28 Jan 2016 07:54:23 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54657) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aOm5d-00049Q-0S for submit@debbugs.gnu.org; Thu, 28 Jan 2016 07:54:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOm5W-0002vc-NZ for submit@debbugs.gnu.org; Thu, 28 Jan 2016 07:54:15 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOm5W-0002vP-L2 for submit@debbugs.gnu.org; Thu, 28 Jan 2016 07:54:14 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOm5V-0003JO-8L for bug-parted@gnu.org; Thu, 28 Jan 2016 07:54:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOm5Q-0002pS-RX for bug-parted@gnu.org; Thu, 28 Jan 2016 07:54:13 -0500 Received: from rrzmta1.uni-regensburg.de ([194.94.155.51]:36672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOm5Q-0002mS-Ff for bug-parted@gnu.org; Thu, 28 Jan 2016 07:54:08 -0500 Received: from rrzmta1.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 8D4E3575E4 for ; Thu, 28 Jan 2016 13:54:05 +0100 (CET) Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by rrzmta1.uni-regensburg.de (Postfix) with ESMTP id 69CD14F0FB for ; Thu, 28 Jan 2016 13:54:05 +0100 (CET) Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de with Novell_GroupWise; Thu, 28 Jan 2016 13:54:04 +0100 Message-Id: <56AA1D7C020000A10001FD12@gwsmtp1.uni-regensburg.de> X-Mailer: Novell GroupWise Internet Agent 14.2.0 Date: Thu, 28 Jan 2016 13:54:04 +0100 From: "Ulrich Windl" To: Subject: parted 2.3 assigns wrong GUIDs to GPT partitions References: <5464ADA7020000A100017D5D@gwsmtp1.uni-regensburg.de> <56AA1D7C020000A10001FD12@gwsmtp1.uni-regensburg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) (I discovered this old message being unsent for over a year; maybe it's = still relevant; I didn't re-check) Hi! When creating GPT partitions, wrong GUIDs are assigned to the partition = type: --- > /usr/sbin/parted /tmp/gpt.img WARNING: You are not superuser. Watch out for permissions. GNU Parted 2.3 Using /tmp/gpt.img Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) mklabel gpt Warning: The existing disk label on /tmp/gpt.img will be destroyed and all = data on this disk will be lost. Do you want to continue? Yes/No? yes (parted) print Model: (file) Disk /tmp/gpt.img: 1049kB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags (parted) mkpart ntfs ntfs 0% 25% Warning: You requested a partition from 0.00B to 262kB. The closest location we can manage is 17.4kB to 262kB. Is this still acceptable to you? Yes/No? y Warning: The resulting partition is not properly aligned for best = performance. Ignore/Cancel? i (parted) mkpart ext2 ext2 25% 50% Warning: The resulting partition is not properly aligned for best = performance. Ignore/Cancel? i (parted) mkpart btrfs btrfs 50% 75% Warning: The resulting partition is not properly aligned for best = performance. Ignore/Cancel? i (parted) mkpart swap linux-swap 75% 100% Warning: You requested a partition from 786kB to 1048kB. The closest location we can manage is 786kB to 1031kB. Is this still acceptable to you? Yes/No? y Warning: The resulting partition is not properly aligned for best = performance. Ignore/Cancel? i (parted) p Model: (file) Disk /tmp/gpt.img: 1049kB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 17.4kB 262kB 245kB ntfs 2 262kB 524kB 262kB ext2 3 524kB 786kB 262kB btrfs 4 786kB 1032kB 245kB swap (parted) version GNU Parted 2.3 Copyright (C) 1998 - 2006 Free Software Foundation, Inc. This program is free software, covered by the GNU General Public License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. (parted) --- I use my own program to decode the GPT (irrelevant output removed): --- Disk /tmp/gpt.img Protective MBR: MBR Signature =3D55 aa Unique Signature =3D 0 Partition 1: Boot Indicator: non-bootable Starting Head =3D 0 Starting Sector =3D 1 Starting Cylinder =3D 0 System ID =3D 0xee Ending Head =3D 254 Ending Sector =3D 63 Ending Cylinder =3D 1023 Relative Sectors =3D 1 Total Sectors =3D 2047 GPT Header at LBA 1: EFI Signature =3DOK Revision =3D1.0 (0x00010000) Header Size =3D92 CRC Checksum =3D0x1e722984 Primary LBA =3D 1 Backup LBA =3D 2047 First Usable LBA =3D 34 Last Usable LBA =3D 2014 Disk GUID =3Dccc1a21b-2d8d-4be9-9f11-c80916d67687 Partition Entry LBA =3D 2 Number of Partition Entries =3D128 Size of Partition Entry =3D128 Partition Entry Array CRC32 =3D0xbfb2cf38 Partition Entry =3D 1 Partition Type GUID =3Debd0a0a2-b9e5-4433-87c0-68b6b72699c7= Partition Entry GUID =3D87ecc1e7-89ba-4f0c-b66e-1664489362f8= Starting LBA =3D 34 Ending LBA =3D 511 Partition Entry =3D 2 Partition Type GUID =3Debd0a0a2-b9e5-4433-87c0-68b6b72699c7= Partition Entry GUID =3D34ccc19e-7d32-474b-9d80-cb8390d14e77= Starting LBA =3D 512 Ending LBA =3D 1023 Partition Entry =3D 3 Partition Type GUID =3Debd0a0a2-b9e5-4433-87c0-68b6b72699c7= Partition Entry GUID =3Dcd96003d-d358-43e7-9555-845cf20c17a8= Starting LBA =3D 1024 Ending LBA =3D 1535 Partition Entry =3D 4 Partition Type GUID =3D0657fd6d-a4ab-43c4-84e5-0933c84b4f4f= Partition Entry GUID =3Dfbc96b01-a479-4222-95b3-6dc67834009b= Starting LBA =3D 1536 Ending LBA =3D 2014 Partition Entry =3D 5 Partition Type GUID =3DUnused [...] --- So you see that everything except linux-swap uses the same GUID (Windows = data). According to Wikipedia Linux should use a different GUID for its = filesystems. Regards, Ulrich ------------=_1454939342-6147-1--