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.
Full log
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.
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.