Util-Linux package development
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: Tom Yan <tom.ty89@gmail.com>
Cc: util-linux@vger.kernel.org
Subject: Re: multiple alignment bugs / inconsistencies of fdisk
Date: Wed, 10 Jun 2015 13:07:30 +0200	[thread overview]
Message-ID: <20150610110730.GL1992@ws.net.home> (raw)
In-Reply-To: <20150608153535.GE1992@ws.net.home>

On Mon, Jun 08, 2015 at 05:35:35PM +0200, Karel Zak wrote:
> >     Using default response p.
> >     Partition number (1-4, default 1):
> >     First sector (2048-468862127, default 2048):
> >     Last sector, +sectors or +size{K,M,G,T,P} (2048-468862127, default
> > 468862127): +1
> > 
> >     Created a new partition 1 of type 'Linux' and of size 1 KiB.
> > 
> >     Command (m for help): p
> >     Disk /dev/sda: 223.6 GiB, 240057409536 bytes, 468862128 sectors
> >     Units: sectors of 1 * 512 = 512 bytes
> >     Sector size (logical/physical): 512 bytes / 512 bytes
> >     I/O size (minimum/optimal): 512 bytes / 512 bytes
> >     Disklabel type: dos
> >     Disk identifier: 0x344a2daa
> > 
> >     Device     Boot Start   End Sectors Size Id Type
> >     /dev/sda1        2048  2049       2   1K 83 Linux
> 
> Fixed, now:
> 
>       Device     Boot Start   End Sectors  Size Id Type
>       /dev/sdc1        2048  2048       1  512B 83 Linux

 I have reverted this small change, it's nonsense. The convention +<sectors>
 specifies Last sector relatively to the First sector.

  +0  means   start=2048  end=2048  size=1
  +1  means   start=2048  end=2049  size=2

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

      reply	other threads:[~2015-06-10 11:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-08  7:42 multiple alignment bugs / inconsistencies of fdisk Tom Yan
2015-06-08 15:35 ` Karel Zak
2015-06-10 11:07   ` Karel Zak [this message]

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=20150610110730.GL1992@ws.net.home \
    --to=kzak@redhat.com \
    --cc=tom.ty89@gmail.com \
    --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