Util-Linux package development
 help / color / mirror / Atom feed
From: Benno Schulenberg <bensberg@justemail.net>
To: "Util-Linux" <util-linux@vger.kernel.org>
Subject: cfdisk will happily create a partition of size zero
Date: Sat, 31 Jan 2015 10:58:39 +0100	[thread overview]
Message-ID: <1422698319.1391339.221285309.35047434@webmail.messagingengine.com> (raw)


Hi,

My disk is configured like this:

                                 Disk: /dev/sda
             Size: 149.1 GiB, 160041885696 bytes, 312581808 sectors
                       Label: dos, identifier: 0x5ef35ef3

    Device      Boot     Start       End   Sectors   Size Id Type
    /dev/sda1             2048  31262489  31260442  14.9G 83 Linux
    /dev/sda2   *     31262490  62508914  31246425  14.9G 83 Linux
    /dev/sda3         62508915  93755339  31246425  14.9G 83 Linux
    /dev/sda4         93755401 312576704 218821304 104.4G  5 Extended           
    |-/dev/sda5       93755403  94767434   1012032 494.2M 82 Linux swap / Solari
    |-/dev/sda6       94767498 252975554 158208057  75.5G 83 Linux
    |-/dev/sda7      252975618 282776129  29800512  14.2G 83 Linux
    `-/dev/sda8      282776193 312576704  29800512  14.2G 83 Linux
    Free space       312578048 312581807      3760   1.9M

When I delete sda5 to sda8 and then sda4, and then recreate sda4,
and then in the free space create a partition of 1 sector, things
look like this:

    /dev/sda4               93755392  312581807  218826416  104.4G   5 Extended
    |-/dev/sda5             93757440   93757440          0      0B  83 Linux    
    `-Free space            93759488  312581807  218822320  104.4G

Strange.  Start and end of sda5 are on the same sector?

Anyway, if I then in the free space try to create a partition of
say 123M, the response on the bottombar is (in red):

Start sector 93759488 out of range.

??

Benno

-- 
http://www.fastmail.com - Access your email from home and the web


             reply	other threads:[~2015-01-31  9:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-31  9:58 Benno Schulenberg [this message]
2015-02-05 19:59 ` cfdisk will happily create a partition of size zero Phillip Susi
2015-02-06  9:21   ` 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=1422698319.1391339.221285309.35047434@webmail.messagingengine.com \
    --to=bensberg@justemail.net \
    --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