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

Re: выравнивание раздела: кому верить, fdisk или parted?



On Wed, 4 Dec 2019, Max Kosmach wrote:



4 декабря 2019 г. 3:03:02 GMT+03:00, Sergey Spiridonov <sena@s73.work> пишет:


Disk /dev/sdd: 12,8 TiB, 14000519643136 bytes, 27344764928 sectors
Disk model: IB-366StU3+B
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes


Device     Start         End     Sectors  Size Type
/dev/sdd1  65535 27344740889 27344675355 12,8T Linux filesystem

Partition 1 does not start on physical sector boundary.

Вроде ж правда написана - 512*65535 не кратно 4к?

  Так ведь и не должна быть кратной.

  Запрошено: > parted -a opt /dev/sdd
  ман parted
  optimal
                     Use optimum alignment as given by the disk  topology  in‐
                     formation.  This  aligns  to  a  multiple of the physical
                     block size in a way that guarantees optimal performance.

  Так и сделали оптимальной.
  А если надо было что бы по границе то
                cylinder
                     Align partitions to cylinders.

  Или
              minimal
                     Use minimum alignment as given by the disk  topology  in‐
                     formation.  This and the opt value will use layout infor‐
                     mation provided by the disk to align the  logical  parti‐
                     tion  table  addresses  to  actual physical blocks on the
                     disks.  The min value is the minimum alignment needed  to
                     align  the  partition  properly to physical blocks, which
                     avoids performance degradation.


  Опять же, что спрошено, то и получено...
Ю.

Reply to: