Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:linux-tutorials:mount-cifs-share-static [2023/07/30 12:12] – removed - external edit (Unknown date) 127.0.0.1linux:linux-tutorials:mount-cifs-share-static [2025/01/06 13:33] (current) Zyzonix
Line 1: Line 1:
 +===== Mount CIFS/SMB-Share static on Linux =====
  
 +This quick guide shows how to mount a CIFS/SMB-Share across over reboots on Debian-based installations.
 +
 +**1.** Install the package ''cifs-utils'':
 +<code bash>sudo apt install cifs-utils</code>
 +
 +**2.** Append this to your ''/etc/fstab'' file:
 +<code bash>
 +//<path-to-share> <path-to-mountpoint> cifs credentials=/root/smbcredentials,uid=1000 0 0
 +</code>
 +
 +**3.** Store your login credentials under ''/root/smbcredentials'', therefore create this file and insert this:
 +<code bash>
 +domain=<domain>
 +username=<username>
 +password=<password>
 +</code>
 +If not using domain authentication just remove the ''domain'' line.
 +''domain'' should be the //NetBIOS//-Name of your domain.
 +Password and username must be without ' at beginning and end.
 +
 +**4.** Mount your share manually or reboot your system:
 +<code bash>sudo mount -a</code>
 +
 +Now your share will be mounted across reboots!