<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.docking.org/index.php?action=history&amp;feed=atom&amp;title=How_to_Check_Harddrive_information</id>
	<title>How to Check Harddrive information - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.docking.org/index.php?action=history&amp;feed=atom&amp;title=How_to_Check_Harddrive_information"/>
	<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=How_to_Check_Harddrive_information&amp;action=history"/>
	<updated>2026-04-08T00:24:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>http://wiki.docking.org/index.php?title=How_to_Check_Harddrive_information&amp;diff=10139&amp;oldid=prev</id>
		<title>Benrwong: a small collection of commands for checking information regarding hard disk sizes, partitions, and capabilities</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=How_to_Check_Harddrive_information&amp;diff=10139&amp;oldid=prev"/>
		<updated>2017-06-09T20:56:45Z</updated>

		<summary type="html">&lt;p&gt;a small collection of commands for checking information regarding hard disk sizes, partitions, and capabilities&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Here are several commands that will allow us to check information regarding hard drives.  &lt;br /&gt;
&lt;br /&gt;
===fdisk: for hdd sizes/partitions===&lt;br /&gt;
fdisk is useful for checking the sizes and partitions of hard drives that are connected to a host.  Physical hard disks are usually given a name of /dev/sd[a-z].  Using the command as root:&lt;br /&gt;
 fdisk -l &lt;br /&gt;
will provide us information regarding all the physical hard disks that are located on the host and all the partitions that reside on those disks.  Non-physical disks are included in the output too.&lt;br /&gt;
&lt;br /&gt;
You will see devices such as: &lt;br /&gt;
 Disk /dev/sdc                                 // physical hard disk&lt;br /&gt;
 Disk /dev/md[0-10]                            // software raid volume&lt;br /&gt;
 Disk /dev/mapper/vg_system-lv_root            // logical volume&lt;br /&gt;
&lt;br /&gt;
===cat /proc/scsi/scsi for actual models of HDDs===&lt;br /&gt;
We have a variety of different HDD models we use from various companies.  We&amp;#039;ll often encounter an HDD we find to be reliable or a model we want to avoid altogether for the rest of our lives.  Since &amp;lt;br /&amp;gt;&lt;br /&gt;
we don&amp;#039;t always have physical access to the interior of a machine to check the HDD models, the easiest way to check what model is in a host is to check under /proc/scsi/scsi.  &lt;br /&gt;
 [root@he bulk]# cat /proc/scsi/scsi&lt;br /&gt;
 Attached devices:&lt;br /&gt;
 Host: scsi0 Channel: 00 Id: 00 Lun: 00&lt;br /&gt;
  Vendor: ATA      Model: Samsung SSD 840  Rev: BB6Q&lt;br /&gt;
  Type:   Direct-Access                    ANSI  SCSI revision: 05&lt;br /&gt;
 Host: scsi1 Channel: 00 Id: 00 Lun: 00&lt;br /&gt;
  Vendor: ATA      Model: Samsung SSD 840  Rev: BB6Q&lt;br /&gt;
  Type:   Direct-Access                    ANSI  SCSI revision: 05&lt;br /&gt;
 Host: scsi2 Channel: 00 Id: 00 Lun: 00&lt;br /&gt;
  Vendor: ATA      Model: WDC WD1000CHTZ-0 Rev: 6A01&lt;br /&gt;
  Type:   Direct-Access                    ANSI  SCSI revision: 05&lt;br /&gt;
 Host: scsi3 Channel: 00 Id: 00 Lun: 00&lt;br /&gt;
  Vendor: ATA      Model: WDC WD1000CHTZ-0 Rev: 6A01&lt;br /&gt;
  Type:   Direct-Access                    ANSI  SCSI revision: 05&lt;br /&gt;
&lt;br /&gt;
===cat /sys/block/sd*/queue/rotational check if HDD/SSD===&lt;br /&gt;
If you&amp;#039;re not sure whether the disks on your system are HDDs or SSDs, do the simple command:&lt;br /&gt;
 cat /sys/block/sd*/queue/rotational&lt;br /&gt;
The output is in descending order starting from the first disk detected, usually sda.  &lt;br /&gt;
&lt;br /&gt;
This will output either 0 or 1.&lt;br /&gt;
 0 == SSDs&lt;br /&gt;
 1 == HDDs&lt;br /&gt;
&lt;br /&gt;
Example: &lt;br /&gt;
 # My first disk is an SSD&lt;br /&gt;
 [root@he fast]# cat /sys/block/sda/queue/rotational &lt;br /&gt;
 0&lt;br /&gt;
&lt;br /&gt;
 # I have two SSDs, /dev/sda &amp;amp; /dev/sdb, and two HDDs /dev/sdc &amp;amp; /dev/sdd&lt;br /&gt;
 [root@he fast]# cat /sys/block/sd*/queue/rotational &lt;br /&gt;
 0&lt;br /&gt;
 0&lt;br /&gt;
 1&lt;br /&gt;
 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Sysadmin]]&lt;/div&gt;</summary>
		<author><name>Benrwong</name></author>
	</entry>
</feed>