get comprehensive information about a hard disk with the Linux command line.

Posted: January 11, 2018. At: 9:10 PM. This was 2 weeks ago. Post ID: 11729
Page permalink.
WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters. These cookies expire two weeks after they are set.

Getting a lot of useful information about a hard disk drive is easy with Linux. The smartmontools package contains utilities to retrieve a lot of very useful info.

Firstly, install this package.

[email protected]:~$ sudo apt install smartmontools

Then run the command with sudo to get info about a drive.

[email protected]:~$ sudo smartctl -a /dev/sdc

That is how easy it is to get information about a hard drive in a computer with Linux.

Here is an example, this is printing the identity information about the drive.

[email protected]:~$ sudo smartctl -i /dev/sdc
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.10.0-42-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     WDC WDS240G2G0A-00JH30
Serial Number:    174433800982
LU WWN Device Id: 5 001b44 8b66126b2
Firmware Version: UF300000
User Capacity:    240,065,183,744 bytes [240 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-2 T13/2015-D revision 3
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Thu Jan 11 12:02:23 2018 AEDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

No comments have been made. Use this form to start the conversation :)

Leave a Reply