
Most Linux desktops mount USB drives automatically when you plug them in. On a server, a minimal install or a system without a desktop, you mount them yourself from the terminal. This guide shows how to find the USB drive, mount it manually, mount it as a normal user, handle NTFS and exFAT drives from Windows, mount it automatically at boot with /etc/fstab, and safely unmount it, plus fixes for the most common errors.
Quick answer
lsblk # find the drive, e.g. /dev/sdb1
sudo mkdir -p /mnt/usb
sudo mount /dev/sdb1 /mnt/usb # mount
sudo umount /mnt/usb # unmount before unplugging
Step 1: Identify the USB drive
Plug in the drive, then list block devices:
lsblk -o NAME,SIZE,FSTYPE,LABEL,MOUNTPOINTS
USB drives usually appear as sdb, sdc and so on, with partitions such as sdb1. Match the size and label to your drive. You can also run sudo dmesg | tail right after plugging it in to see which name the kernel gave it, or sudo blkid to see filesystem types and UUIDs.
Be careful: /dev/sda is usually your system disk. Mounting the wrong device is harmless, but formatting it is not.
Step 2: Create a mount point
sudo mkdir -p /mnt/usb
A mount point is just an empty folder where the drive's contents will appear. /mnt and /media are the usual places.
Step 3: Mount the drive
sudo mount /dev/sdb1 /mnt/usb
ls /mnt/usb
Linux detects the filesystem type automatically in most cases. If it does not, specify it with -t, for example -t vfat, -t exfat, -t ntfs3 or -t ext4.
Mount FAT32, exFAT and NTFS drives with your own permissions
FAT32, exFAT and NTFS do not store Linux file ownership, so after sudo mount the files belong to root and normal users cannot write. Mount them with your user and group ID:
sudo mount -o uid=$(id -u),gid=$(id -g) /dev/sdb1 /mnt/usb
Notes on Windows filesystems:
- exFAT is supported by the kernel on current distributions; on older ones, install
exfatprogs. - NTFS uses the kernel's
ntfs3driver on recent kernels, or thentfs-3gpackage. If Windows was not shut down cleanly or Fast Startup is on, Linux may mount NTFS read-only; shut Windows down fully or run a disk check in Windows.
For Linux filesystems such as ext4, change ownership of the folder instead: sudo chown $USER: /mnt/usb.
Mount without sudo using udisksctl
On systems with udisks2 (most desktops and many servers), a normal user can mount removable drives:
udisksctl mount -b /dev/sdb1
udisksctl unmount -b /dev/sdb1
udisksctl power-off -b /dev/sdb
The drive is mounted under /media/$USER/LABEL or /run/media/$USER/LABEL.
Step 4: Unmount safely
sync
sudo umount /mnt/usb
Always unmount before unplugging; Linux caches writes, and pulling the drive early can corrupt files. sync flushes pending writes first.
Mount a USB drive automatically at boot
For a drive that stays connected, such as a backup disk, add it to /etc/fstab using its UUID (device names like sdb1 can change):
sudo blkid /dev/sdb1
Then add a line to /etc/fstab:
UUID=1234-ABCD /mnt/usb exfat defaults,nofail,uid=1000,gid=1000 0 0
The nofail option is essential: without it, the system can stop at an emergency prompt during boot if the drive is not connected. Test the entry before rebooting:
sudo systemctl daemon-reload
sudo mount -a
If mount -a prints no errors, the entry is correct.
Troubleshooting
- The drive does not appear in lsblk: try another port or cable, check
sudo dmesg | tailfor errors, and on a VPS remember that physical USB drives cannot be attached to cloud servers. - "wrong fs type, bad option, bad superblock": the filesystem type is wrong or a driver is missing. Check with
blkidand installexfatprogsorntfs-3gif needed. - "umount: target is busy": a terminal or program is still using the drive. Leave the folder (
cd ~), close programs, or find them withsudo lsof +f -- /mnt/usb. - Mounted but cannot write: mount with
uid/gidoptions for FAT, exFAT and NTFS, or check whether NTFS was mounted read-only. - Several partitions (sdb1, sdb2): mount each separately to its own folder.
Frequently asked questions
How do I find my USB drive in Linux?
Run lsblk or sudo fdisk -l after plugging it in. It usually appears as /dev/sdb with a partition such as /dev/sdb1.
Where are USB drives mounted in Linux?
Desktops mount them under /media/username/ or /run/media/username/. When you mount manually, they appear wherever you choose, such as /mnt/usb.
Is it safe to permanently mount a USB drive?
Yes, if you use the UUID and the nofail option in /etc/fstab, so the system still boots when the drive is missing.
How do I format a USB drive in Linux?
Unmount it, then use a tool such as sudo mkfs.exfat /dev/sdb1 or GNOME Disks. Double-check the device name, because formatting erases everything on it.


