$linuxjunkies
>

mount(8)

Attach a filesystem or storage device to the directory tree so its contents become accessible.

UbuntuDebianFedoraArch

Synopsis

mount [-t fstype] [-o options] device mountpoint

Description

Mount attaches a filesystem or block device to a location in the directory hierarchy, making its contents accessible. Without arguments, it lists currently mounted filesystems. The device argument specifies what to mount (a device file, NFS share, or label), and mountpoint is an existing directory where it will be attached.

Common use cases include mounting USB drives, external hard drives, network shares, ISO images, and additional partitions. Mount options control behavior like read-only access, permission handling, and filesystem-specific features.

Common options

FlagWhat it does
-t fstypeSpecify filesystem type (ext4, ntfs, vfat, nfs, iso9660, etc.); auto-detect if omitted
-o optionsComma-separated mount options (ro, rw, noexec, nosuid, nodev, defaults, etc.)
-rMount read-only (equivalent to -o ro)
-wMount read-write (default; equivalent to -o rw)
-aMount all filesystems listed in /etc/fstab
-lList all currently mounted filesystems with their mount options
-B, --bindBind mount: attach a directory tree to another location without copying data
--rbindRecursive bind mount: includes all submounts
-vVerbose output showing mount operations
-nMount without updating /etc/mtab (useful in restricted environments)

Examples

Mount the first partition of /dev/sdb to /mnt/usb; filesystem type is auto-detected

mount /dev/sdb1 /mnt/usb

Mount an ISO image file as a loop device to make its contents readable

mount -t iso9660 -o loop /path/to/image.iso /mnt/iso

Mount a remote NFS share from an IP address using NFSv4

mount -t nfs -o vers=4 192.168.1.10:/export/share /mnt/nfs

Remount the root filesystem as read-only (useful for system maintenance)

mount -o remount,ro /

Mount a FAT32 device in read-only mode to prevent accidental modifications

mount -r -t vfat /dev/sdc1 /mnt/backup

Bind mount a directory to another location; both point to the same data

mount --bind /home/user/documents /media/shared/docs

Mount all filesystems defined in /etc/fstab (common in boot scripts)

mount -a

List only mounts under /mnt to check what devices are currently attached

mount | grep /mnt

Related commands