Skip to content

Instantly share code, notes, and snippets.

@leo-aa88
Created December 2, 2025 03:55
Show Gist options
  • Select an option

  • Save leo-aa88/f0835e844115c23af07e0f4cdfbb594e to your computer and use it in GitHub Desktop.

Select an option

Save leo-aa88/f0835e844115c23af07e0f4cdfbb594e to your computer and use it in GitHub Desktop.

Mount a USB in Arch Linux (manually)

1. Identify the device

lsblk

Look for something like /dev/sdb1 (the partition, usually the USB).


2. Create a mount point

sudo mkdir -p /mnt/usb

3. Mount it

Example for a FAT32/NTFS/ext4 USB:

sudo mount /dev/sdb1 /mnt/usb

If the filesystem isn’t auto-detected:

  • NTFS:
sudo mount -t ntfs3 /dev/sdb1 /mnt/usb
  • FAT32:
sudo mount -t vfat /dev/sdb1 /mnt/usb
  • exFAT:
sudo mount -t exfat /dev/sdb1 /mnt/usb

4. Access files

cd /mnt/usb

5. Unmount when done

sudo umount /mnt/usb

Quick tip (optional): auto-mount with file manager

If you have udisks2 + a desktop environment, the USB auto-mounts. If you’re using a WM, install:

sudo pacman -S udiskie

Then run:

udiskie &

It will automatically mount USB drives under /run/media/$USER/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment