Jump to content

How to Show Mounts in Linux


Linux Hint

Recommended Posts

File management in Linux has always been the most essential part of a user’s workflow. Fortunately, it has a great file system and offers various features for efficient file management. It has commands for creating or deleting the directories, listing them, displaying their content, limiting the access, and many more. It lets you view the mounted drives and is handy for system monitoring, storage management, troubleshooting disk issues, remote system management, etc. However, learning how to show the mounts is essential for every Linux user. So, in this quick blog, we will explain the different commands to show the mounts in Linux.

How to Show the Mounts in Linux

To display the mounted drives, you merely need to enter a few commands. Here, we included multiple commands to show the mounts easily.

1. The Mount Command

The “mount” command displays a comprehensive list of the mounts including their mount point, file system type, and mount options.

mount

show-mounts-linux-01.png

2. The Df Command

If you want to have a detailed insight into the mounted file systems and disk space that are used by them, use the “df” command.

df -h

show-mounts-linux-02.png

The “-h” option instructs the system to display it in a human-readable format.

3. Read /etc/fstab File

You can view the disk drives and their partitioning information by reading the “/etc/fstab” file.

Cat /etc/fstab

show-mounts-linux-03.png

This command, upon execution, presents everything on the command line itself.

4. The Findmnt Command

The “findmnt” command is an advanced version of the mount command as it provides a more detailed output. Further, it also shows the mounts in a tree-like structure with their file type and mount options.

show-mounts-linux-04.png

Conclusion

Linux has a sturdy file management system, and listing the mounts is fundamental for most users. You can accomplish it using different commands according to the use cases. Thus, this blog includes four methods of showing the mounts in Linux: the mount, df, and findmnt commands, and the “/etc/fstab” file.

View the full article

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...