Linux Storage

Mount a USB drive temporarily on Linux

Quick read/write access to USB sticks without editing fstab.

10 min read Beginner Updated 9 Jun 2026

Step-by-step guide

Work through each section in order. Stop when your issue is resolved — you do not need every step for every situation.

Warning

Mounting as root on a desktop can confuse file managers and leave root-owned files on FAT drives. Always unmount before physical removal — yanking USB mid-write corrupts filesystems.

What you will achieve

Mount and unmount a USB stick on Ubuntu or Debian for temporary access — without editing /etc/fstab — using lsblk, mount, or udisksctl.

1) Plug in and identify the device

lsblk -f
sudo blkid

Look for removable size (often sdb1 or sdc1). Confirm by unplugging and running lsblk again — the device should disappear. Never mount /dev/sdb (whole disk) when you mean the partition /dev/sdb1.

2) Create mount point and mount manually

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

Specify filesystem if auto-detection fails:

sudo mount -t exfat /dev/sdb1 /mnt/usb
sudo mount -t ntfs-3g /dev/sdb1 /mnt/usb

Install drivers if needed: sudo apt install exfatprogs ntfs-3g.

3) Writable mount for desktop user

sudo mount -o uid=1000,gid=1000,umask=022 /dev/sdb1 /mnt/usb

Replace 1000 with your user's uid from id -u. FAT/exFAT have no native ownership — these options fake it.

4) udisksctl (no root for mount on desktop)

udisksctl mount -b /dev/sdb1
udisksctl unmount -b /dev/sdb1

Mounts under /media/$USER/Label with correct polkit permissions. Preferred on Ubuntu Desktop when available.

5) Safe unmount

sync
sudo umount /mnt/usb

target is busy means a shell or file manager has cwd on the mount — close files and retry:

sudo fuser -mv /mnt/usb
sudo umount -l /mnt/usb   # lazy unmount — last resort

6) Read-only mount for forensics

sudo mount -o ro /dev/sdb1 /mnt/usb

Use when examining suspicious or damaged drives without altering evidence.

7) Desktop auto-mount behaviour

GNOME and KDE often mount USB automatically via udisks2. If manual root mount conflicts with the desktop, unmount everywhere first: close file manager tabs, then udisksctl unmount -b /dev/sdb1 before using sudo mount.

Prerequisites

USB device plugged in, filesystem drivers installed for NTFS/exFAT if needed, and mount point directory created under /mnt/ or user media path.

Verify

findmnt /mnt/usb
touch /mnt/usb/.write-test && rm /mnt/usb/.write-test

Confirm mount options, free space with df -h /mnt/usb, then unmount cleanly before ejecting.

Related guides

linux mount usb