斯文书生
deepin
2021-11-09 21:11 4k对齐是windows的事情,linux不用管他
Reply Like 0 View the author
4k对齐是windows的事情,linux不用管他
[zzz@kkk ~]$sudo fdisk -lu /dev/sda
Disk /dev/sda: 107.4 GB, 107374182400 bytes
16 heads, 63 sectors/track, 208050 cylinders, total 209715200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x5ce7c164
Device Boot Start End Blocks Id System
/dev/sda1 2063376 209714399 103825512 5 Extended
/dev/sda2 2063439 209714399 103825480+ 83 Linux
start开始的扇区能不能被8整除,不能就表示没有4k对齐了,如果能整除就说明4k对其了。
现在的分区工具一般都自动对齐了
一般来说 使用硬盘的字节数 / 4096. 如果是整数 就代表对齐了。
Deepin 20.2.4 上的 fdisk 的文档中可以看到,按它的默认操作都是4K 对齐了的。
man fdisk:
All partitioning is driven by device I/O limits (the topology) by default. fdisk is able to optimize the disk layout for a 4K-sector size and use an alignment offset on modern devices for MBR and GPT. It is always a good idea to follow fdisk's defaults as the default values (e.g. first and last partition sectors) and partition sizes specified by the +/-
{M,G,...} notation are always aligned according to the device properties.
Popular Events
More
UOS或deepin怎么查看固态硬盘4k对齐?