How to Mount a Filesystem in Linux (mount)

mount attaches a filesystem (like a disk partition or network share) to a specific directory, making its contents accessible.

Published October 1, 2026

mount attaches a filesystem on a device (disk, USB, network share) to a directory so you can read it. umount detaches it.

How it works

The mount point is an existing directory. Use lsblk or blkid to find devices. Permanent mounts go into /etc/fstab.

Always unmount before removing a drive to avoid data loss.

Try it

lsblk
sdb1 500G part
sudo mount /dev/sdb1 /mnt/data
df -h /mnt/data

Practical examples

Mount a disk

sudo mkdir -p /mnt/data
sudo mount /dev/sdb1 /mnt/data

Mount an NFS share

sudo mount -t nfs server:/export /mnt/nfs

Persist in fstab

UUID=1234-ABCD  /mnt/data  ext4  defaults  0  2

Unmount

sudo umount /mnt/data

Common mistakes

  • Wrong device name destroying data on format.
  • Typos in /etc/fstab preventing boot (use nofail).
  • Unmounting a busy filesystem (check lsof).

Key takeaways

  • mount device dir.
  • fstab for persistence.
  • umount before removing.

FAQ

Why is umount 'target is busy'?

A process still uses it; find it with lsof or fuser.

Use UUIDs?

Yes, device names can change.

More Linux articles