DEV Community

Aryan Vaishnani
Aryan Vaishnani

Posted on

Mount Points in Linux

What is a Mount Point?

A mount point is a directory where a storage device or filesystem is attached in Linux.

Linux connects disks inside the filesystem tree instead of using drive letters like Windows.

Example

Device:

/dev/sdb1

Mounted on:

/mnt/data

After mounting, files inside the disk are accessible through:

/mnt/data

Basic Mount Command

mount /dev/sdb1 /mnt/data

Meaning:

  • /dev/sdb1 = disk/partition
  • /mnt/data = mount point

Common Mount Point Directories

Directory Purpose
/mnt Temporary mounts
/media USB/CD devices
/ Root filesystem
/home Separate user partition
/boot Boot partition

Check Mounted Filesystems

mount

or

df -h

Real-World Example

Mount USB Drive

sudo mount /dev/sdb1 /mnt/usb

Access files:

cd /mnt/usb

Unmount Filesystem

umount /mnt/usb

or

umount /dev/sdb1

Important Note

You cannot safely remove a disk before unmounting it.

Automatic Mounting

Linux stores permanent mount information in:

/etc/fstab

Example:

/dev/sdb1  /data  ext4  defaults  0 0

Real-World Usage

Mount points are heavily used in:

  1. Cloud servers
  2. Docker storage
  3. Kubernetes volumes
  4. External disks
  5. NFS shared storage
  6. Backup systems

Common Filesystem Types

Filesystem Usage
ext4 Linux standard
xfs Enterprise systems
vfat USB compatibility
nfs Network storage

Best Practices

  1. Always unmount safely
  2. Use /etc/fstab carefully
  3. Monitor disk usage with df -h
  4. Use proper permissions on mounted storage

Top comments (0)