Linux Comm Mount
# Linux mount Command
[ Linux Command Manual](#)
The Linux mount command is frequently used. It is used to mount file systems external to the Linux system.
### Syntax
mount mount -a mount [-o options [,...]] device | dir mount device dir
**Parameter Description:**
* -V: Display program version.
* -h: Display help information.
* -v: Display verbose information, often used with -f for debugging.
* -a: Mount all filesystems defined in /etc/fstab.
* -F: This command is often used with -a. It spawns a new process for each mount operation. This can speed up mounting when the system needs to mount many NFS filesystems.
* -f: Usually used for debugging. It makes mount not perform the actual mount operation, but simulates the entire mounting process. Often used with -v.
* -n: Normally, mount writes an entry to /etc/mtab after mounting. This option cancels that action when there is no writable filesystem available in the system.
* -s-r: Equivalent to -o ro.
* -w: Equivalent to -o rw.
* -L: Mount the partition with a specific label.
* -U: Mount the filesystem with the given UUID. -L and -U are only meaningful if /proc/partitions exists.
* -t: Specify the filesystem type. Usually not necessary. mount will automatically select the correct type.
* -o async: Enable asynchronous mode. All file read/write operations will be performed in asynchronous mode.
* -o sync: Perform operations in synchronous mode.
* -o atime, -o noatime: When atime is enabled, the system updates the 'last access time' of the file each time it is read. When using flash filesystems, you might choose to disable this option to reduce write operations.
* -o auto, -o noauto: Enable/disable auto-mount mode.
* -o defaults: Use the default options: rw, suid, dev, exec, auto, nouser, and async.
* -o dev, -o nodev: Allow/disallow execution of device files.
* -o exec, -o noexec: Allow/disallow execution of files.
* -o suid, -o nosuid: Allow/disallow execution of files with the setuid bit.
* -o user, -o nouser: Allow/disallow ordinary users to perform mount/umount operations.
* -o remount: Remount an already mounted filesystem with different options. For example, remount a read-only filesystem as read-write.
* -o ro: Mount in read-only mode.
* -o rw: Mount in read-write mode.
* -o loop=: Use loop mode to mount a file as a disk partition.
### Examples
Mount /dev/hda1 under /mnt.
#mount /dev/hda1 /mnt
Mount /dev/hda1 under /mnt in read-only mode.
#mount -o ro /dev/hda1 /mnt
Mount the CD image file /tmp/image.iso using loop mode under /mnt/cdrom. This method allows you to view the contents of a Linux CD ISO file found on the internet without burning it to a physical CD.
#mount -o loop /tmp/image.iso /mnt/cdrom
[ Linux Command Manual](#)
YouTip