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:
- Cloud servers
- Docker storage
- Kubernetes volumes
- External disks
- NFS shared storage
- Backup systems
Common Filesystem Types
| Filesystem | Usage |
|---|---|
| ext4 | Linux standard |
| xfs | Enterprise systems |
| vfat | USB compatibility |
| nfs | Network storage |
Best Practices
- Always unmount safely
- Use /etc/fstab carefully
- Monitor disk usage with df -h
- Use proper permissions on mounted storage
Top comments (0)