Linux Command: Show Mounted Hard Drives Partition

How do I list or show all mounted devices in a terminal under Linux operating systems?

You need to use any one of the following command to see mounted drives under Linux operating systems.

[a] df command – Shoe file system disk space usage.
Tutorial details
Difficulty level Easy
Root privileges No
Requirements Linux
Est. reading time N/A
[b] mount command – Show all mounted file systems.

[c] /proc/mounts or /proc/self/mounts file – Show all mounted file systems.


Open a terminal or login using ssh into the remote server and type the following command:
$ cat /proc/mounts
$ cat /proc/self/mounts
Sample outputs:

sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
udev /dev devtmpfs rw,relatime,size=8190572k,nr_inodes=2047643,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
/dev/mapper/wks01-root / ext3 rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
/dev/sda1 /boot ext2 rw,relatime,errors=continue 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0
none /proc/fs/vmblock/mountPoint vmblock rw,relatime 0 0

Type the mount command as follows to get same information:

mount -l

Sample outputs:

/dev/mapper/wks01-root on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda1 on /boot type ext2 (rw) [boot]
fusectl on /sys/fs/fuse/connections type fusectl (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
none on /proc/fs/vmblock/mountPoint type vmblock (rw)

Type the df command shows more human readable output:

df -aTh

Sample outputs:

Fig.01: df command in action

Fig.01: df command in action

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 7 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersncdu pydf
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
7 comments… add one
  • alex Mar 8, 2014 @ 17:56

    command not found…

  • Neno Mar 14, 2014 @ 13:38

    Which command will display the number of devices in my system (routers/switches/AP)

  • Sudindhar Aug 13, 2014 @ 14:47

    Hi All,

    I purchased the Hp 15-n018 model laptop, when i checking with vendor they said will not support for Linux operating and i didn’t found the driver in internet….. i able found in win 8 and 8.1….
    But am very interested in Linux operating system…. any one can please help me where i can the driver.

    • bodyles Oct 7, 2014 @ 19:29

      Sudinhar: it really depends on what driver you’re talking about for which specific device and for which specific Linux distribution.
      The laptop itself may require any number of drivers, including HD, CD/DVD, sound, display, network, etc.
      Many Linux distributions come with drivers for a wide variety of systems & devices, and you can generally get Linux up & running on just about anything these days with enough patience.
      You can generally repartition your hard drive without losing any data using tools provided in distribution ISOs/DVDs & install Linux as a dual boot without fear of not being able to also use Windows if necessary as a backup.
      I first installed Linux on a laptop back in the 90s, and it was difficult to get all the drivers but I did eventually & it worked ok.
      These days it’s usually much simpler and any up to date Linux distribution should run just fine on your laptop with a little setup & TLC.

      As a side note, I’d like to thank the author of this article, the commands worked as advertised & provided the information I required.

    • Mark Levy Aug 12, 2015 @ 15:31

      Linux has a long history of not “playing well” with laptops, and unless you get a laptop that is “certified” to run with Linux, you’re bound to have headaches. Something else you might try is keeping the laptop as is, and installing Virtual Box, by Sun (Oracle?) I believe it’s available on-line at no charge. This is a VM system, which will allow you to load a real copy of Linux, as it emulates a real computer. Personally, I use VMware Workstation (I’ve had it for years, but it’s a commercial product) which does the same thing, but I’ve heard nothing but good things about Virtual Box. You can then launch Linux in a window, and it’s a “real” linux version, which you will install from the distribution ISO.

  • TheLive1 Feb 1, 2016 @ 10:56

    Let’s say I want to display on the i3status bar whether a device/share is mounted.
    How would that be accomplished?

    • Marcos Nov 10, 2016 @ 18:55

      I’m kind of new to i3, but as of what I’ve found online about the wm, it is a matter of finding the right parameter on i3status or i3blocks (whichever you use).

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum