磁盘扇区
引用维基百科:
In computer disk storage, a sector is a subdivision of a track on a magnetic disk or optical disc. Each sector stores a fixed amount of user-accessible data, traditionally 512 bytes for hard disk drives (HDDs) and 2048 bytes for CD-ROMs and DVD-ROMs. Newer HDDs use 4096-byte (4 KiB) sectors, which are known as the Advanced Format (AF).
扇区大小常见的可以分为 512 bytes, 2048 bytes 和 4096 bytes。
查看扇区大小
通过 lsblk 命令可以查看。
物理扇区 512 byte:
1 | [root@yiran 20:51:59 ~]$lsblk -o NAME,PHY-SEC,LOG-SEC /dev/sdg |
物理扇区 4096 byte:
1 | [root@yiran 20:52:03 ~]$lsblk -o NAME,PHY-SEC,LOG-SEC /dev/sdb |
CDROM 比较特殊,是 2048 byte:
1 | [root@yiran 21:07:35 ~]$lsblk -o NAME,PHY-SEC,LOG-SEC /dev/sr0 |