Util-Linux package development
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: giulioo@pobox.com
Cc: util-linux@vger.kernel.org
Subject: Re: sfdisk: trying to create aligned partitions: fail
Date: Wed, 17 Aug 2011 14:44:00 +0200	[thread overview]
Message-ID: <20110817124400.GA699@nb.net.home> (raw)
In-Reply-To: <20110817093146.860D9F815@i3.golden.dom>

On Wed, Aug 17, 2011 at 11:31:56AM +0200, Giulio wrote:
> I know sfdisk won't automatically align partitions and didn't expect it to
> do it, my email was about sfdisk behaving in an unexpected way:
> - not respecting 1MB as start of partition when I ask for it
> - creating partitions out of order when using sectors

 Try --in-order command line option, the option is undocumented in old
 versions ;-(

 sfdisk --in-order -L -uM /dev/sdb <<-EOF
 1,10,83
 ,,83
 ;
 ;
 EOF

 result (output from fdisk):
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1            2048       22527       10240   83  Linux
    /dev/sdb2           22528      204799       91136   83  Linux



sfdisk --in-order -L -uS /dev/sdb <<-EOF
2048,8000,83
,,83
;
;
EOF

 result (output from fdisk):

       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1            2048       10047        4000   83  Linux
    /dev/sdb2           10048      204799       97376   83  Linux



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

  reply	other threads:[~2011-08-17 12:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-17  6:13 sfdisk: trying to create aligned partitions: fail Giulio
2011-08-17  7:56 ` Karel Zak
2011-08-17  9:31   ` Giulio
2011-08-17 12:44     ` Karel Zak [this message]
2011-08-17 13:46       ` Giulio Orsero

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=20110817124400.GA699@nb.net.home \
    --to=kzak@redhat.com \
    --cc=giulioo@pobox.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