From unknown Sun Jun 22 00:01:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#22497 <22497@debbugs.gnu.org> To: bug#22497 <22497@debbugs.gnu.org> Subject: Status: parted math - Q2 and Q3 ? Reply-To: bug#22497 <22497@debbugs.gnu.org> Date: Sun, 22 Jun 2025 07:01:06 +0000 retitle 22497 parted math - Q2 and Q3 ? reassign 22497 parted submitter 22497 Chris Johnson severity 22497 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 17:47:08 2016 Received: (at submit) by debbugs.gnu.org; 30 Jan 2016 22:47:08 +0000 Received: from localhost ([127.0.0.1]:42373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPeIO-0000EB-BF for submit@debbugs.gnu.org; Sat, 30 Jan 2016 17:47:08 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55885) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPdgX-0007jI-Fz for submit@debbugs.gnu.org; Sat, 30 Jan 2016 17:08:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPdgR-0007qz-7Q for submit@debbugs.gnu.org; Sat, 30 Jan 2016 17:07:56 -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]:33514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPdgR-0007qv-4M for submit@debbugs.gnu.org; Sat, 30 Jan 2016 17:07:55 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPdgP-0000CN-N2 for bug-parted@gnu.org; Sat, 30 Jan 2016 17:07:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPdgM-0007qg-Fp for bug-parted@gnu.org; Sat, 30 Jan 2016 17:07:53 -0500 Received: from mout.perfora.net ([74.208.4.197]:62267) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPdgM-0007qZ-84 for bug-parted@gnu.org; Sat, 30 Jan 2016 17:07:50 -0500 Received: from [192.168.1.6] ([108.28.57.123]) by mrelay.perfora.net (mreueus002) with ESMTPSA (Nemesis) id 0Lb3fT-1ZfHR61aLB-00kdNq for ; Sat, 30 Jan 2016 23:07:49 +0100 Message-ID: <56AD3345.4070701@tothemax.us> Date: Sat, 30 Jan 2016 17:03:49 -0500 From: Chris Johnson 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@gnu.org Subject: parted math - Q2 and Q3 ? Content-Type: multipart/alternative; boundary="------------070308050309040006090806" X-Provags-ID: V03:K0:GiIIV/qB60YcSRsj8lYam8yItWKoWEvbtnrqQGvtCRNjqIrnQ1J +9i1+6F8mTACiIApfctk8gfWHqOg4xBRBQ6/VMIneXEzXn2JZtg94EiD4L1ejS55k2HegOy g1Ma5NUckQfuppMkJMKVMsCh8A+YyQJrj8xdUl6+Mi7xHgjuUupod6IpO74OK3F08wfmt1A Ctw7tTfpTwDBnyQZP5/bw== X-UI-Out-Filterresults: notjunk:1;V01:K0:lFZe7HLtV6o=:LPFtwvzDC6GwI8mDyWmFnY 3o31elEL3q4rx8f/O/2vvtQwDyKAJLTJ/0s38/WkG0t8dYT+iKAeXKheAZu1bUNW/qsGEdeQJ AMenyEWMdxlNFoJv7FJpnopw6q6z9f4STClrFnMCZcCzaqQP2U7nohStO6J8JMUowhGFicdLT FJsW+8kldxXGu9EIQlCnOo3G2llN6UNV6GzizbVLOygs3IatzzI/mw+firgPozEi8dJA+ZhpZ WhvolJMbYub5w0PDfxCcMjIGO1tpOycXMwlI6BTZ6v2AwRcqPW+8M4RDWYnb0R2HMaO3e+1H2 zAsycRzFBY7YRPv0M09llTfkhAp8FhhJimQgecWS5RqkH4zms59V2EfyiTC3Y6w3ClwXotv5l WqCcRWpBT23NhRzmUglvkYlp32MzOvdwJN6IkOPc9f0YSbrCaYP04PD9ezC8M78lqtjDkFMFr ex0oLgTiSQgMAXDUpNlrKf/hcVAnaXwelO9KoqqFezTBAR8p9b5f62DGVcMVS4sPSQMy0EQ4+ Dmdt2NxTQEpmqF4xx6E2fRmx7uKpbUPTX4dDf+1dZ1VZXUderZiLP8FnL3+96eadBD0DrZ/Mu kbSV5+TKWrhhzm7la9hDKPo5U9L63B4MP3q6Yx2adZF65LMVpnyRhWKVJ0gp+l1M4OHh+yOMu 6NEnLCt/7P+cTj8cz2+hdI9HrsUGcmzoQ1yZCjT+hEr0vfZVMqHsvqOAEN9388J5CX26Q0nlY hLEtwX+ocNTIFtg4 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) This is a multi-part message in MIME format. --------------070308050309040006090806 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit # 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 2)* Based on the parted information shown above, I would assume that the Total Sectors could be calculated thus: 121601 * 255 * 63 = 1953520065 Indeed, *g*parted shows this value when you look at the disk device information. Alas, when I switch to units of sectors I get a different value!!! (parted) unit s unit s (parted) p p Model: Generic Ide (ide) Disk /dev/rdsk/c7t1d0p0: 1953525168s <--------- Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 256s 1953508750s 1953508495s zfs 9 1953508751s 1953525134s 16384s *Question 3)* When I look at the information above where units are sectors, it is clear that the "End" sector number is the last sector being used in the partition. This is supported in the above example by the fact that partition 9's first sector number is one higher than the End sector number of partition 1. Alas, when looking at the information in units of cylinders, it seems like there is a change in meaning. Number Start End Size File system Name Flags 1 0cyl 121600cyl 121600cyl zfs 9 121600cyl 121601cyl 1cyl If there are 121600 cylinders in partition 1 and the first of those is cylinder number 0, I would expect the ENDing cylinder number to be 121599. This expectation would also seem reasonable given that the starting cylinder number for partition 9 is 121600. Hmmm, perhaps what I am looking at is how parted displays information when partitions are not sized to end on a cylinder boundary? It likely is the case that partition 1 does not nicely end with the last sector of cylinder 121599 but instead has some sectors in cylinder 121600 and furthermore that partition 9's starting sector is also in cylinder 121600 ... Is that what's going on here? Given that this drive is SSD and the whole cylinder,head,sector thing is all a mirage, I assume there is no value to trying to align the partitions to cylinder boundaries. Thanks for your insight. --------------070308050309040006090806 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit # 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 2)

Based on the parted information shown above, I would assume that the Total Sectors could be calculated thus:

                    121601 * 255 * 63 = 1953520065
Indeed, gparted  shows this value when you look at the disk device information.

Alas, when I switch to units of sectors I get a different value!!!

(parted) unit s                                                          
unit s
(parted) p                                                               
p
Model: Generic Ide (ide)
Disk /dev/rdsk/c7t1d0p0: 1953525168s   <---------
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start        End          Size         File system  Name  Flags
 1      256s         1953508750s  1953508495s               zfs
 9      1953508751s  1953525134s  16384s



Question 3)

When I look at the information above where units are sectors, it is clear that the "End" sector number is the last sector being used in the partition.  This is supported in the above example by the fact that partition 9's first sector number is one higher than the End sector number of partition 1.

Alas, when looking at the information in units of cylinders, it seems like there is a change in meaning.

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

If there are  121600 cylinders in partition 1  and the first of those is cylinder number 0, I would expect the ENDing cylinder number to be 121599.
This expectation would also seem reasonable given that the starting cylinder number for partition 9 is
121600.

Hmmm, perhaps what I am looking at is how parted displays information when partitions are not sized to end on a cylinder boundary?

It likely is the case that partition 1 does not nicely end with the last sector of cylinder
121599 but instead has some sectors in cylinder 121600 and furthermore that partition 9's starting sector is also in cylinder 121600 ... 
Is that what's going on here?

Given that this drive is SSD and the whole cylinder,head,sector thing is all a mirage, I assume there is no value to trying to align the partitions to cylinder boundaries.
 
Thanks for your insight.


--------------070308050309040006090806-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 08 08:55:50 2016 Received: (at 22497-done) by debbugs.gnu.org; 8 Feb 2016 13:55:50 +0000 Received: from localhost ([127.0.0.1]:38157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSmIA-0001lb-Kh for submit@debbugs.gnu.org; Mon, 08 Feb 2016 08:55:50 -0500 Received: from mail-yw0-f179.google.com ([209.85.161.179]:36069) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSmI9-0001lP-2p for 22497-done@debbugs.gnu.org; Mon, 08 Feb 2016 08:55:49 -0500 Received: by mail-yw0-f179.google.com with SMTP id q190so102039503ywd.3 for <22497-done@debbugs.gnu.org>; Mon, 08 Feb 2016 05:55:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=k3F/j7FXMRKbDsZd3d//1HaAPrgn98Dt3TBuIttmuFQ=; b=H9K2gbs5NQ987O+/VSRHOgcjI+kHb2kS3lW+dy0ytpQjTW8VCYeyvypSG2lXjXRJFy E2oE8mcrdweJptVFbuTPuSfXLCDk0BqZeXj6bRZBqNqEUBGB4JQWtt3rIdk6xykmZZrx s5ZYqCVbXK6Q6lI3U8Gyms6Bvc/SUEbYqNTwSjvA1qgNJ2ll2j+eGGWCyzpzZjSSD3uI IUvxygUHzaDJml+5WPU8oC0WhPCnRo39ag/jSgsRpcY1TBXMSlF4unpP5nJf7MXh4v7B eyOu1fMIdOhpwN1cc7dB1qqsfqguSsoUnwJoy0N4IvfwReP38DxxbCa6OsPMe+J2jKv2 aMTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=k3F/j7FXMRKbDsZd3d//1HaAPrgn98Dt3TBuIttmuFQ=; b=E10kObyBxZQKoCu0gfpdU6JN/C5SGYfjX3oyX6yPgzBK6GsQf7eyNeQ+MhD78Bdnjf SgV+tDwiD7rSiLmZvFz30V8zXCeIpoqmQTORMQxuhfvqZYEGPyRz03zQ7nw2HqmJNM4/ nOfNh4n+SvjdMd/G7gpPCWUz2pJkxzMxaKvAz+Jh1E/CpidXESJYtSC5TPy/GU9vJOQA beAFETPaTpGEdyFY+L/rhgBKu0V0TIDVU90Ype5R9DIPy8g3Ur0c1bzYtC0q8BCnqhm/ W0MqUhYomujFtKxUbkAE+cZxsWg3UjKhNl7t5yRKhShPwAxankexUyogSIMi7Nb3igkn Z2Vw== X-Gm-Message-State: AG10YOTV22MrShuaX60U3LdrcEa2ZGje0k0ovWQICwGmScvKS3JcyeILJpRwhk311d3OnQ== X-Received: by 10.13.255.4 with SMTP id p4mr13935627ywf.54.1454939743622; Mon, 08 Feb 2016 05:55:43 -0800 (PST) Received: from [10.1.1.179] (fl-67-77-88-12.sta.embarqhsd.net. [67.77.88.12]) by smtp.googlemail.com with ESMTPSA id z129sm20913222ywb.26.2016.02.08.05.55.42 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 08 Feb 2016 05:55:42 -0800 (PST) Subject: Re: bug#22497: parted math - Q2 and Q3 ? To: Chris Johnson , 22497-done@debbugs.gnu.org References: <56AD3345.4070701@tothemax.us> From: Phil Susi Message-ID: <56B89E76.3000708@ubuntu.com> Date: Mon, 8 Feb 2016 08:56:06 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56AD3345.4070701@tothemax.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22497-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On 1/30/2016 5:03 PM, Chris Johnson wrote: > It likely is the case that partition 1 does not nicely end with the last > sector of cylinder 121599 but instead has some sectors in cylinder > 121600 and furthermore that partition 9's starting sector is also in > cylinder 121600 ... > Is that what's going on here? > > Given that this drive is SSD and the whole cylinder,head,sector thing is > all a mirage, I assume there is no value to trying to align the > partitions to cylinder boundaries. Yes. The bottom line is: don't use cylinder mode. It is a 30 year old anachronism that is now just a lie with no basis in reality. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 08 08:57:02 2016 Received: (at 22497-done) by debbugs.gnu.org; 8 Feb 2016 13:57:02 +0000 Received: from localhost ([127.0.0.1]:38164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSmJJ-0001ny-Tm for submit@debbugs.gnu.org; Mon, 08 Feb 2016 08:57:02 -0500 Received: from mail-yk0-f175.google.com ([209.85.160.175]:34365) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSmJI-0001nU-Gg for 22497-done@debbugs.gnu.org; Mon, 08 Feb 2016 08:57:00 -0500 Received: by mail-yk0-f175.google.com with SMTP id u9so86944865ykd.1 for <22497-done@debbugs.gnu.org>; Mon, 08 Feb 2016 05:57:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=JYmBxCvxE428XZ5zZnjdjiusKz13Q09pK0IARe48T5A=; b=Hnc2Zx8WXXfUPDexERjkgt9WFT5VpSc3mDDXNS6ey0jSm8dF6TU4jMDgwXm9NU63M3 +GlCYyff6l6mnUaAV/5kZcydxdfxaqEssPnP67rUzMSgk5lIsj12ZExucK51mGJEf0lv V1yjIzzm3sF9qkRAINJnL4AkdF74BdOueQ0HADh51UA+Dt6LEDHe/80MuG6X229FQeLM CR8IIQFOiMhqAUSoIe2thYBxuxNT5JWGVLOhsgZvpwdjS69l+RmBYZqGLS9lxYA4e/ej NtIIBTBhQQ3L3kZFSupY4VGn+2o6CdLfdWndoZnZaXusDoSfMzHANLj31cS87zGkBcSl Zf3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=JYmBxCvxE428XZ5zZnjdjiusKz13Q09pK0IARe48T5A=; b=KFo2qgBsbDHyB8H2nMa5QQuesS0aLzVloGZMd64eOxC8GNacXTKcthtIy+hg7CK3sR EVPHGPeM/KtnwFPDYi3lHsC00fHZyLS3yKu4uBSJfITowMik5mrhQFbBbIXmLZ/sgFWO 0A8WCCQTN354uYgg/3XTUjQuXdgVLKZAHHObKu6toatxsJhvtRi2cv3X7H+4AvmOIaLs baK7vr5EXhubzPGvYYNl7C2mV+c3nvyMAOGFFTY4fvW23tpG85GeYdJo7hqMNVQzPNHg QSUxyPB06qNKi77e0VKOG9ZzV9Qk3F/j0TQ0w3XqvPma5q30I9wxFUJVmL/NpNlaas0m GNyQ== X-Gm-Message-State: AG10YORlJdfRFg2SrrZIX5hYAR3dWLkmXRK3j10yhU9X8hXeUryDWisQ55LqQ7krTTgN0g== X-Received: by 10.37.25.193 with SMTP id 184mr15031821ybz.47.1454939815143; Mon, 08 Feb 2016 05:56:55 -0800 (PST) Received: from [10.1.1.179] (fl-67-77-88-12.sta.embarqhsd.net. [67.77.88.12]) by smtp.googlemail.com with ESMTPSA id h129sm20916493ywf.56.2016.02.08.05.56.54 for <22497-done@debbugs.gnu.org> (version=TLSv1/SSLv3 cipher=OTHER); Mon, 08 Feb 2016 05:56:54 -0800 (PST) Subject: Re: bug#22497: parted math - Q2 and Q3 ? To: 22497-done@debbugs.gnu.org References: <56AD3345.4070701@tothemax.us> From: Phil Susi Message-ID: <56B89EBE.7010302@ubuntu.com> Date: Mon, 8 Feb 2016 08:57:18 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56AD3345.4070701@tothemax.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22497-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) duplicate of #22387 From unknown Sun Jun 22 00:01:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 08 Mar 2016 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator