Skip to content

Instantly share code, notes, and snippets.

@teuteuguy
Last active May 30, 2020 09:02
Show Gist options
  • Select an option

  • Save teuteuguy/0c1ac2f33ba4af5403f2dffc1263cecc to your computer and use it in GitHub Desktop.

Select an option

Save teuteuguy/0c1ac2f33ba4af5403f2dffc1263cecc to your computer and use it in GitHub Desktop.
#!/bin/bash
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
echo "You must sudo this script"
exit
fi
apt-get update
apt-get upgrade -y
apt-get install -y exfat-fuse exfat-utils
mkdir /media/exfat
echo >> /etc/fstab
# echo /dev/sda2 /media/exfat exfat defaults,user,nofail 0 2 >> /etc/fstab
echo /dev/sda2 /media/exfat exfat defaults,auto,users,rw,nofail 0 0 >> /etc/fstab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment