Linux fdisk and partition alignment on SDD and Advanced Format HDD
Many people know about the need to align sections on SSDs. In addition to SSD, there are more and more hard disks with a size of 4096 bytes, so-called. Advanced Format, for example, Western Digital Green Series (EARS) with a capacity of 640 GB and more. The speed of access to data on such disks drops significantly, if the partitions are not aligned. This usually means that the first section begins in the old manner from sector 63, and the rest from sectors whose numbers are not a multiple of 8. In Linux, such disks can be easily divided into “even” partitions by the standard fdisk utility, it is enough to run fdisk with the –c key to disable the “DOS mode compatibility mode”. You can also use -u to display sizes in sectors instead of cylinders, for clarity. The process of creating partitions is normal, but fdisk will select sectors that are multiples of 8 as initial for each partition, and even reserve the “necessary” 48 sectors between logical partitions. Well, not a miracle?