4 Examples To List all Drives (Mounted and Unmounted) on Linux

User Avatar
πŸ‘€ admin
πŸ”΄ Admin
✍️ The most important thing in the world is to not be alone.
⏳ Last active: 15 Apr 2025 at 16:01
πŸ“… Created: 29 Jun 2021 at 10:13
πŸ‘€ Viewed: 24 times
βœ‰οΈ Send Email

In this article we are going to show you four ways to show all drives, mounted or unmounted, on a Linux operating system. A disk drive is a technology that enables the reading, writing, deleting and modifying of data on a computer storage disk. It is either a built-in or external component of a disk that manages the disk's input/output (I/O) operations.

A disk partition in a hard disk is also known as a disk drive, such as drive Sda1 and drive Sdb2, etc.

Example # 1: Listing with the β€œfdisk” Command

The β€œfdisk” command can be used to display the drives in Linux in the manner shown below:


$ sudo fdisk -l

Image

Example # 2: Listing with the β€œparted” Command:

The β€œparted” command can be used to display the disk partitions in Linux in the manner shown below:


$ sudo parted -l

Image

Example # 3: Listing with the β€œlsblk” Command:

The β€œlsblk” command can be used to display the system drives in Linux in the manner shown below:


$ lsblk

Image

Example # 4: Listing with the β€œblkid” Command:

The β€œblkid” command can be used to display available drives in Linux in the manner shown below:


$ sudo blkid

Image

Conclusion

In this article we showed you four ways to list all drives, mounted or unmounted, on a Linux operating system.

We hope you enjoyed this article. if that is so please rate this page with the stars bellow and subscribe to our YouTube channel or follow us on twiter.

If you want to comment: Login or Register