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.
jason@Yog-Sothoth:~$ sudo apt install smartmontools |
Then run the command with sudo to get info about a drive.
jason@Yog-Sothoth:~$ 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.
jason@Yog-Sothoth:~$ 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 |