Linux - Mounting File Systems (CDROM, NFS, SMB, )

About

All files accessible in a Unix system are arranged in one big tree, the file hierarchy, rooted at /.

These files can be spread out over several devices. The mount command serves to attach the file system found on some device to the big file tree. Conversely, the umount command will detach it again.

In order to access any file system, it is first necessary to mount it. By mounting a file system, you direct Red Hat Linux to make:

available to the system. (To know more, see this article: Linux - Adding storage depends of LVM).

In order to mount any file system, two pieces of information must be specified:

  • A device file name representing the desired disk drive and partition or the logical volume
  • A directory under which the mounted file system will be made available (otherwise known as a mount point)

How to

Create a Mount Point

When you want to create a mount point to map a drive in Linux, a folder must be always created first.

mkdir /myMountFolder/MyMountPoint

When you create the directory with the root user, it will become a system-wide location.

See What is Mounted

In addition to mounting and unmounting disk space, it is possible to see what is mounted. There are several different ways of doing this:

  • Viewing /etc/mtab
  • Viewing /proc/mounts
  • Issuing the df command

Mount File Systems Automatically

See : Linux - FSTAB (file systems table)

Unmount / umount

umount /mountPointDir/

Documentation / Reference





Discover More
Card Puncher Data Processing
Azure - Disk

/mnt/resource is the mount point of a temporary disk /dev/sdb1. Purpose: higher input/output operations per second (IOPS). handle swap file operations. Properties: Size: The size of the disk...
Cdrom

and /dev/scdmounteddisk free command (df)
Card Puncher Data Processing
Docker - Data Persistence

mount a file or directory of the host into a container. volume: mount a file or directory of the host machine into a container located at /var/lib/docker/volumes/ : mount a file or directory of the...
Card Puncher Data Processing
Docker - Image

This page is the container image in Docker. OCI is the standardized container format used by Docker where: sha256:e90fc3a is the , the machine readable version of the image (unique) (default to...
Card Puncher Data Processing
Docker - Mount

in docker The type can be: bind, volume, or tmpfs tmpfs and looks at the section Mounts where: type can be : or
Card Puncher Data Processing
Docker - Volume Mount

This page is a volume (file store) in Docker. A volume is one type of mount in docker. Volumes are one of the way of persisting data between container execution. They are file store on the host where...
Undraw File Manager Re Ms29
File - (File Store|Volume|Partition)

A file store is a volume or partition in which files are stored. For example, in a native (OS) file system, are considered file stores: on the Windows platform, c: or d: are file stores. On the...
File System Hierarchy Standard (FHS)

The Filesystem Hierarchy Standard (FHS) is a collaborative document that defines the names and locations of many...
Yarn Hortonworks
HDFS - Nfs Gateway

NFS gateway, HDFS can be mounted as part of the client’s local file system. HDFS appears as a standard network...
How to disable your firewall in rescue mode ?

When working with firewalls, the unexpected can happen and you can be locked out of your server or vps. Many VPS provider provides a rescue mode that permits to rescue your server. This how-to shows you...



Share this page:
Follow us:
Task Runner