GNU bug report logs - #54751
Parted 3.4 complains about the partition layout of ChromeOS: "Can't have overlapping partitions"

Previous Next

Package: parted;

Reported by: steven <at> nchc.org.tw

Date: Wed, 6 Apr 2022 14:33:02 UTC

Severity: normal

To reply to this bug, email your comments to 54751 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#54751; Package parted. (Wed, 06 Apr 2022 14:33:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to steven <at> nchc.org.tw:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Wed, 06 Apr 2022 14:33:03 GMT) Full text and rfc822 format available.

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

From: Steven Shiau <steven <at> narlabs.org.tw>
To: bug-parted <at> gnu.org
Subject: Parted 3.4 complains about the partition layout of ChromeOS: "Can't
 have overlapping partitions"
Date: Wed, 6 Apr 2022 14:20:56 +0800
Dear developers,
We encountered an issue that parted 3.4 complains about the partition 
layout of ChromeOS: "Can't have overlapping partitions".
The details are described in the end of this mail. If we use the script 
mode, then it only outputs the error messages, and we can not find any 
option to ignore the error or warning. However, if we enter interactive 
mode, we have a chance to ignore the error and output the partition 
layout. It seems sfdisk does not complain this issue, but parted does.
So my questions: (1) Is there any option we can use to ignore the 
error/warning in the script mode? (2) What is the issue about the 
partition layout of ChromeOS? Thank you very much.

root <at> debian:~# parted --version
parted (GNU parted) 3.4
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by 
<http://git.debian.org/?p=parted/parted.git;a=blob_plain;f=AUTHORS>.

root <at> debian:~# parted -s /dev/sda print
Error: Can't have overlapping partitions.
Model: VMware Virtual Storage (scsi)
Disk /dev/sda: 12.9GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:

root <at> debian:~# parted /dev/sda print unit s print unit chs print
Error: Can't have overlapping partitions.
Ignore/Cancel? I
Model: VMware Virtual Storage (scsi)
Disk /dev/sda: 12.9GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: pmbr_boot


Number  Start   End     Size    File system  Name        Flags
11      32.8kB  33.3kB  512B                 RWFW
 6      33.3kB  33.8kB  512B                 KERN-C chromeos_kernel
 7      33.8kB  34.3kB  512B                 ROOT-C
 9      34.3kB  34.8kB  512B                 reserved
10      34.8kB  35.3kB  512B                 reserved
 2      35.3kB  16.8MB  16.8MB               KERN-A chromeos_kernel
 4      16.8MB  33.6MB  16.8MB               KERN-B chromeos_kernel
 8      35.7MB  52.4MB  16.8MB  ext4         OEM
12      52.4MB  120MB   67.1MB  fat16        EFI-SYSTEM  boot, 
legacy_boot, esp
 5      120MB   122MB   2097kB               ROOT-B
 3      122MB   2638MB  2517MB  ext2         ROOT-A
 1      2638MB  6940MB  4301MB  ext4         STATE


root <at> debian:~# sfdisk -d /dev/sda
label: gpt
label-id: 08D06684-439B-5249-BF2C-ADA012219CA0
device: /dev/sda
unit: sectors
first-lba: 34
last-lba: 25165790
sector-size: 512

/dev/sda1 : start=     5152768, size=     8401025, 
type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, 
uuid=222536A7-D849-3349-9646-3DC89AB2952E, name="STATE"
/dev/sda2 : start=          69, size=       32768, 
type=FE3A2A5D-4F32-41A7-B725-ACCC3285A309, 
uuid=E9A9957A-FB4A-3C44-815B-E8F5C3A72051, name="KERN-A"
/dev/sda3 : start=      237568, size=     4915200, 
type=3CB8E202-3B7E-47DD-8A3C-7FF2A13CFCEC, 
uuid=2B75156A-F0BE-6C46-88D1-5628F3D030A6, name="ROOT-A"
/dev/sda4 : start=       32837, size=       32768, 
type=FE3A2A5D-4F32-41A7-B725-ACCC3285A309, 
uuid=1399AF6D-5ED1-F242-B9E6-FCEAE223B041, name="KERN-B"
/dev/sda5 : start=      233472, size=        4096, 
type=3CB8E202-3B7E-47DD-8A3C-7FF2A13CFCEC, 
uuid=19EC4CDA-2F6F-CB4C-8853-2C40550A23DE, name="ROOT-B"
/dev/sda6 : start=          65, size=           1, 
type=FE3A2A5D-4F32-41A7-B725-ACCC3285A309, 
uuid=C6269814-317D-0B48-B5D8-EC663E04A1FE, name="KERN-C"
/dev/sda7 : start=          66, size=           1, 
type=3CB8E202-3B7E-47DD-8A3C-7FF2A13CFCEC, 
uuid=F7990EB7-C113-2944-8CD2-B6F61D993D96, name="ROOT-C"
/dev/sda8 : start=       69632, size=       32768, 
type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, 
uuid=13372637-6B9C-7543-B5DF-CE97AFC01F1A, name="OEM"
/dev/sda9 : start=          67, size=           1, 
type=2E0A753D-9E48-43B0-8337-B15192CB1B5E, 
uuid=A14CB4A1-0A05-2B46-8548-7908252A83DE, name="reserved"
/dev/sda10 : start=          68, size=           1, 
type=2E0A753D-9E48-43B0-8337-B15192CB1B5E, 
uuid=AD34FDF0-8416-2842-9BB0-3CB356BB1862, name="reserved"
/dev/sda11 : start=          64, size=           1, 
type=CAB6E88E-ABF3-4102-A07A-D4BB9BE3C1D3, 
uuid=78FAFCA1-7159-6643-91CA-F446E168528F, name="RWFW"
/dev/sda12 : start=      102400, size=      131072, 
type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, 
uuid=81709525-0560-5844-87D1-D092B7EC65FB, name="EFI-SYSTEM", 
attrs="LegacyBIOSBootable"


-- 
Steven Shiau <steven _at_ stevenshiau org>
Public Key Server PGP Key ID: 4096R/163E3FB0
Fingerprint: EB1D D5BF 6F88 820B BCF5  356C 8E94 C9CD 163E 3FB0





Information forwarded to bug-parted <at> gnu.org:
bug#54751; Package parted. (Wed, 06 Apr 2022 16:28:02 GMT) Full text and rfc822 format available.

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

From: "Brian C. Lane" <bcl <at> redhat.com>
To: steven <at> nchc.org.tw
Cc: 54751 <at> debbugs.gnu.org
Subject: Re: bug#54751: Parted 3.4 complains about the partition layout of
 ChromeOS: "Can't have overlapping partitions"
Date: Wed, 6 Apr 2022 09:27:41 -0700
On Wed, Apr 06, 2022 at 02:20:56PM +0800, Steven Shiau wrote:

> So my questions: (1) Is there any option we can use to ignore the 
> error/warning in the script mode? (2) What is the issue about the 
> partition layout of ChromeOS? Thank you very much.

No, having overlapping partitions is an error, and script mode tries
pretty hard to make sure you can't accidentally destroy your data.

Please include the output from

parted /dev/sda unit s print

so we can see what parted thinks the sector locations and lengths are.

Brian

-- 
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart





Information forwarded to bug-parted <at> gnu.org:
bug#54751; Package parted. (Wed, 06 Apr 2022 22:21:02 GMT) Full text and rfc822 format available.

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

From: Steven Shiau <steven <at> narlabs.org.tw>
To: "Brian C. Lane" <bcl <at> redhat.com>
Cc: 54751 <at> debbugs.gnu.org
Subject: Re: bug#54751: Parted 3.4 complains about the partition layout of
 ChromeOS: "Can't have overlapping partitions"
Date: Thu, 7 Apr 2022 06:19:02 +0800
On 4/7/22 00:27, Brian C. Lane wrote:
> On Wed, Apr 06, 2022 at 02:20:56PM +0800, Steven Shiau wrote:
>
>> So my questions: (1) Is there any option we can use to ignore the
>> error/warning in the script mode? (2) What is the issue about the
>> partition layout of ChromeOS? Thank you very much.
> No, having overlapping partitions is an error, and script mode tries
> pretty hard to make sure you can't accidentally destroy your data.
>
> Please include the output from
>
> parted /dev/sda unit s print
>
> so we can see what parted thinks the sector locations and lengths are.
>
> Brian
>
Thank you very much for answering this. Here you are:
root <at> debian:~# parted /dev/sda unit s print
Error: Can't have overlapping partitions.
Ignore/Cancel? I
Model: VMware Virtual Storage (scsi)
Disk /dev/sda: 25165824s
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: pmbr_boot

Number  Start     End        Size      File system  Name        Flags
11      64s       64s        1s                     RWFW
 6      65s       65s        1s                     KERN-C      chromeos_kernel
 7      66s       66s        1s                     ROOT-C
 9      67s       67s        1s                     reserved
10      68s       68s        1s                     reserved
 2      69s       32836s     32768s                 KERN-A      chromeos_kernel
 4      32837s    65604s     32768s                 KERN-B      chromeos_kernel
 8      69632s    102399s    32768s    ext4         OEM
12      102400s   233471s    131072s   fat16        EFI-SYSTEM  boot, legacy_boot, esp
 5      233472s   237567s    4096s                  ROOT-B
 3      237568s   5152767s   4915200s  ext2         ROOT-A
 1      5152768s  13553792s  8401025s  ext4         STATE

Steven

-- 
Steven Shiau <steven _at_ stevenshiau org>
Public Key Server PGP Key ID: 4096R/163E3FB0
Fingerprint: EB1D D5BF 6F88 820B BCF5  356C 8E94 C9CD 163E 3FB0





Information forwarded to bug-parted <at> gnu.org:
bug#54751; Package parted. (Wed, 06 Apr 2022 23:04:02 GMT) Full text and rfc822 format available.

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

From: "Brian C. Lane" <bcl <at> redhat.com>
To: Steven Shiau <steven <at> narlabs.org.tw>
Cc: 54751 <at> debbugs.gnu.org
Subject: Re: bug#54751: Parted 3.4 complains about the partition layout of
 ChromeOS: "Can't have overlapping partitions"
Date: Wed, 6 Apr 2022 16:03:40 -0700
On Thu, Apr 07, 2022 at 06:19:02AM +0800, Steven Shiau wrote:
> 
> On 4/7/22 00:27, Brian C. Lane wrote:
> > On Wed, Apr 06, 2022 at 02:20:56PM +0800, Steven Shiau wrote:
> >
> >> So my questions: (1) Is there any option we can use to ignore the
> >> error/warning in the script mode? (2) What is the issue about the
> >> partition layout of ChromeOS? Thank you very much.
> > No, having overlapping partitions is an error, and script mode tries
> > pretty hard to make sure you can't accidentally destroy your data.
> >
> > Please include the output from
> >
> > parted /dev/sda unit s print
> >
> > so we can see what parted thinks the sector locations and lengths are.
> >
> > Brian
> >
> Thank you very much for answering this. Here you are:
> root <at> debian:~# parted /dev/sda unit s print
> Error: Can't have overlapping partitions.
> Ignore/Cancel? I
> Model: VMware Virtual Storage (scsi)
> Disk /dev/sda: 25165824s
> Sector size (logical/physical): 512B/512B
> Partition Table: gpt
> Disk Flags: pmbr_boot
> 
> Number  Start     End        Size      File system  Name        Flags
> 11      64s       64s        1s                     RWFW
>   6      65s       65s        1s                     KERN-C      chromeos_kernel
>   7      66s       66s        1s                     ROOT-C
>   9      67s       67s        1s                     reserved
> 10      68s       68s        1s                     reserved
>   2      69s       32836s     32768s                 KERN-A      chromeos_kernel
>   4      32837s    65604s     32768s                 KERN-B      chromeos_kernel
>   8      69632s    102399s    32768s    ext4         OEM
> 12      102400s   233471s    131072s   fat16        EFI-SYSTEM  boot, legacy_boot, esp
>   5      233472s   237567s    4096s                  ROOT-B
>   3      237568s   5152767s   4915200s  ext2         ROOT-A
>   1      5152768s  13553792s  8401025s  ext4         STATE

It looks like parted doesn't like 1 sector partitions that aren't in
order. I can reproduce this by making them at 64s, 66s, then 65s. But if
I make 64s, 65s, 66s it is happy with it, even when printing it later.

I'll look into it more when I have a chance, but I think this is a
corner case that has been there quite a while so it won't make it into
the pending 3.5 release.

Thanks,

Brian

-- 
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart





Information forwarded to bug-parted <at> gnu.org:
bug#54751; Package parted. (Thu, 07 Apr 2022 00:10:02 GMT) Full text and rfc822 format available.

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

From: Steven Shiau <steven <at> narlabs.org.tw>
To: "Brian C. Lane" <bcl <at> redhat.com>
Cc: 54751 <at> debbugs.gnu.org
Subject: Re: bug#54751: Parted 3.4 complains about the partition layout of
 ChromeOS: "Can't have overlapping partitions"
Date: Thu, 7 Apr 2022 08:09:30 +0800
On 4/7/2022 7:03 AM, Brian C. Lane wrote:
> It looks like parted doesn't like 1 sector partitions that aren't in
> order. I can reproduce this by making them at 64s, 66s, then 65s. But if
> I make 64s, 65s, 66s it is happy with it, even when printing it later.
>
> I'll look into it more when I have a chance, but I think this is a
> corner case that has been there quite a while so it won't make it into
> the pending 3.5 release.

Thanks, Brian.
I believe quite a few people want to reuse their old computers, and hence
ChromeOS Flex is one of the good choices for them. We, from Clonezilla project [1],
are trying to make people do the massive deployment easier. That's why this issue was raised [2].
Appreciate.

1. https://clonezilla.org
2. https://sourceforge.net/p/clonezilla/discussion/Clonezilla_live/thread/688ce74fb1

-- 
Steven Shiau <steven _at_ stevenshiau org>
Public Key Server PGP Key ID: 4096R/163E3FB0
Fingerprint: EB1D D5BF 6F88 820B BCF5  356C 8E94 C9CD 163E 3FB0





Information forwarded to bug-parted <at> gnu.org:
bug#54751; Package parted. (Thu, 29 Dec 2022 10:05:02 GMT) Full text and rfc822 format available.

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

From: Ignacy Kuchciński <ignacykuchcinski <at> gmail.com>
To: bug-parted <at> gnu.org
Cc: bcl <at> redhat.com, steven <at> narlabs.org.tw
Subject: Re: bug#54751: Parted 3.4 complains about the partition layout of
 ChromeOS: "Can't have overlapping partitions"
Date: Wed, 28 Dec 2022 22:59:46 +0100
Hello developers,

Replying to thread
https://lists.gnu.org/archive/html/bug-parted/2022-04/msg00001.html
It seems like there's already a patch for this issue:
https://www.mail-archive.com/parted-devel <at> alioth-lists.debian.net/msg00196.html

Is there anything left to work on to fix this? Apart from Clonezilla
problems, this bug results in inability to see the partition layout of
disks with ChromeOS installed in anaconda and ubiquity installers and
prevents edits in GNOME Disks. Judging from the positive responses to
the patch, it seems it just slipped through the cracks. I hope it's
still the right solution.

Ignacy Kuchciński




Information forwarded to bug-parted <at> gnu.org:
bug#54751; Package parted. (Thu, 29 Dec 2022 10:05:02 GMT) Full text and rfc822 format available.

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

From: Ignacy Kuchciński <ignacykuchcinski <at> gmail.com>
To: bug-parted <at> gnu.org
Subject: bug#54751: Parted 3.4 complains about the partition layout of
 ChromeOS: "Can't have overlapping partitions"
Date: Thu, 29 Dec 2022 00:43:32 +0100
Hello developers,

Replying to thread
https://lists.gnu.org/archive/html/bug-parted/2022-04/msg00001.html
It seems like there's already a patch for this issue:
https://www.mail-archive.com/parted-devel <at> alioth-lists.debian.net/msg00196.html

Is there anything left to work on to fix this? Apart from Clonezilla
problems, this bug results in inability to see the partition layout of
disks with ChromeOS installed in anaconda and ubiquity installers and
prevents edits in GNOME Disks. Judging from the positive responses to
the patch, it seems it just slipped through the cracks. I hope it's
still the right solution.

Ignacy Kuchcinski




Information forwarded to bug-parted <at> gnu.org:
bug#54751; Package parted. (Mon, 09 Jan 2023 19:10:02 GMT) Full text and rfc822 format available.

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

From: "Brian C. Lane" <bcl <at> redhat.com>
To: Ignacy Kuchciński <ignacykuchcinski <at> gmail.com>
Cc: 54751 <at> debbugs.gnu.org
Subject: Re: bug#54751: Parted 3.4 complains about the partition layout of
 ChromeOS: "Can't have overlapping partitions"
Date: Mon, 9 Jan 2023 11:08:59 -0800
On Thu, Dec 29, 2022 at 12:43:32AM +0100, Ignacy Kuchciński wrote:
> Hello developers,
> 
> Replying to thread
> https://lists.gnu.org/archive/html/bug-parted/2022-04/msg00001.html
> It seems like there's already a patch for this issue:
> https://www.mail-archive.com/parted-devel <at> alioth-lists.debian.net/msg00196.html
> 
> Is there anything left to work on to fix this? Apart from Clonezilla
> problems, this bug results in inability to see the partition layout of
> disks with ChromeOS installed in anaconda and ubiquity installers and
> prevents edits in GNOME Disks. Judging from the positive responses to
> the patch, it seems it just slipped through the cracks. I hope it's
> still the right solution.

I have it on my list of things for the new year, but I'd like to get
more feedback on it. It looks simple enough, but you know how that can
go... :)

Thanks,

Brian

-- 
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart





This bug report was last modified 2 years and 160 days ago.

Previous Next


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