Skip to content

Instantly share code, notes, and snippets.

@BoscoDomingo
Last active November 12, 2020 14:07
Show Gist options
  • Save BoscoDomingo/be50129381ec5f4a662f310fdfc5c03b to your computer and use it in GitHub Desktop.
Save BoscoDomingo/be50129381ec5f4a662f310fdfc5c03b to your computer and use it in GitHub Desktop.
Mount exFAT drive in Linux through CLI
sudo apt update
sudo apt install exfat-utils exfat-fuse
# If you have access to the GUI, you can simply go to the File Explorer and work from there. Otherwise:
# Find the name of the partition for your specific drive, you'll need it for the last step
lsblk # cat /proc/partitions works too, but lsblk is more readable
cd /media
sudo mkdir usb #or whatever name you want
sudo mount -t exfat /dev/sdc1 usb
#Unmounting
sudo umount /dev/sdc1
sudo umount /media/usb #Either one should work
#If you get an error, do
fuser -m /media/usb # or /dev/sdc1
sudo kill PID_shown_in_fuser
# sudo kill -9 PID if it won't stop
sudo umount /media/usb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment