GNU bug report logs - #22496
why does the parted math look wrong - Q1 ?

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: parted; Reported by: Chris Johnson <cj@HIDDEN>; dated Sat, 30 Jan 2016 22:48:02 UTC; Maintainer for parted is bug-parted@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Feb 2016 17:04:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 01 12:04:48 2016
Received: from localhost ([127.0.0.1]:45392 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aQHuC-0008Ma-H7
	for submit <at> debbugs.gnu.org; Mon, 01 Feb 2016 12:04:48 -0500
Received: from eggs.gnu.org ([208.118.235.92]:57779)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <bcl@HIDDEN>) id 1aQHuB-0008MD-J1
 for submit <at> debbugs.gnu.org; Mon, 01 Feb 2016 12:04:48 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1aQHtv-0007ai-JI
 for submit <at> debbugs.gnu.org; Mon, 01 Feb 2016 12:04:36 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:56528)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1aQHtv-0007ae-Ga
 for submit <at> debbugs.gnu.org; Mon, 01 Feb 2016 12:04:31 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48745)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1aQHts-0000Xp-A0
 for bug-parted@HIDDEN; Mon, 01 Feb 2016 12:04:31 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1aQHtn-0007a5-Jt
 for bug-parted@HIDDEN; Mon, 01 Feb 2016 12:04:28 -0500
Received: from mx1.redhat.com ([209.132.183.28]:43898)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1aQHtn-0007Zq-EG
 for bug-parted@HIDDEN; Mon, 01 Feb 2016 12:04:23 -0500
Received: from int-mx14.intmail.prod.int.phx2.redhat.com
 (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27])
 by mx1.redhat.com (Postfix) with ESMTPS id 6586830C7D2;
 Mon,  1 Feb 2016 17:04:22 +0000 (UTC)
Received: from lister.brianlane.com ([10.3.113.18])
 by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id
 u11H4K3W026069
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO);
 Mon, 1 Feb 2016 12:04:21 -0500
Date: Mon, 1 Feb 2016 09:04:20 -0800
From: "Brian C. Lane" <bcl@HIDDEN>
To: bug-parted@HIDDEN
Subject: Re: bug#22496: why does the parted math look wrong - Q1 ?
Message-ID: <20160201170420.GA9409@HIDDEN>
References: <56AD21AC.1060401@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <56AD21AC.1060401@HIDDEN>
User-Agent: Mutt/1.5.24 (2015-08-30)
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
Cc: cj@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: parted-devel@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)

On Sat, Jan 30, 2016 at 03:48:44PM -0500, Chris Johnson wrote:
> Hi,
> 
> I need some education on how parted is doing math.  ;-)

It would probably be better to have this discussion on the devel list,
not the bug tracker:

parted-devel@HIDDEN

AFAIK nobody uses cylinders for anything these days. I certainly haven't
used them for over a decade. Why aren't you using sectors?

As far as understanding the math, you're probably going to have to look
at the code :)

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)




Information forwarded to bug-parted@HIDDEN:
bug#22496; Package parted. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 31 Jan 2016 18:39:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 31 13:39:14 2016
Received: from localhost ([127.0.0.1]:43431 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aPwu1-0001K6-G0
	for submit <at> debbugs.gnu.org; Sun, 31 Jan 2016 13:39:14 -0500
Received: from eggs.gnu.org ([208.118.235.92]:34135)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <debianbugs@HIDDEN>) id 1aPvcl-0007oN-P7
 for submit <at> debbugs.gnu.org; Sun, 31 Jan 2016 12:17:20 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <debianbugs@HIDDEN>) id 1aPvcf-000223-RU
 for submit <at> debbugs.gnu.org; Sun, 31 Jan 2016 12:17:14 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:57925)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <debianbugs@HIDDEN>) id 1aPvcf-00021m-NI
 for submit <at> debbugs.gnu.org; Sun, 31 Jan 2016 12:17:13 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:53322)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <debianbugs@HIDDEN>) id 1aPvce-0001TY-GF
 for bug-parted@HIDDEN; Sun, 31 Jan 2016 12:17:13 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <debianbugs@HIDDEN>) id 1aPvca-0001v7-5i
 for bug-parted@HIDDEN; Sun, 31 Jan 2016 12:17:12 -0500
Received: from ns3003043.ip-151-80-42.eu ([151.80.42.189]:41550)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <debianbugs@HIDDEN>) id 1aPvcZ-0001pU-VC
 for bug-parted@HIDDEN; Sun, 31 Jan 2016 12:17:08 -0500
Subject: Re: bug#22496: why does the parted math look wrong - Q1 ?
To: bug-parted@HIDDEN
From: Narcis Garcia <debianbugs@HIDDEN>
Date: Sun, 31 Jan 2016 18:16:48 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
Message-ID: <E1aPvcZ-0001pU-VC@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sun, 31 Jan 2016 13:39:12 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

I see inconsistent data when printing table. It shoud be:
 Number  Start       End         Size       File system  Name  Flags
 1      0cyl        121600cyl** 121601cyl*               zfs
 9      121600cyl** 121601cyl   2cyl*

* Starting cylinder should be the first cylinder and count in the amount
** Strange ending at same cylinder that other partition begins.

The problem may be partitions aren't created in cylinders (but sectors),
and you try to calculate numbers based on a worng unit now.


On 30/01/16 21:48, Chris Johnson wrote:
> Hi,
> 
> I need some education on how parted is doing math.  ;-)
> 
> The drive is 1 TB.
> 
> # parted /dev/rdsk/c7t1d0p0
> GNU Parted 2.3.0
> Using /dev/rdsk/c7t1d0p0
> Welcome to GNU Parted! Type 'help' to view a list of commands.
> (parted) unit cyl                                                        
> unit cyl
> (parted) p                                                               
> p
> Model: Generic Ide (ide)
> Disk /dev/rdsk/c7t1d0p0: 121601cyl
> Sector size (logical/physical): 512B/512B
> BIOS cylinder,head,sector geometry: 121601,255,63.  Each cylinder is 8225kB.
> Partition Table: gpt
> 
> Number  Start      End        Size       File system  Name  Flags
>  1      0cyl       121600cyl  121600cyl               zfs
>  9      121600cyl  121601cyl  1cyl
> 
> *
> Question 1)*
> 
> Based on the parted value  8225KB per cylinder,  I would think that
> sectors per cylinder could be calculated thus
> 
>     8225 KB/cyl   * 1024 Bytes/KB  = 8422400 Bytes/cyl 
> 
> and  8422400 Bytes/cyl   / 512 Bytes/sector  = 16450   sectors per cylinder
> 
> However, I would also think that sectors per cylinder could be
> calculated thus:
>                              
>                                                                                              
> 255  * 63  = 16065   sectors per cylinder
> 
> Obviously these numbers do not match.
> 
> Just for the heck of it, in case when parted says 1 KB it means 1,000
> bytes not 1,024 bytes, I did this math.
> 
>     8225 * 1000 = 8225000    / 512 = 16064.4531 sectors per cylinder
> 
> which is certainly closer to the value you get from 255 * 63 but it
> really doesn't make any sense to me to be thinking that we are getting a
> fractional number of sectors in a given cylinder.
> 
>       
> Thanks for your insight.




Information forwarded to bug-parted@HIDDEN:
bug#22496; Package parted. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 Jan 2016 22:47:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 30 17:47:08 2016
Received: from localhost ([127.0.0.1]:42371 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aPeIO-0000E9-00
	for submit <at> debbugs.gnu.org; Sat, 30 Jan 2016 17:47:08 -0500
Received: from eggs.gnu.org ([208.118.235.92]:45666)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <cj@HIDDEN>) id 1aPcVt-0005wR-AY
 for submit <at> debbugs.gnu.org; Sat, 30 Jan 2016 15:52:57 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <cj@HIDDEN>) id 1aPcVm-0000hw-OX
 for submit <at> debbugs.gnu.org; Sat, 30 Jan 2016 15:52:51 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:58639)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <cj@HIDDEN>) id 1aPcVm-0000hn-LQ
 for submit <at> debbugs.gnu.org; Sat, 30 Jan 2016 15:52:50 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:36634)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <cj@HIDDEN>) id 1aPcVl-00058U-Iu
 for bug-parted@HIDDEN; Sat, 30 Jan 2016 15:52:50 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <cj@HIDDEN>) id 1aPcVg-0000c9-GB
 for bug-parted@HIDDEN; Sat, 30 Jan 2016 15:52:49 -0500
Received: from mout.perfora.net ([74.208.4.196]:55517)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <cj@HIDDEN>) id 1aPcVg-0000c1-AR
 for bug-parted@HIDDEN; Sat, 30 Jan 2016 15:52:44 -0500
Received: from [192.168.1.6] ([108.28.57.123]) by mrelay.perfora.net
 (mreueus001) with ESMTPSA (Nemesis) id 0MQPKk-1aVARS1zES-00TxHh for
 <bug-parted@HIDDEN>; Sat, 30 Jan 2016 21:52:42 +0100
Message-ID: <56AD21AC.1060401@HIDDEN>
Date: Sat, 30 Jan 2016 15:48:44 -0500
From: Chris Johnson <cj@HIDDEN>
User-Agent: Mozilla/5.0 (X11; SunOS i86pc;
 rv:10.0.6esrpre) Gecko/20120731 Thunderbird/10.0.6
MIME-Version: 1.0
To: bug-parted@HIDDEN
Subject: why does the parted math look wrong - Q1 ?
Content-Type: multipart/alternative;
 boundary="------------010503040505010102090305"
X-Provags-ID: V03:K0:1ps4ZhxzCcJs+2kKjfJfBHLqy+e2n8fWBdcg95d0VpWwplP64rH
 wu4zotVG+0bOcgH/MNwpZf8sbOFE7gdWrYPCoMNhIcXwyT1HK/AeKQbP58yeBW18Qh4/a9/
 JBp6gWNFiBwqqsQlJDuZQLhox1sUyNCyq2kO1+44VSfRt+PWa/HAwQs9Jhx/YDSINFxfI5q
 fGIEMIs5jyNJ0+Wp27PaA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:XaYD75Lj3AI=:PwoPS2jtjlgjAX/HUqx3uP
 W1WdyDVLKRDZTk2LPiyTNfg0GIsxXyHff4K6hIh8e6MzFSg1MrCYjMm8GDDZu+Z2xNxua2U1B
 ZACTNkN/Yy89S3g1PSHn9/lrI3PsDp+YDB7D/iEr6a1uMbir/xmyNLFkv7IP6MpcnJvyJy794
 4WHdCYp7TeGryVkvv/M+DMJCI3luXVNA98sr54n4VWIJU0u+z4O0Qkpc4n7TRz/D0srJf8oHy
 IMSl2fu2JLXIGjYMRYHElLD9vRbS9yTQ5yLGKOETJT88ZW0S3Eh65SlTfj3viuoSpmT5DAsdC
 IvYXB9slMvwN3NWkbIzvAjgIw0jI6EKk3mlPLIG53118pP49zuHG9fj9L3iZdS/SuXoqGzVBx
 /QdPUstl4pyGHMdLHG3QM4u35DyutSM1KJKwmjO0lvxnqjnvLCWyQCwjJ2xblnzcM5JOP56oY
 LZoJi8v+ZxIqmdpf0MeZc8XMSaQoIz9kuX8vKD5yfpmK2iCh7I+OVzaZjc7qVITUcVuyvAudd
 hj9vNlW4hUmd1aVLf3pQXQBMUuYSWORM+vz22B3YoZXBXJFspRcqlYnQCJfSp/U8kDWobvTOh
 ca5DoVSkPwDVslCBdshebgpk77OUZCfxZ6y6BvXnYMf3shxT15Vl4bcJKDrzyG2Q/qtFaTAlG
 EKhCQINnLlKPiZPSHqWuxQXte+yWxFKsJzOn9Sbc5a8ZiGiP4C0HI3WsCcYyAF9JJQ7I8JqFn
 gE2ttlcbpXrvAOSZ
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sat, 30 Jan 2016 17:47:07 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

This is a multi-part message in MIME format.
--------------010503040505010102090305
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

I need some education on how parted is doing math.  ;-)

The drive is 1 TB.

# parted /dev/rdsk/c7t1d0p0
GNU Parted 2.3.0
Using /dev/rdsk/c7t1d0p0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit cyl
unit cyl
(parted) p
p
Model: Generic Ide (ide)
Disk /dev/rdsk/c7t1d0p0: 121601cyl
Sector size (logical/physical): 512B/512B
BIOS cylinder,head,sector geometry: 121601,255,63.  Each cylinder is 8225kB.
Partition Table: gpt

Number  Start      End        Size       File system  Name  Flags
  1      0cyl       121600cyl  121600cyl               zfs
  9      121600cyl  121601cyl  1cyl

*
Question 1)*

Based on the parted value  8225KB per cylinder,  I would think that 
sectors per cylinder could be calculated thus

     8225 KB/cyl   * 1024 Bytes/KB  = 8422400 Bytes/cyl

and  8422400 Bytes/cyl   / 512 Bytes/sector  = 16450   sectors per cylinder

However, I would also think that sectors per cylinder could be 
calculated thus:
                               
                                                                                               255  * 63  = 16065   sectors per cylinder

Obviously these numbers do not match.

Just for the heck of it, in case when parted says 1 KB it means 1,000 
bytes not 1,024 bytes, I did this math.

     8225 * 1000 = 8225000    / 512 = 16064.4531 sectors per cylinder

which is certainly closer to the value you get from 255 * 63 but it 
really doesn't make any sense to me to be thinking that we are getting a 
fractional number of sectors in a given cylinder.


Thanks for your insight.

--------------010503040505010102090305
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <font face="Courier New, Courier, monospace">Hi,<br>
      <br>
      I need some education on how parted is doing math.&nbsp; ;-)<br>
      <br>
      The drive is 1 TB.<br>
      <br>
      # parted /dev/rdsk/c7t1d0p0<br>
      GNU Parted 2.3.0<br>
      Using /dev/rdsk/c7t1d0p0<br>
      Welcome to GNU Parted! Type 'help' to view a list of commands.<br>
      (parted) unit
      cyl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
      unit cyl<br>
      (parted)
      p&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
      p<br>
      Model: Generic Ide (ide)<br>
      Disk /dev/rdsk/c7t1d0p0: 121601cyl<br>
      Sector size (logical/physical): 512B/512B<br>
      BIOS cylinder,head,sector geometry: 121601,255,63.&nbsp; Each cylinder
      is 8225kB.<br>
      Partition Table: gpt<br>
      <br>
      Number&nbsp; Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; File system&nbsp; Name&nbsp; Flags<br>
      &nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0cyl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 121600cyl&nbsp; 121600cyl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zfs<br>
      &nbsp;9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 121600cyl&nbsp; 121601cyl&nbsp; 1cyl<br>
      <br>
    </font><font face="Courier New, Courier, monospace"><b><br>
        Question 1)</b><br>
      <br>
      Based on the parted value&nbsp; 8225KB per cylinder,&nbsp; I would think
      that sectors per cylinder could be calculated thus<br>
      <br>
      &nbsp;&nbsp;&nbsp; 8225 KB/cyl&nbsp;&nbsp; * 1024 Bytes/KB&nbsp; = 8422400 Bytes/cyl&nbsp; <br>
      <br>
    </font><font face="Courier New, Courier, monospace">and&nbsp; 8422400
      Bytes/cyl &nbsp; / 512 Bytes/sector&nbsp; = 16450&nbsp;&nbsp; sectors per cylinder<br>
      <br>
    </font><font face="Courier New, Courier, monospace">However, I would
      also think that sectors per cylinder could be calculated thus:<br>
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      255&nbsp; * 63&nbsp; = 16065&nbsp;&nbsp; sectors per cylinder<br>
      <br>
      Obviously these numbers do not match.<br>
      <br>
      Just for the heck of it, in case when parted says 1 KB it means
      1,000 bytes not 1,024 bytes, I did this math.<br>
      <br>
      &nbsp;&nbsp;&nbsp; 8225 * 1000 = 8225000&nbsp;&nbsp;&nbsp; / 512 = 16064.4531 sectors per
      cylinder<br>
      <br>
      which is certainly closer to the value you get from 255 * 63 but
      it really doesn't make any sense to me to be thinking that we are
      getting a fractional number of sectors in a given cylinder.<br>
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
    </font><font face="Courier New, Courier, monospace">Thanks for your
      insight. </font><br>
  </body>
</html>

--------------010503040505010102090305--




Acknowledgement sent to Chris Johnson <cj@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-parted@HIDDEN. Full text available.
Report forwarded to bug-parted@HIDDEN:
bug#22496; Package parted. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.