1.查看硬盘型号
fdisk -l //查看你的硬盘编号,如sda,sdb 等
[root@root web]# fdisk -l
Disk /dev/sda: 300.0 GB, 299966445568 bytes, 585871964 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
Disk label type: dos
Disk identifier: 0x000aaaaa
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 33794047 16384000 82 Linux swap / Solaris
/dev/sda3 33794048 34818047 512000 6 FAT16
/dev/sda4 34818048 585871359 275526656 5 Extended
/dev/sda5 34820096 585871359 275525632 83 Linux
硬盘的读写是以sector扇区为单位,1扇区是512bytes;操作系统是对硬盘的读写是以block块为单位 1块是 8 * 512bytes = 4K
2.查详细硬盘信息
smartctl --all /d