Skip to content

Instantly share code, notes, and snippets.

@ErykDarnowski
Last active April 2, 2024 21:31
Show Gist options
  • Save ErykDarnowski/9f569d9d50d9379cd1e2e9ba27e9a842 to your computer and use it in GitHub Desktop.
Save ErykDarnowski/9f569d9d50d9379cd1e2e9ba27e9a842 to your computer and use it in GitHub Desktop.
How to automatically mount network a Samba share on Arch Linux!

How to automatically mount network a Samba share on Arch Linux!

  1. Install the cifs-utils package: sudo pacman –S cifs-utils.
  2. Make a mount folder for the SMB share: sudo mkdir /mnt/<Path>.
  3. Create a backup of the fstab file (just in case): sudo cp /etc/fstab /etc/fstab_backup.
  4. Open the fstab file in your favorite editor: sudo vim /etc/fstab.
  5. Add the mount line: //<Server_address>/<Server_share_and_internal_path> /mnt/<Path> cifs username=<Server_user>,pass=<Server_password> 0 0.
  1. Save the file.
  2. Reload fstab: sudo mount -av.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment