All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ulf Zibis <Ulf.Zibis@gmx.de>
To: util-linux@vger.kernel.org
Subject: question on sfdisk geometry estimation
Date: Tue, 27 Nov 2012 11:14:20 +0100	[thread overview]
Message-ID: <50B4927C.9010200@gmx.de> (raw)

Hi,

using sfdisk -l I had this output:

Disk /dev/sda: 19457 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

    Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1   *      0+   3038    3039-  24410736    7  HPFS/NTFS/exFAT
/dev/sda2      18936+  19456-    521-   4180680   12  Compaq diagnostics
/dev/sda3       3039    5390    2352   18892440   83  Linux
/dev/sda4       5391   18935   13545  108800212+   5  Extended
/dev/sda5       9725+  12764    3040-  24418768+   7  HPFS/NTFS/exFAT
/dev/sda6      12765+  18935    6171-  49568526    7  HPFS/NTFS/exFAT

Disk /dev/sdb: 10337 cylinders, 240 heads, 63 sectors/track
Units = cylinders of 7741440 bytes, blocks of 1024 bytes, counting from 0

    Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdb1   *      0+   4604-   4605-  34812823+   7  HPFS/NTFS/exFAT
/dev/sdb2       9782   10336     555    4195800   12  Compaq diagnostics
/dev/sdb3       5952    9781    3830   28954800    f  W95 Ext'd (LBA)
/dev/sdb4       4604+   5951-   1348-  10183680    7  HPFS/NTFS/exFAT
/dev/sdb5       5952+   9781    3830-  28954768+   b  W95 FAT32


So I'm wondering why sfdisk assumed sdb to be 240 head-aligned instead of 255.
All partitions except the sdb2 match with the 255*63 alignment.

Any hint, how the geometry should be estimated correctly?

Many thanks to your answer,

-Ulf


             reply	other threads:[~2012-11-27 10:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-27 10:14 Ulf Zibis [this message]
2012-11-27 14:43 ` question on sfdisk geometry estimation Ulf Zibis

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=50B4927C.9010200@gmx.de \
    --to=ulf.zibis@gmx.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.