Skip to content

Instantly share code, notes, and snippets.

@gmolveau
Last active January 7, 2024 17:56
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gmolveau/b7dd67d78650cbe3398c520fba13fe87 to your computer and use it in GitHub Desktop.
Save gmolveau/b7dd67d78650cbe3398c520fba13fe87 to your computer and use it in GitHub Desktop.
ubuntu server automount usb hard drive exfat
sudo fdisk -l
sudo blkid
# note the UUID
# create the folder where you want the USB drive to be mounted
sudo mkdir -p /media/usb
# if your USB drive is in exfat
sudo apt install exfat-fuse exfat-utils
sudo nano /etc/fstab
# add the following line
UUID=<UUID_OF_YOUR_USB_DRIVE> /media/usb auto nosuid,nodev,nofail 0 0
sudo mount -a
# source and inspiration : https://www.techrepublic.com/article/how-to-properly-automount-a-drive-in-ubuntu-linux/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment