Skip to content

Instantly share code, notes, and snippets.

@ratacibernetica
Created June 10, 2020 22:37
Show Gist options
  • Save ratacibernetica/f688460f7317672e79dc28f5a0c7dfec to your computer and use it in GitHub Desktop.
Save ratacibernetica/f688460f7317672e79dc28f5a0c7dfec to your computer and use it in GitHub Desktop.
automatically mount network drives in linux

find the UUID with lsblk -o UUID,NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL,MODEL Make sure you create /home/pi/shared first.

#this is a network share with no authentication
//192.168.50.1/MACOZ-240 /mnt/shared cifs username=guest,password=,vers=1.0,_netdev 0 0

#this is a fat32 drive attached to USB
UUID=XYZ-123	/home/pi/shared	vfat	defaults,auto,users,rw,nofail,umask=000,x-systemd.device-timeout=3 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment