From: Giulio <giulioo@gmail.com>
To: util-linux@vger.kernel.org
Subject: sfdisk: trying to create aligned partitions: fail
Date: Wed, 17 Aug 2011 08:13:06 +0200 [thread overview]
Message-ID: <20110817061256.BB29DF815@i3.golden.dom> (raw)
Linux 2.6.18-238.12.1.el5
sfdisk from util-linux 2.20-rc1
fdisk (util-linux 2.20-rc1)
200GB VMware SCSI disk
It seems it's not immediately possible to create aligned partitions (ie:
starting at 1MB/2048 sectors) with sfdisk.
1) 1st try, using MBs as unit of measure:
dd if=/dev/zero of=/dev/sda bs=1 count=512
sfdisk -L -uM /dev/sda <<-EOF
1,1001,83
,,83
;
;
EOF
Results (starts at sector 1 instead of 1MB):
$ fdisk -lu /dev/sda
Disk /dev/sda: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders, total 419430400 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
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 2056319 1028159+ 83 Linux
/dev/sda2 2056320 419425019 208684350 83 Linux
2) 2nd try, using sectors as unit of measure:
dd if=/dev/zero of=/dev/sda bs=1 count=512
sfdisk -L -uS /dev/sda <<-EOF
2048,2050048,83
,,83
;
;
EOF
Results (wrong 2nd partition created):
$ fdisk -lu /dev/sda
Disk /dev/sda: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders, total 419430400 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
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 2048 2052095 1025024 83 Linux
/dev/sda2 1 2047 1023+ 83 Linux
/dev/sda3 2052096 419430399 208689152 83 Linux
Partition table entries are not in disk order
===
Is there some option to enable alignment?
Thanks
next reply other threads:[~2011-08-17 6:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-17 6:13 Giulio [this message]
2011-08-17 7:56 ` sfdisk: trying to create aligned partitions: fail Karel Zak
2011-08-17 9:31 ` Giulio
2011-08-17 12:44 ` Karel Zak
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=20110817061256.BB29DF815@i3.golden.dom \
--to=giulioo@gmail.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