硬盘信息
1、查看SATA通道和安装的硬盘
# dmesg | grep SATA ahci0: <ASMedia ASM1062 AHCI SATA controller> port 0xd050-0xd057,0xd040-0xd043,0xd030-0xd037,0xd020-0xd023,0xd000-0xd01f mem 0xdfd00000-0xdfd001ff irq 19 at device 0.0 on pci2 ahci1: <Intel ICH7 AHCI SATA controller> port 0xf0f0-0xf0f7,0xf0e0-0xf0e3,0xf0d0-0xf0d7,0xf0c0-0xf0c3,0xf020-0xf02f mem 0xdff04000-0xdff043ff irq 19 at device 31.2 on pci0 ada0: <HGST HTS541010A9E680 JA0OA560> ATA8-ACS SATA 3.x device ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada1: <WDC WD10EZEX-08M2NA0 01.01A01> ACS-2 ATA SATA 3.x device ada1: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes)
2、查看系统中的硬盘名称
# ls /dev/ad* /dev/ada0 /dev/ada0p1 /dev/ada0p2 /dev/ada1
3、查看硬盘基本信息
# diskinfo -v ada1 ada1 512 # sectorsize 1000204886016 # mediasize in bytes (932G) 1953525168 # mediasize in sectors 4096 # stripesize 0 # stripeoffset 1938021 # Cylinders according to firmware. 16 # Heads according to firmware. 63 # Sectors according to firmware. WD-WCC3F5772802 # Disk ident. Not_Zoned # Zone Mode
4、查看硬盘Smart信息及健康状态
smartctl -a /dev/ada1
5、查看硬盘分区信息
# gpart show => 34 1953525101 ada0 GPT (932G) 34 6 - free - (3.0K) 40 128 1 freebsd-boot (64K) 168 1953524960 2 freebsd-zfs (932G) 1953525128 7 - free - (3.5K)
相关内容
· 地理信息