mount command
Attach file systems and disks to a directory.
- Disks & storage
- Package util-linux
- 5 options · 7 examples
Syntax
mount [options] device directoryumount directory
Provided by the util-linux package. Run man mount for the full manual.
Common options
| Option | What it does |
|---|---|
-t TYPE | File system type, e.g. ext4, nfs |
-o OPTIONS | Options, e.g. ro, noexec |
-a | Mount everything in /etc/fstab |
-o remount,rw | Remount read-write |
-o loop | Mount a disk image file |
Examples
Mount a partition
sudo mount /dev/sdb1 /mnt/dataMount read-only
sudo mount -o ro /dev/sdb1 /mntMount an ISO file
sudo mount -o loop ubuntu.iso /mnt/isoMount an NFS share
sudo mount -t nfs 192.0.2.5:/exports/data /mnt/nfsTest /etc/fstab entries
sudo mount -aUnmount
sudo umount /mnt/dataShow mounted file systems
findmnt
No example matches. Check the options table or search the guides.
mount guides
- Mount and Unmount Linux Disks: A Practical How-To Guide Linux Commands · Updated Apr 2025
- How to Mount Remote Windows Share on Linux Linux · Updated Apr 2025
- How to Mount a Samba Share on Ubuntu and Debian Networking · Updated Apr 2025
