Auto mount a network share on Linux

Another common task I do is mounting a network share on Debian, and always have to reference a previous VM config.

# /etc/fstab

//10.0.1.100/Share /mnt/share username=username,password=password,uid=1000,gid=1000,_netdev,nofail,x-systemd.automount,x-systemd.requires=network-online.target 0 0

Breakdown of each section

Remote Source
//10.0.1.100/Share

Local Folder
/mnt/share

Credentials
username=username,password=password

Forces all files to be owned by User ID 1000.
Prevents read-only files
uid=1000,gid=1000

This depends on the network
_netdev

Will still boot if fails
nofail

Shares only mount when accesses
x-systemd.automount

Ensures network is fully online before mount
x-systemd.requires=network-online.target

First 0 - disables backup dump
Second 0 - disables filesystem check
0 0