mount Command Generator
Generate mount commands to mount filesystems
Getting Started with mount
## What is mount?
`mount` attaches a filesystem (from a device, network share, or image) to the directory tree at a target path. It is also used to mount everything listed in `/etc/fstab`.
## How to Use
1. **Set Filesystem Type** (optional): Use `-t` for types such as `ext4`, `xfs`, `nfs`, `tmpfs`. 2. **Set Mount Options**: Use `-o` for a comma-separated list like `ro,noauto` or `defaults`. 3. **Provide Device and Target**: Give the device path and the mount point directory. 4. **Copy & Run**: Copy the generated command into your terminal (usually requires root).
Common Options
### `-t` Filesystem type Specify the filesystem type, e.g. `ext4`, `xfs`, `vfat`, `nfs`, `tmpfs`. Omitting it lets the kernel auto-detect.
### `-o` Mount options A comma-separated list of options. Common ones: `defaults`, `ro` (read-only), `rw` (read-write), `noexec`, `nosuid`, `nodev`, `noauto`.
### `-a` Mount all Mount all filesystems listed in `/etc/fstab` (except those marked `noauto`).
### `-r` Read-only Mount the filesystem read-only. Equivalent to `-o ro`.
### `-w` Read-write Mount the filesystem read-write. Equivalent to `-o rw`.
### `-f` Fake Do everything except the actual mount — useful for validating options.
### `-v` Verbose Print a description of each step as it happens.
### Device and target Two positional arguments: the device (e.g. `/dev/sda1`) and the mount point (e.g. `/mnt/data`).
▶How do I mount a partition read-only?
▶How do I mount everything from /etc/fstab?
▶How do I check mount options before applying them?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee