Skip to content

Instantly share code, notes, and snippets.

@kgsnipes
Created July 9, 2022 13:40
Show Gist options
  • Save kgsnipes/349b2b83340039b8e863f82baef984ce to your computer and use it in GitHub Desktop.
Save kgsnipes/349b2b83340039b8e863f82baef984ce to your computer and use it in GitHub Desktop.
mounting exfat on raspberry
#update apt
sudo apt-get update
sudo apt-get upgrade
#install
sudo apt-get install exfat-fuse
sudo apt-get install exfat-utils
#create directory
sudo mkdir /media/exfat
#list partitions
$ lsblk
#mount partition
sudo mount -t exfat /dev/sda2 /media/exfat
#find uuid of the device
$ blkid
#mount automatically on reboot
sudo nano /etc/fstab
#add this line to the end of the file.
UUID=CA1C-06BC /media/exfat exfat defaults,auto,umask=000,users,rw 0 0
#formatting a partition to exfat
mkfs.exfat /dev/sda2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment