Last active
January 7, 2024 17:56
-
-
Save gmolveau/b7dd67d78650cbe3398c520fba13fe87 to your computer and use it in GitHub Desktop.
ubuntu server automount usb hard drive exfat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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