bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18920: Parted always chooses the logical sector size.


From: dE
Subject: bug#18920: Parted always chooses the logical sector size.
Date: Tue, 04 Nov 2014 20:26:24 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.8.0

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]