Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Find Mounted File Systems in Linux

· 6 min read · Home Tech

In this article
  1. Why You Need to See Mounted File Systems
  2. The Classic mount Command
  3. The Modern findmnt Utility
  4. Other Ways to List Mounted File Systems
  5. Understanding the Output
  6. Common Problems and Misconceptions
  7. Frequently Asked Questions

To find mounted file systems in Linux, use the mount command with no arguments, or findmnt for a cleaner, tree-like output. Both show every currently mounted device, its mount point, file system type, and mount options, giving you a complete snapshot of your storage layout.

Why You Need to See Mounted File Systems

Knowing what's mounted is essential for system administration, troubleshooting, and everyday file management. When you plug in a USB drive, add a new hard disk, or set up a network share, Linux doesn't automatically make it visible in your file manager—it must be mounted to a directory first. Checking mounted file systems tells you:

  • Whether a device was recognized and attached successfully.
  • Where its contents are accessible (the mount point).
  • What file system type is in use (ext4, NTFS, XFS, etc.).
  • Which mount options are active (read-only, noexec, etc.).

Without this information, you might waste time looking for files in the wrong place or fail to notice that a drive is mounted read-only and reject your writes.

The Classic mount Command

The mount command is the oldest and most widely available tool. Running mount with no arguments prints a list of all currently mounted file systems. The output is verbose, often spanning dozens of lines, because it includes pseudo-file systems like proc, sysfs, and cgroup that aren't real storage devices.

Example output (abbreviated):

/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro)

Here, /dev/sda1 is the block device, / is the mount point, ext4 is the file system type, and the options are in parentheses. To filter this output, you can pipe it through grep:

mount | grep sdb

This shows only lines containing "sdb," which is useful when you know the device name. However, mount doesn't sort or format the output in a human-friendly way, and it can be slow on systems with many mounts.

The Modern findmnt Utility

Most current Linux distributions include findmnt from the util-linux package. It's designed specifically for inspecting the mount table and presents it as a tree, making it much easier to read. Running findmnt shows the hierarchy: the root file system at the top, with child mounts (like /home or /boot) indented beneath.

Key variations:

  • findmnt -l — list output, no tree, just a flat table.
  • findmnt -t ext4 — show only file systems of a given type.
  • findmnt /mnt/usb — show only the mount at a specific mount point.
  • findmnt -o TARGET,SOURCE,FSTYPE,OPTIONS — specify which columns to display.

For example, to see just your real disks (not pseudo-file systems), use:

findmnt -t ext4,xfs,btrfs,vfat,ntfs

This filters to common storage file systems, giving a clean view of your actual drives.

Other Ways to List Mounted File Systems

Several other commands provide similar information, each with its own strengths:

  • df -h — Shows disk usage for each mounted file system, with sizes in human-readable format. It's perfect for checking free space, but it doesn't show mount options.
  • lsblk — Lists all block devices (disks, partitions, LVM volumes) and their mount points. It's great for seeing the big picture of your storage topology, even for unmounted devices.
  • /proc/mounts — A virtual file that contains the kernel's current mount table. You can read it with cat /proc/mounts. It's always up-to-date and is what mount and findmnt read.
  • /etc/fstab — Not a list of mounted file systems, but the configuration file that defines what should be mounted at boot. Comparing it with the actual mounts can reveal why a drive didn't mount automatically.

For most tasks, findmnt is the best choice because it's concise, filterable, and shows the parent-child relationships.

Understanding the Output

Whichever command you use, the essential columns are:

  • SOURCE — The device or remote share that provides the storage (e.g., /dev/sda1, 192.168.1.10:/share).
  • TARGET — The directory where the file system is attached (e.g., /, /mnt/data).
  • FSTYPE — The file system type. Common ones include ext4 (Linux native), XFS (high-performance), NTFS (Windows), vfat (FAT32, for USB sticks), and nfs4 (network).
  • OPTIONS — Mount options that affect behavior. rw means read-write, ro means read-only, noexec prevents executing binaries, and relatime controls access-time updates.

If you see a device listed but with ro in the options, it's mounted read-only—either by design or because of an error. If a device is missing entirely, it may not have been mounted, or it may have failed to mount.

Common Problems and Misconceptions

A frequent misunderstanding is that mount output is the same as /etc/fstab. They are different: fstab is the intended configuration, while the mount list shows the current state. A device can be unmounted even if it's in fstab, and vice versa.

Another common issue is that USB drives often appear as /dev/sdb1 or /dev/sdc1, but the device letter can change between reboots. Relying on device names in scripts is fragile; it's better to use UUIDs, which you can find with blkid or lsblk -f.

If a drive doesn't show up in the mount list, first check lsblk to see if the kernel sees the device at all. If it does, you may need to mount it manually with sudo mount /dev/sdb1 /mnt/usb. If it doesn't, the problem is at the hardware or driver level, not the mount level.

Frequently Asked Questions

What is the difference between mount and df?

mount lists all mounted file systems with their types and options, but doesn't show disk usage. df shows usage (total, used, free) for each mounted file system, but doesn't display the file system type or mount options by default (use df -T to add the type). They complement each other: use df to check space, and mount or findmnt to see how things are mounted.

How do I see only real disks, not pseudo-file systems?

Pseudo-file systems like proc, sysfs, and tmpfs are not physical storage. To filter them out, use findmnt -t ext4,xfs,btrfs,vfat,ntfs (adjust the list to include your file system types), or use lsblk which by default only shows block devices and their mount points, omitting pseudo-file systems.

Why is my USB drive not showing up in mount?

First, check if the kernel sees it with lsblk or dmesg | tail. If the device appears (e.g., sdb1), it simply isn't mounted. You can mount it manually with sudo mount /dev/sdb1 /mnt/usb (create the mount point first with mkdir). If it doesn't appear, the issue is hardware, drivers, or the device itself.

Can I unmount a file system that is in use?

No, you'll get a "target is busy" error. You can use lsof +f -- /mountpoint or fuser -m /mountpoint to find which processes are using it. After closing those processes, you can unmount with sudo umount /mountpoint. For stubborn cases, umount -l (lazy unmount) detaches it now and cleans up later, but use it with caution.

What does the relatime option mean?

It controls how the kernel updates the access time (atime) of files. With relatime, the access time is updated only if it's older than the modification time or if it's been more than 24 hours. This reduces disk writes while still providing useful atime data. It's the default on most modern Linux systems.