博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
linux 硬盘信息查看
阅读量:5332 次
发布时间:2019-06-14

本文共 3870 字,大约阅读时间需要 12 分钟。

hdparm命令磁盘管理hdparm命令提供了一个命令行的接口用于读取和设置IDE或SCSI硬盘参数。语法hdparm(选项)(参数)选项-a
<快取分区>
:设定读取文件时,预先存入块区的分区数,若不加上
<快取分区>
选项,则显示目前的设定;-A<0或1>:启动或关闭读取文件时的快取功能;-c
:设定IDE32位I/O模式;-C:检测IDE硬盘的电源管理模式;-d<0或1>:设定磁盘的DMA模式;-f:将内存缓冲区的数据写入硬盘,并清楚缓冲区;-g:显示硬盘的磁轨,磁头,磁区等参数;-h:显示帮助;-i:显示硬盘的硬件规格信息,这些信息是在开机时由硬盘本身所提供;-I:直接读取硬盘所提供的硬件规格信息;-k<0或1>:重设硬盘时,保留-dmu参数的设定;-K<0或1>:重设硬盘时,保留-APSWXZ参数的设定;-m
<磁区数>
:设定硬盘多重分区存取的分区数;-n<0或1>:忽略硬盘写入时所发生的错误;-p
:设定硬盘的PIO模式;-P
<磁区数>
:设定硬盘内部快取的分区数;-q:在执行后续的参数时,不在屏幕上显示任何信息;-r<0或1>:设定硬盘的读写模式;-S
<时间>
:设定硬盘进入省电模式前的等待时间;-t;评估硬盘的读取效率;-T:平谷硬盘快取的读取效率;-u<0或1>:在硬盘存取时,允许其他中断要求同时执行;-v:显示硬盘的相关设定;-w<0或1>:设定硬盘的写入快取;-X
<传输模式>
:设定硬盘的传输模式;-y:使IDE硬盘进入省电模式;-Y:使IDE硬盘进入睡眠模式;-Z:关闭某些Seagate硬盘的自动省电功能。

  

 查看硬盘信息如下:

[root@dl] dev # hdparm -I /dev/sdd/dev/sdd:ATA device, with non-removable media	Model Number:       WDC WD1003FBYX-01Y7B1                   	Serial Number:      WD-WMAW31037763	Firmware Revision:  01.01V02	Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0Standards:	Supported: 8 7 6 5 	Likely used: 8Configuration:	Logical		max	current	cylinders	16383	16383	heads		16	16	sectors/track	63	63	--	CHS current addressable sectors:   16514064	LBA    user addressable sectors:  268435455	LBA48  user addressable sectors: 1953525168	Logical/Physical Sector size:           512 bytes	device size with M = 1024*1024:      953869 MBytes	device size with M = 1000*1000:     1000204 MBytes (1000 GB)	cache/buffer size  = unknown	Nominal Media Rotation Rate: 7200Capabilities:	LBA, IORDY(can be disabled)	Queue depth: 32	Standby timer values: spec'd by Standard, with device specific minimum	R/W multiple sector transfer: Max = 16	Current = 0	Advanced power management level: 128	DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 	     Cycle time: min=120ns recommended=120ns	PIO: pio0 pio1 pio2 pio3 pio4 	     Cycle time: no flow control=120ns  IORDY flow control=120nsCommands/features:	Enabled	Supported:	   *	SMART feature set	    	Security Mode feature set	   *	Power Management feature set	   *	Write cache	   *	Look-ahead	   *	Host Protected Area feature set	   *	WRITE_BUFFER command	   *	READ_BUFFER command	   *	NOP cmd	   *	DOWNLOAD_MICROCODE	   *	Advanced Power Management feature set	    	Power-Up In Standby feature set	   *	SET_FEATURES required to spinup after power up	    	SET_MAX security extension	   *	48-bit Address feature set	   *	Device Configuration Overlay feature set	   *	Mandatory FLUSH_CACHE	   *	FLUSH_CACHE_EXT	   *	SMART error logging	   *	SMART self-test	   *	General Purpose Logging feature set	   *	WRITE_{DMA|MULTIPLE}_FUA_EXT	   *	64-bit World wide name	   *	IDLE_IMMEDIATE with UNLOAD	   *	WRITE_UNCORRECTABLE_EXT command	   *	{READ,WRITE}_DMA_EXT_GPL commands	   *	Segmented DOWNLOAD_MICROCODE	    	unknown 119[7]	   *	Gen1 signaling speed (1.5Gb/s)	   *	Gen2 signaling speed (3.0Gb/s)	   *	Native Command Queueing (NCQ)	   *	Phy event counters	   *	Idle-Unload when NCQ is active	   *	NCQ priority information	    	DMA Setup Auto-Activate optimization	   *	Software settings preservation	   *	SMART Command Transport (SCT) feature set	   *	SCT Long Sector Access (AC1)	   *	SCT LBA Segment Access (AC2)	   *	SCT Error Recovery Control (AC3)	   *	SCT Features Control (AC4)	   *	SCT Data Tables (AC5)	    	unknown 206[12] (vendor specific)	    	unknown 206[13] (vendor specific)Security: 	Master password revision code = 65534		supported	not	enabled	not	locked	not	frozen	not	expired: security count		supported: enhanced erase	168min for SECURITY ERASE UNIT. 168min for ENHANCED SECURITY ERASE UNIT.Logical Unit WWN Device Identifier: 50014ee206d4f4ba	NAA		: 5	IEEE OUI	: 0014ee	Unique ID	: 206d4f4baChecksum: correct[root@dl-dns1:Active:In Sync] dev #

  

 

转载于:https://www.cnblogs.com/zy09/p/10998075.html

你可能感兴趣的文章
MySQL-EXPLAIN执行计划Extra解释
查看>>
Zookeeper概述
查看>>
Zookeeper一致性级别
查看>>
单例模式的几种实现方式及对比
查看>>
第十二周学习记录
查看>>
HDU 1712 ACboy needs your help (分组背包模版题)
查看>>
共享内存
查看>>
从零开始学JavaWeb
查看>>
Tomcat源码浅析
查看>>
Codeforces Round #256 (Div. 2) Multiplication Table
查看>>
计算三球交点坐标的快速算法
查看>>
HDU 1269 迷宫城堡
查看>>
my_ls-ailh
查看>>
Extjs介绍(二)
查看>>
jQuery中$.ajax知识点总结
查看>>
微信小程序开发7-JavaScript脚本
查看>>
leetcode-78-子集
查看>>
LINUX进程小结
查看>>
公告会看门道:四个不同的厨师和史蒂夫·乔布斯
查看>>
HDU 1983 BFS&amp;&amp;DFS
查看>>