sammlinux sammlinux
  • Ubuntu
    UbuntuShow More
    How To Install and Use Docker CE on Ubuntu 22.04
    26 Min Read
    How To Install and Secure phpMyAdmin on Ubuntu 22.04
    5 Min Read
    How To Secure SSH with Fail2Ban on Ubuntu 22.04
    8 Min Read
    How To Install Uptime Kuma on Ubuntu 22.04
    17 Min Read
    How To Install Ubuntu Server 22.04 LTS with Screenshots
    14 Min Read
  • Rocky Linux
    Rocky LinuxShow More
    How To Install phpMyAdmin on Rocky Linux 9
    15 Min Read
    How To Secure SSH with Fail2Ban on Rocky Linux 9
    12 Min Read
    How To Install Rocky Linux 9.2 Server with Screenshots
    12 Min Read
    How To Set Up a Firewall Using FirewallD on Rocky Linux 9
    8 Min Read
    How To Install Nginx on Rocky Linux 9: A Comprehensive Guide
    10 Min Read
  • Debian
    DebianShow More
    How To Secure SSH with Fail2Ban on Debian 11
    8 Min Read
    How To Install Debian 11 (Bullseye) Server with Pictures
    12 Min Read
    How To Install and Setup Node.js on Debian 11
    6 Min Read
    How To Install PHP 8.2 on Debian 11
    12 Min Read
    How To Install Nginx on Debian 11: A Comprehensive Guide
    9 Min Read
  • Linux
    LinuxShow More
    Best Practices Linux Server Security for System Administrator
    8 Min Read
    A Simple Guide: How To Manage Groups on Linux
    5 Min Read
    How To Manage Log Files Using Logrotate In Linux
    7 Min Read
    The Easy Ways to Check File Size in Linux
    7 Min Read
    How To Backup Files From Remote Linux VPS Using Rsync Script
    12 Min Read
  • CentOS
    CentOSShow More
    How To Secure SSH with Fail2Ban on CentOS 7
    9 Min Read
    How To Install PHP 8.2 on CentOS 7 / RHEL 7
    18 Min Read
    How To Install Apache Web Server on CentOS 7
    11 Min Read
    How To Set Up a Firewall Using FirewallD on CentOS 7
    5 Min Read
    Initial Setup CentOS 7 Server: Secure and Efficient
    9 Min Read
  • DevOps
    DevOpsShow More
    How To Create AWS CloudFront: A Step-by-Step Guide
    10 Min Read
Reading: How To Find Hard Disk Drive Information in Linux
Share
Font ResizerAa
Linux for BeginnersLinux for Beginners
  • Ubuntu
  • Rocky Linux
  • Debian
  • Linux
  • CentOS
  • DevOps
Search
  • Ubuntu
  • Rocky Linux
  • Debian
  • Linux
  • CentOS
  • DevOps
Follow US
Copyright © 2014-2023 Ruby Theme Ltd. All Rights Reserved.

How To Find Hard Disk Drive Information in Linux

Samuel Siahaan
By Samuel Siahaan
Last updated: October 19, 2023
SHARE

Basically in the vast world of Linux, managing your hard disk drives is an essential task. Whether you’re a seasoned sysadmin or a Linux newbie, obtaining detailed information about your hard disk drives is crucial for effective system maintenance and troubleshooting. In this article, we’ll explore different ways how to find Hard Disk Drive Information in Linux, providing you with an array of techniques suitable for various skill levels.

Contents
Table of ContentsUnderstanding the BasicsFind Hard Disk Drive Information in LinuxMethod 1: Using ‘lsblk’ CommandMethod 2: ‘fdisk’ – A Classic ChoiceMethod 3: Get Specifics with ‘smartctl’Method 4: Use ‘df’ for Disk Space UsageMethod 5: Explore ‘/proc’ for Kernel InformationMethod 6: Utilize GUI UtilitiesMethod 7: ‘lshw’ – Gathering Hardware DetailsMethod 8: Discover Storage Device Details with ‘lsscsi’Method 9: Explore ‘lsusb’ for USB-Connected DrivesConclusion

Table of Contents

  • Understanding the Basics
  • Find Hard Disk Drive Information in Linux
    • Method 1: Using ‘lsblk’ Command
    • Method 2: ‘fdisk’ – A Classic Choice
    • Method 3: Get Specifics with ‘smartctl’
    • Method 4: Use ‘df’ for Disk Space Usage
    • Method 5: Explore ‘/proc’ for Kernel Information
    • Method 6: Utilize GUI Utilities
    • Method 7: ‘lshw’ – Gathering Hardware Details
    • Method 8: Discover Storage Device Details with ‘lsscsi’
    • Method 9: Explore ‘lsusb’ for USB-Connected Drives
  • Conclusion

Understanding the Basics

Firstly, let’s clarify what hard disk drive information entails. In the context of Linux, certainly this refers to data like storage capacity, disk health, file system type, and much more. Knowing how to access this information is essential for proper disk management.

Find Hard Disk Drive Information in Linux

To begin, let’s dive into some basic Linux commands.

Method 1: Using ‘lsblk’ Command

For Linux enthusiasts just starting out, the ‘lsblk’ command is an excellent choice. It’s simple and efficient. Open your terminal and enter using following command :

- Advertisement -
Bash
$ lsblk
Linux Storage Device Details

This command will display a structured overview of your hard disk drives, including their names, sizes, and partitions. It’s a great way to get a quick snapshot of your storage devices.

Method 2: ‘fdisk’ – A Classic Choice

If you’ve been around Linux for a while, you’re likely familiar with ‘fdisk.’ It’s a classic tool for managing partitions, but it can also be used to gather information about your hard drives.

To retrieve detailed information, open the terminal and run following command :

Bash
$ sudo fdisk -l
fdisk

This command will list all your hard drives and their partitions along with specific details such as sizes, types, and file systems.

Method 3: Get Specifics with ‘smartctl’

For those who want to delve even deeper into hard disk drive diagnostics, ‘smartctl’ is the tool of choice. This utility provides you with detailed information about the health and performance of your hard drives. Run the following command in your terminal:

- Advertisement -
Bash
$ sudo smartctl --all /dev/sdb1
Linux hard drive details

Replace ‘/dev/sdX’ with the path to your specific drive. ‘smartctl’ offers a comprehensive report on attributes, health status, and error logs.

Method 4: Use ‘df’ for Disk Space Usage

If your primary concern is the available space on your hard drives, the ‘df’ command can help. It provides information about disk space utilization. Execute following command :

Bash
$ df -hT
df -hT

This will display a list of all mounted file systems, their sizes, usage, and available space. It’s particularly useful for understanding which partitions are running low on storage.

- Advertisement -

Method 5: Explore ‘/proc’ for Kernel Information

Another method to gather information about your hard drives is to explore the ‘/proc’ directory, which contains kernel and system information. Specifically, you can check the ‘/proc/diskstats’ file for comprehensive statistics on all block devices. To access this data, use the following command:

Bash
$ cat /proc/diskstats
Find Hard Disk Drive Information in Linux

This approach is more technical and might be preferred by advanced Linux users who want to extract data directly from the kernel.

Method 6: Utilize GUI Utilities

For those who prefer a graphical user interface (GUI) over the command line, various Linux desktop environments offer tools for viewing disk information. GNOME Disks, KDE Partition Manager, and GParted are popular choices. Simply install them from your package manager, and you’ll have a user-friendly interface to inspect your hard drives, like following screenshot :

Linux HDD Information

Method 7: ‘lshw’ – Gathering Hardware Details

If you need comprehensive hardware information, including details about your hard drives, ‘lshw’ (List Hardware) is a powerful command. Install it if it’s not already available on your system and run following command :

Bash
$ sudo lshw -class disk
Linux Storage Device Details

This command will provide a detailed inventory of all hardware components on your system, including your hard disk drives.

Method 8: Discover Storage Device Details with ‘lsscsi’

For systems equipped with SCSI devices, ‘lsscsi’ is an invaluable command to fetch detailed information about your storage devices. Execute the following:

Bash
$ lsscsi
Linux Disk Info

It will list all your SCSI devices along with various details such as vendor, model, and size.

Method 9: Explore ‘lsusb’ for USB-Connected Drives

If you have external hard drives or other storage devices connected via USB, ‘lsusb’ can help you identify and gather information about them. Run following command :

Bash
$ lsusb
USB Disk Information

This command will provide a list of USB devices, including any attached external hard drives.

Conclusion

At this point finding Hard Disk Drive information in Linux is a straightforward task, thanks to an array of command-line tools and graphical utilities at your disposal. Whether you’re looking for a quick overview or in-depth diagnostics, you can choose the method that suits your needs and expertise level. First thing to remember don’t forget to regularly check your hard drives’ health and performance to ensure the reliability and stability of your Linux system.

Now you have a variety of techniques at your fingertips to retrieve Hard Disk Drive information on your Linux system. Experiment with these methods to find the one that best fits your needs. Whether you prefer command-line utilities like ‘lsblk,’ ‘fdisk,’ and ‘smartctl,’ or opt for GUI tools like GNOME Disks or KDE Partition Manager, Linux offers multiple options to help you gain insights into your hard disk drives. So, start exploring and managing your storage devices effectively today.

Also Read Our Other Guides :

  • How To Create Multiboot USB with Ventoy in Linux
  • How To Use Rsync to Sync Local and Remote Directories in Linux
  • How To Get Total Inodes and Increase Disk Inode Number in Linux
  • How To Create and Use Swap File on Linux System
  • How To Use Git Version Control on Linux: For Beginner
  • The 40 Most-Used Linux Commands You Should Know
  • 6 Methods To Search For Files By Name In Linux
  • The Easy Ways to Check File Size in Linux

Finally, now you have learned how to find Hard Disk Drive Information in Linux.

TAGGED:DiskDriveLinuxStorage

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
[mc4wp_form]
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Copy Link Print
Previous Article How To Install Rocky Linux 9.2 Server with Screenshots
Next Article How To Create Multiboot USB with Ventoy in Linux
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

How To Install and Secure phpMyAdmin on Ubuntu 22.04
Ubuntu
Install and Configure Docker Swarm Mode on Centos 7
CentOS
How To Install and Config Thumbor on Debian 10
Debian
How To Install MariaDB 10.6 on Debian 11 Server
Debian
How To Install MongoDB 6.0 on Debian 10 & 11
Debian

You Might Also Like

Linux

How To Configure SSH Key-based Authentication In Linux

7 Min Read
Linux

How To Manage Log Files Using Logrotate In Linux

7 Min Read
Rocky Linux

Initial Setup Rocky Linux 9 Server: Secure and Efficient

18 Min Read
Linux

Understanding Linux File Permissions for Beginners

12 Min Read
Linux

How To Create and Use Swap File on Linux System

9 Min Read
Linux

The 40 Most-Used Basic Linux Commands You Should Know

15 Min Read
Debian

Initial Setup Debian 11 Server: Secure and Efficient

17 Min Read
Ubuntu

How To Install Nextcloud with Apache and MariaDB on Ubuntu Server 22.04

20 Min Read
Show More

Always Stay Up to Date

Subscribe to our newsletter to get our newest articles instantly!

sammlinux sammlinux

Providing beginner-friendly Linux tutorials and open-source guides to simplify your digital infrastructure.

www.sammlinux.com © 2026 | All Rights Reserved

Join Us!
Subscribe to our newsletter and never miss our latest news, podcasts etc.

Subscribe to our newsletter to get our newest articles instantly!

Zero spam, Unsubscribe at any time.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?