USB Sticks on Arch Linux
#linux#usb#storage#troubleshooting
Step 1: Identifying Your USB Device
Terminal Detection Methods
# Method 1: lsblk - Check partitions / List block deviceslsblk -f
# Method 2: dmesg - View kernel messagessudo dmesg | tail -20
# Method 3: fdisk - Detailed partition infosudo fdisk -lKey indicators:
/dev/sdX(X = letter assignment)- Filesystem type (vfat)
Step 2: Mounting & Accessing Files
Manual Mounting
# Create mount pointmkdir ~/usb-drive
# Mount device (example for NTFS)sudo mount -t ntfs /dev/sdX1 ~/usb-drive
# Access filescd ~/usb-drive && lsUnmounting Safely
Important: Always unmount before removal:
sudo umount ~/usb-drive
# Force unmount if busysudo umount -l ~/usb-drive # Lazy unmountTroublesheeting
If you are getting a mounting error, follow these steps:
Step 1: Identify Correct Partition
Are you’re trying to mount the entire device (/dev/sdb) instead of a partition? Check partitions:
# Identify card$ lsblk -fNAME FSTYPEsdb└─sdb1 vfat # <-- This is our partitionLook for your device (usually sdb or mmcblk0) and note the partition number (e.g., sdb1).
Step 2: Mount Correct Partition
# Mount partitionsudo mount -t vfat /dev/sdb1 ~/usb-drive
# Verifyls ~/sdcard