- Install the
cifs-utils
package:sudo pacman –S cifs-utils
. - Make a mount folder for the SMB share:
sudo mkdir /mnt/<Path>
. - Create a backup of the
fstab
file (just in case):sudo cp /etc/fstab /etc/fstab_backup
. - Open the
fstab
file in your favorite editor:sudo vim /etc/fstab
. - Add the mount line:
//<Server_address>/<Server_share_and_internal_path> /mnt/<Path> cifs username=<Server_user>,pass=<Server_password> 0 0
.
- Save the file.
- Reload
fstab
:sudo mount -av
.
Thanks for this!
I ran into an issue with the drive being Read Only so I wanted to share the solution I found in case anyone else has the same issue. I was able to fix it by adding 'rw' and 'uid=1000,gid=1000' to the mount line. The updated line looked like this
//<Server_address>/<Server_share_and_internal_path> /mnt/<Path> cifs username=<Server_user>,pass=<Server_password>,rw,uid=1000,gid=1000 0 0
The rw term was the key, it seems self explanatory but it was the hardest to figure out since it took a while to find a post that mentioned it. (I wasn't able to go back and find it at the time of writing or I'd link it.) The uid and gid are for getting permissions to work with a Windows file system from what I understand.