Linux mount Command: Inspect and Mount Filesystems
mount connects a file system to the directory tree or checks the current mount status. It is the operation that allows you to read and write files in a directory after connecting a device.
What is the mount command?
The target directory for mounting must already exist. Mounting a file system over it does not delete the existing directory contents, but they are hidden until the mount is removed. Running it without arguments shows a list of currently connected file systems, and for structured queries, findmnt is convenient.
Basic syntax
mount [option] [device] [mount point]
The installed implementation and options may vary depending on the distribution. Check the description of the current system with man mount.
Examples
Check current connection status
Check which file system the specified path belongs to.
findmnt /mnt/data
Mount as read-only
After verifying that it matches the target device and content, mount it as read-only.
sudo mount -o ro /dev/sdb1 /mnt/data
Connection Result Verification
Check the device, format, and read-only options.
findmnt /mnt/data
Check where it is visible after mounting
mount connects a device's filesystem to the directory tree. When you only want to check the status, it is easier to look up the source and type of a specific path with findmnt.
findmnt /mnt/data
Example output of a mounted environment:
TARGET SOURCE FSTYPE OPTIONS /mnt/data /dev/sdb1 ext4 rw,relatime
When the mount succeeds, mount itself usually does not produce any output. Files originally in the mount point may be hidden while it is mounted, so check to make sure it is an empty directory before performing any operations. If you select the wrong device, partition, or filesystem, you may read or write unexpected data.
For a mount to persist across reboot, a one-time mount command is not enough; configure /etc/fstab or the appropriate mount unit. Device names can change between boots, so prefer a verified UUID where appropriate and validate the configuration according to your operating procedure.
Main Options and Format
| Options/Format | Description |
|---|---|
-o ro |
Mount as read-only. |
-t format |
Specify the file system format. |
-o option list |
Specify mount options separated by commas. |
-a |
Mount all targets specified in the configuration file at once. |
--bind |
Reattach an existing directory to a different location. |
Precautions when using
Replace the example /dev/sdb1 and /mnt/data with the actual target, and check the data and mount status with lsblk -f before performing any operation. Mounting a filesystem that is already mounted elsewhere can cause confusion. Permanent mounting requires separate configuration in /etc/fstab, and incorrect settings can affect booting.
Frequently Asked Questions
If I run mount, will it persist after reboot?
A one-time mount performed with a command generally does not automatically restore after reboot. Automatic mounting requires separate configurations such as in /etc/fstab.
Official Documentation
You can check the exact behavior of options and implementation differences in the official mount documentation.









