DevOps Essentials

View on GitHub



mount – mount file systems


mount [-adfruvw] [-t lfs external_type]
mount [-dfruvw] special mount_point
mount [-dfruvw] [-o options] [-t lfs external_type] special mount_point


The mount command calls the mount(2) system call to prepare and graft a special device or the remote node (rhost:path) on to the file system tree at the point mount_point, which must be a directory. If either special or mount_point are not provided, the appropriate information is obtained via the getfsent(3) library routines.

The system maintains a list of currently mounted file systems. If no arguments are given to mount, this list is printed.




Seeing a list of mounted filesystems

How to mount filesystems

Another example

$ mount -t msdos /dev/fd0 /mnt/floppy

To mount a CD-ROM:

$ mount -t iso9660 /dev/cdrom /mnt/cdrom

How to unmount a filesystem

$ umount /mnt/floppy
$ umount /mnt/cdrom

To mount nsf shared locations we have to execute

$ mkdir -p /home/looker/looker/models-share
$ chown -R looker:looker /home/looker/looker/models-share
$ chown looker:looker /home/looker/looker/models-share
$ mount -t nfs -o vers=3 /home/looker/looker/models-share