查看硬盘相关命令

dhso
2019/09/27 13:50
统计中

lsblk

查看硬盘分区情况

NAME          MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda             8:0    0  14.9G  0 disk 
├─sda1          8:1    0   512M  0 part /boot/efi
├─sda2          8:2    0   8.8G  0 part /
└─sda3          8:3    0   5.7G  0 part [SWAP]
sdb             8:16   0 465.8G  0 disk 
└─sdb1          8:17   0 465.8G  0 part 
  └─nas-data  254:0    0 465.8G  0 lvm  /srv/dev-disk-by-id-dm-name-nas-data
sdc             8:32   0   1.8T  0 disk 
└─nas-data_02 254:1    0   1.8T  0 lvm  /srv/dev-disk-by-id-dm-name-nas-data_02

hdparm -C /dev/sd*

查看硬盘休眠状态

/dev/sda:
 drive state is:  active/idle

/dev/sda1:
 drive state is:  active/idle

/dev/sda2:
 drive state is:  active/idle

/dev/sda3:
 drive state is:  active/idle

/dev/sdb:
 drive state is:  active/idle

/dev/sdb1:
 drive state is:  active/idle

/dev/sdc:
 drive state is:  standby

本文为 dhso 原创

发布在 http://blog.minws.com/cha-kan-ying-pan-xiang-guan-ming-ling/

如有转载,请标明来源!

作者信息
姓名:dhso
热评文章
最新评论
文章概览