Util-Linux package development
 help / color / mirror / Atom feed
From: Peter Cordes <peter@cordes.ca>
To: util-linux@vger.kernel.org
Subject: cfdisk UI problem with a small partition starting and ending	before sector 2048 (1MiB)
Date: Sat, 27 Feb 2016 00:19:55 -0400	[thread overview]
Message-ID: <20160227041955.GT20685@cordes.ca> (raw)

[-- Attachment #1: Type: text/plain, Size: 2073 bytes --]

I tested sfdisk/cfdisk from the latest git while setting up a new disk.
It finds some free space where there isn't any:


                          Disk: /dev/sde
     Size: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
  Label: gpt, identifier: 7E471862-5089-4C54-A3BC-722ADD08808A
					       
Device           Start        End              Sectors  Size Type
/dev/sde1           40       2047                 2008 1004K BIOS boot
Free space        2048         39 18446744073709549608   16E
/dev/sde2         2048   30722047             30720000 14.7G Linux RAID
...


sfdisk --dump dumps/restores it just fine.  (Thanks fixing that bug last
year with sfdisk refusing to create the boot partition starting at
sector 40.)

Here's the dump so you can recreate it easily:

label: gpt
label-id: 7E471862-5089-4C54-A3BC-722ADD08808A
device: /dev/sde
unit: sectors
first-lba: 34
last-lba: 5860533134

/dev/sde1 : start=          40, size=        2008, type=21686148-6449-6E6F-744E-656564454649, uuid=336580CD-6D34-4148-8708-DB3308CE667C, name="BIOS boot partition"
/dev/sde2 : start=        2048, size=    30720000, type=A19D880F-05FC-4D3B-A006-743F0F84911E, uuid=A3F01280-2490-4925-B2D7-4A31F0B8556A
/dev/sde3 : start=    30722048, size=      614400, type=0657FD6D-A4AB-43C4-84E5-0933C84B4F4F, uuid=B07E3680-FC7E-4BE3-A14A-568011F9D410
/dev/sde4 : start=    31336448, size=   134217728, type=A19D880F-05FC-4D3B-A006-743F0F84911E, uuid=CA777D0F-0DA2-4F9C-98D8-67187479BA81
/dev/sde5 : start=   165554176, size=   209715200, type=A19D880F-05FC-4D3B-A006-743F0F84911E, uuid=C7C67ABA-9483-4FF7-9D96-5BC37BED19FF
/dev/sde6 : start=   375269376, size=  5485263759, type=A19D880F-05FC-4D3B-A006-743F0F84911E, uuid=FE8DFE27-11B1-438B-BA24-0CD64B474897



-- 
#define X(x,y) x##y
Peter Cordes ;  e-mail: X(peter@cor , des.ca)

"The gods confound the man who first found out how to distinguish the hours!
 Confound him, too, who in this place set up a sundial, to cut and hack
 my day so wretchedly into small pieces!" -- Plautus, 200 BC

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 359 bytes --]

             reply	other threads:[~2016-02-27  4:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-27  4:19 Peter Cordes [this message]
2016-05-05  9:53 ` cfdisk UI problem with a small partition starting and ending before sector 2048 (1MiB) Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160227041955.GT20685@cordes.ca \
    --to=peter@cordes.ca \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox