GNU bug report logs -
#18920
Parted always chooses the logical sector size.
Previous Next
Reported by: dE <de.techno <at> gmail.com>
Date: Sat, 1 Nov 2014 17:02:03 UTC
Severity: normal
Done: Phillip Susi <psusi <at> ubuntu.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18920 in the body.
You can then email your comments to 18920 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-parted <at> gnu.org
:
bug#18920
; Package
parted
.
(Sat, 01 Nov 2014 17:02:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
dE <de.techno <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-parted <at> gnu.org
.
(Sat, 01 Nov 2014 17:02:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Can someone please add an option to set the sector size to custom or/and
the physical sector size?
Information forwarded
to
bug-parted <at> gnu.org
:
bug#18920
; Package
parted
.
(Sat, 01 Nov 2014 21:17:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 18920 <at> debbugs.gnu.org (full text, mbox):
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
On 11/01/2014 07:10 AM, dE wrote:
> Can someone please add an option to set the sector size to custom
> or/and the physical sector size?
Why? Not using the correct sector size doesn't make sense and will
result in incorrect operation.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBCgAGBQJUVU26AAoJENRVrw2cjl5RVygH/i6tpaWM2gTYL8bIBfgs4fdH
v//RTXsaZt+NjMN+CFDqITn+/T6gMlIrmYqAenG/Sk57Oncyd1wC2Sjv/x3N8Ggn
p3s7GzOHGaqYmp7bTPnVLCud08MB6qfycL2reeMj3BlspceDVGOhMY0fdz8SYtBI
YkYisLBlT33P6xlnF66BqWci8EAe1qVOV2LyfHgNS9UqaWRX8siE41IoXvcXqbCX
fMckf/aw1N+eqIswl9QxmLqT8p422T08EMKbgg83jmaBOYzwVV4bCW/ktMU9b0Im
qWh1QwrrnbCNxqqf/0jsX4VrS28GivTFOQVq20wHtOiWzBVemy4HiHRS6n7lr44=
=X5Tq
-----END PGP SIGNATURE-----
Information forwarded
to
bug-parted <at> gnu.org
:
bug#18920
; Package
parted
.
(Sun, 02 Nov 2014 03:38:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 18920 <at> debbugs.gnu.org (full text, mbox):
On 11/02/14 02:46, Phillip Susi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> On 11/01/2014 07:10 AM, dE wrote:
>> Can someone please add an option to set the sector size to custom
>> or/and the physical sector size?
> Why? Not using the correct sector size doesn't make sense and will
> result in incorrect operation.
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
>
> iQEcBAEBCgAGBQJUVU26AAoJENRVrw2cjl5RVygH/i6tpaWM2gTYL8bIBfgs4fdH
> v//RTXsaZt+NjMN+CFDqITn+/T6gMlIrmYqAenG/Sk57Oncyd1wC2Sjv/x3N8Ggn
> p3s7GzOHGaqYmp7bTPnVLCud08MB6qfycL2reeMj3BlspceDVGOhMY0fdz8SYtBI
> YkYisLBlT33P6xlnF66BqWci8EAe1qVOV2LyfHgNS9UqaWRX8siE41IoXvcXqbCX
> fMckf/aw1N+eqIswl9QxmLqT8p422T08EMKbgg83jmaBOYzwVV4bCW/ktMU9b0Im
> qWh1QwrrnbCNxqqf/0jsX4VrS28GivTFOQVq20wHtOiWzBVemy4HiHRS6n7lr44=
> =X5Tq
> -----END PGP SIGNATURE-----
Yes, on a 4K disk, choosing 512 bytes sector size is bad. This's what
parted does as of the current time cause it chooses the logical sector
size instead of physical.
Information forwarded
to
bug-parted <at> gnu.org
:
bug#18920
; Package
parted
.
(Mon, 03 Nov 2014 21:55:02 GMT)
Full text and
rfc822 format available.
Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):
On Sun, Nov 02, 2014 at 02:37:09PM +0530, dE wrote:
> On 11/02/14 02:46, Phillip Susi wrote:
> >-----BEGIN PGP SIGNED MESSAGE-----
> >Hash: SHA512
> >
> >On 11/01/2014 07:10 AM, dE wrote:
> >>Can someone please add an option to set the sector size to custom
> >>or/and the physical sector size?
> >Why? Not using the correct sector size doesn't make sense and will
> >result in incorrect operation.
> >
> >
> >-----BEGIN PGP SIGNATURE-----
> >Version: GnuPG v1
> >
> >iQEcBAEBCgAGBQJUVU26AAoJENRVrw2cjl5RVygH/i6tpaWM2gTYL8bIBfgs4fdH
> >v//RTXsaZt+NjMN+CFDqITn+/T6gMlIrmYqAenG/Sk57Oncyd1wC2Sjv/x3N8Ggn
> >p3s7GzOHGaqYmp7bTPnVLCud08MB6qfycL2reeMj3BlspceDVGOhMY0fdz8SYtBI
> >YkYisLBlT33P6xlnF66BqWci8EAe1qVOV2LyfHgNS9UqaWRX8siE41IoXvcXqbCX
> >fMckf/aw1N+eqIswl9QxmLqT8p422T08EMKbgg83jmaBOYzwVV4bCW/ktMU9b0Im
> >qWh1QwrrnbCNxqqf/0jsX4VrS28GivTFOQVq20wHtOiWzBVemy4HiHRS6n7lr44=
> >=X5Tq
> >-----END PGP SIGNATURE-----
>
> Yes, on a 4K disk, choosing 512 bytes sector size is bad. This's what parted
> does as of the current time cause it chooses the logical sector size instead
> of physical.
Assuming you are talking about linux -- parted uses the logical sector
size returned by the kernel, which gets it from the drive. We don't set
to 512 arbitrarily. So if there is an actual problem it should be
reported against the kernel.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
Information forwarded
to
bug-parted <at> gnu.org
:
bug#18920
; Package
parted
.
(Tue, 04 Nov 2014 14:57:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 18920 <at> debbugs.gnu.org (full text, mbox):
On 11/04/14 03:24, Brian C. Lane wrote:
> On Sun, Nov 02, 2014 at 02:37:09PM +0530, dE wrote:
>> On 11/02/14 02:46, Phillip Susi wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA512
>>>
>>> On 11/01/2014 07:10 AM, dE wrote:
>>>> Can someone please add an option to set the sector size to custom
>>>> or/and the physical sector size?
>>> Why? Not using the correct sector size doesn't make sense and will
>>> result in incorrect operation.
>>>
>>>
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG v1
>>>
>>> iQEcBAEBCgAGBQJUVU26AAoJENRVrw2cjl5RVygH/i6tpaWM2gTYL8bIBfgs4fdH
>>> v//RTXsaZt+NjMN+CFDqITn+/T6gMlIrmYqAenG/Sk57Oncyd1wC2Sjv/x3N8Ggn
>>> p3s7GzOHGaqYmp7bTPnVLCud08MB6qfycL2reeMj3BlspceDVGOhMY0fdz8SYtBI
>>> YkYisLBlT33P6xlnF66BqWci8EAe1qVOV2LyfHgNS9UqaWRX8siE41IoXvcXqbCX
>>> fMckf/aw1N+eqIswl9QxmLqT8p422T08EMKbgg83jmaBOYzwVV4bCW/ktMU9b0Im
>>> qWh1QwrrnbCNxqqf/0jsX4VrS28GivTFOQVq20wHtOiWzBVemy4HiHRS6n7lr44=
>>> =X5Tq
>>> -----END PGP SIGNATURE-----
>> Yes, on a 4K disk, choosing 512 bytes sector size is bad. This's what parted
>> does as of the current time cause it chooses the logical sector size instead
>> of physical.
> Assuming you are talking about linux -- parted uses the logical sector
> size returned by the kernel, which gets it from the drive. We don't set
> to 512 arbitrarily. So if there is an actual problem it should be
> reported against the kernel.
>
Yes, the kernel reports both -- the logical and the physical. Parted
knows about it, it shows both the logical and physical sector size, but
then also it uses the logical sector size. It should not. There must be
an option at least, and I suggest it should be made the default
otherwise the partitions may start unaligned.
Information forwarded
to
bug-parted <at> gnu.org
:
bug#18920
; Package
parted
.
(Tue, 04 Nov 2014 16:41:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 18920 <at> debbugs.gnu.org (full text, mbox):
On Tue, Nov 04, 2014 at 08:26:24PM +0530, dE wrote:
> On 11/04/14 03:24, Brian C. Lane wrote:
> >Assuming you are talking about linux -- parted uses the logical sector
> >size returned by the kernel, which gets it from the drive. We don't set
> >to 512 arbitrarily. So if there is an actual problem it should be
> >reported against the kernel.
> >
>
> Yes, the kernel reports both -- the logical and the physical. Parted knows
> about it, it shows both the logical and physical sector size, but then also
> it uses the logical sector size. It should not. There must be an option at
> least, and I suggest it should be made the default otherwise the partitions
> may start unaligned.
Can you cite specific instances of problems using the logical size?
Every tool that I am aware of uses it. As for not aligning parted
defaults to 1MiB so unless you are forcing it to a specific sector you
aren't going to see an issue.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
Information forwarded
to
bug-parted <at> gnu.org
:
bug#18920
; Package
parted
.
(Wed, 05 Nov 2014 03:29:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 18920 <at> debbugs.gnu.org (full text, mbox):
On 11/04/14 22:10, Brian C. Lane wrote:
> On Tue, Nov 04, 2014 at 08:26:24PM +0530, dE wrote:
>> On 11/04/14 03:24, Brian C. Lane wrote:
>>> Assuming you are talking about linux -- parted uses the logical sector
>>> size returned by the kernel, which gets it from the drive. We don't set
>>> to 512 arbitrarily. So if there is an actual problem it should be
>>> reported against the kernel.
>>>
>> Yes, the kernel reports both -- the logical and the physical. Parted knows
>> about it, it shows both the logical and physical sector size, but then also
>> it uses the logical sector size. It should not. There must be an option at
>> least, and I suggest it should be made the default otherwise the partitions
>> may start unaligned.
> Can you cite specific instances of problems using the logical size?
> Every tool that I am aware of uses it. As for not aligning parted
> defaults to 1MiB so unless you are forcing it to a specific sector you
> aren't going to see an issue.
>
Yeah, I'm forcing to a specific sector.
And in case you're doing that, this can cause some serious issues.
Besides the 512 sector size was included for compatibility purposes. So
parted using that is pointless.
Reply sent
to
Phillip Susi <psusi <at> ubuntu.com>
:
You have taken responsibility.
(Wed, 05 Nov 2014 19:32:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
dE <de.techno <at> gmail.com>
:
bug acknowledged by developer.
(Wed, 05 Nov 2014 19:32:03 GMT)
Full text and
rfc822 format available.
Message #28 received at 18920-done <at> debbugs.gnu.org (full text, mbox):
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11/4/2014 9:56 AM, dE wrote:
> Yes, the kernel reports both -- the logical and the physical.
> Parted knows about it, it shows both the logical and physical
> sector size, but then also it uses the logical sector size. It
> should not. There must be an option at least, and I suggest it
> should be made the default otherwise the partitions may start
> unaligned.
Incorrect: the logical sector size is what the drive uses to address
sectors, and therefore, how all software, including partitioning tools
addresses the drive. The physical sector size is only provided as a
hint about the internal structure of the disk because it can have
performance implications. Partitioning tools use this information to
pick the optimal alignment. If you run parted -a min, it will take
care to align partitions to a 4k boundary, aka a multiple of 8 logical
sectors.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
iQEcBAEBAgAGBQJUWnrZAAoJEI5FoCIzSKrwIyoH/izigrpVziWEeCfvPy6Wp9P1
FJ9HF4Lp4m1/szSVYYi7TvoUolmOUqMdt14HC179GNI7hFw0ktBTx5E4M+2WDtCO
6ThtLbqugfNQbZETb7nISOEKwMqf+k1s35fvHNB1ZggwOdNHBvS6JsDRvjDD6+gB
WkkACB3ZD94WfRlMmx6ML4WGyY8NxK4c2zXQvFXIb8bd9bsUYKjNe7NE4hSX0Cez
g5hbfjqKyrcNxPiq0J7qHY01JHTgeFJ8eGr+x0WMNXeVADrCKc/TWK+BuH4F2/sR
TBSvYRDZP0DNxIXE6542Ee+d7Ed7SKf1INI041SxkYh64cKLd0/g+sh4+IRBPVY=
=4nVE
-----END PGP SIGNATURE-----
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 04 Dec 2014 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 200 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.