A mount point is a directory in a file system hierarchy used as an access point for a separate storage device, partition, or network resource. When a file system is attached to that directory, the directory becomes the root of the mounted storage, letting users and applications interact with it as part of a single unified directory tree. Any files already present inside the target directory before mounting become temporarily hidden until the storage is unmounted.
How it works
In Unix-like operating systems, everything is organized under a single root directory (/). Mounting binds the file system of a block device, logical volume, or remote share to an existing directory node in that tree. While Windows traditionally assigns separate drive letters to partitions, NTFS also supports volume mount points inside empty folders to avoid running out of drive letters.
This abstraction decouples physical storage hardware from application file paths. Administrators can replace underlying disks, expand volumes, or migrate data to network storage without reconfiguring the software reading and writing to those paths.
- Isolating high-write directories like
/var/logonto a separate partition so runaway logs cannot exhaust space on the root file system. - Attaching network-attached storage (NAS) or cloud block volumes to paths such as
/mnt/backupsor/var/lib/postgresql. - Creating bind mounts to expose a host directory inside a container or chroot environment.
Example
To attach a newly formatted NVMe partition to a dedicated data directory on Linux, an administrator creates the target directory, mounts the device manually, and adds an entry to /etc/fstab using the partition's UUID so the connection persists across reboots:
sudo mkdir -p /var/lib/app-data
sudo mount /dev/nvme1n1p1 /var/lib/app-data
# Persistent entry in /etc/fstab
UUID=a1b2c3d4-e5f6-7890-abcd-ef1234567890 /var/lib/app-data ext4 defaults,nofail 0 2
Applications configured to write to /var/lib/app-data immediately store their files on the secondary NVMe drive rather than the operating system disk.
What matters when choosing a server or hosting
When provisioning virtual private servers, dedicated machines, or cloud instances, storage layout directly affects reliability and maintenance:
- Separate system and data volumes: Hosting providers that allow attaching independent block storage volumes make it straightforward to mount application data, databases, and media uploads separately from the OS disk.
- Snapshot and resizing support: Mounting data on a dedicated volume lets you snapshot, clone, or resize storage independently without taking down or rebuilding the base operating system image.
- Network storage latency: When mounting remote file systems such as NFS or SMB for shared web roots, network throughput and latency between compute nodes and the storage server become critical bottlenecks.
Common mistakes
- Mounting over non-empty directories: Mounting a drive onto a folder that already contains files hides the original data, which confuses administrators and leaves unexpected disk usage unaccounted for.
- Using device names instead of UUIDs in
/etc/fstab: Kernel device names like/dev/sdb1can shift when hardware or cloud volumes are attached or removed, causing the wrong disk to mount or the system to drop into emergency mode on boot. - Omitting the
nofailoption on secondary drives: Withoutnofail(or_netdevfor network shares), an unavailable external disk or delayed network mount can stall the boot sequence of a headless server.
FAQ
Does a mount point directory have to be empty?
No, the operating system allows mounting over a directory that contains files, though doing so hides the existing contents until the file system is unmounted. Keeping mount point directories empty is standard practice to avoid confusion and hidden disk consumption.
What is the difference between /mnt and /media?
By Linux Filesystem Hierarchy Standard conventions, /mnt is reserved for temporary or manually configured mounts managed by administrators, while /media is used by the system to automatically mount removable devices such as USB drives.
What happens to data when you unmount a file system?
Unmounting cleanly flushes pending write buffers and detaches the storage device from the directory tree. The files remain safely stored on the physical or virtual disk and reappear once the device is mounted again.