Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux mount command

Linux mount command

Linux Command Reference Linux Command Reference

The Linux mount command is frequently used; it is used to mount files outside the Linux system.

Syntax

mount [-hV]

mount -a [-fFnrsvw] [-t vfstype]

mount [-fnrsvw] [-o options [,...]] device | dir

mount [-fnrsvw] [-t vfstype] [-o options] device dir

Parameter Description:

Example

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 disc image file /tmp/image.iso under /mnt/cdrom using loop mode. This method allows you to view the contents of a Linux disc ISO file found on the Internet without burning it to a disc.

#mount -o loop /tmp/image.iso /mnt/cdrom

Linux Command Reference Linux Command Reference