≡ Menu

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.

[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

{ 5 comments… add one }

  • alex March 8, 2014, 5:56 pm

    command not found…

  • Neno March 14, 2014, 1:38 pm

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

  • Sudindhar August 13, 2014, 2:47 pm

    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 October 7, 2014, 7:29 pm

      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 August 12, 2015, 3:31 pm

      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.

Leave a Comment

   Tagged with: , , , ,