Mounting in Linux: mount, fstab and lsblk
Updated November 1, 2026
mount attaches a partition's filesystem to a directory in the single tree, and umount detaches it.
Syntax
sudo mount device directoryCommon cases
lsblk # disks and partitions as a tree
sudo mount /dev/sdb1 /mnt # attach a partition at /mnt
df -h /mnt # check that it mounted
sudo umount /mnt # detach it
blkid # the UUID and type of filesystems
cat /etc/fstab # what mounts at bootSample output
$ lsblk /dev/loop1
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop1 7:1 0 256M 0 loop
$ sudo mount /dev/loop1 /mnt/data
$ df -h /mnt/data
Filesystem Size Used Avail Use% Mounted on
/dev/loop1 224M 24K 206M 1% /mnt/data
$ findmnt /mnt/data
TARGET SOURCE FSTYPE OPTIONS
/mnt/data /dev/loop1 ext4 rw,relatime
$ sudo blkid /dev/loop1
/dev/loop1: LABEL="data" UUID="168a72b6-355a-4783-98a2-dd7a03285492" BLOCK_SIZE="4096" TYPE="ext4"How it works: one tree, mount points
Linux has no drive letters like Windows. Any disk or partition is attached (mounted) to some directory - a mount point, and its contents appear inside the single tree from
/. Runningmountwith no arguments shows everything already mounted. To mount a partition automatically at every boot, you list it in/etc/fstab. There it is best to name the disk by itsUUID(fromblkid), because names like/dev/sdb1can swap around between reboots.
Common mistakes
mount errors look alike and mean different things. mount: /mnt: must be superuser to use mount. means you lack the rights and need sudo. mount: /mnt/data: special device /dev/sdb1 does not exist. means the device is not there, check lsblk. mount: /mnt/nope: mount point does not exist. means the directory for the mount point is missing, run mkdir. mount: /mnt/bad: wrong fs type, bad option, bad superblock on /dev/loop4 means the device is fine but the kernel found no filesystem it knows; blkid will name the type.
Mounting over a directory that already holds files hides them without a single warning. /mnt/data held notes.txt; after sudo mount /dev/loop1 /mnt/data only lost+found is visible and notes.txt is gone from ls. The file is intact and comes back after umount. The danger is the space: while the disk is mounted, writing 'into /mnt/data' lands on the disk, and the old files sit under the mount point holding blocks that du on that path can no longer see.
umount: /mnt/data: target is busy. almost always means you are standing inside it yourself: cd /mnt/data pins the mount point. Step out with cd and try again. If that is not it, find the holder with lsof +D /mnt/data or fuser -vm /mnt/data. umount -l detaches the point from the tree, but open files stay alive and the space stays taken.
In the book
This topic is covered in full in the chapter Disks, filesystems, and inodes.
See also
df and du, Free inodes: df -i, What an inode is, LVM: logical volumes.