- Install SMB protocol package
- Verify the package
- Create the folder you want to link with.
- Mount the disk to your local location.
- Enter your password and the SMB will be successfully linked.
- Edit
/etc/fstab
to enable the SMB link after reboot.
Add the following line to/etc/fstab
:Replace username and password with your actual credentials. This will ensure the SMB share is automatically mounted at system startup.you can store credentials in a credentials file. Create a file (e.g.,~/.smbcredentials
) with the following format:Then modify your/etc/fstab
entry to use the credentials file instead:Make sure to secure the credentials file by setting appropriate permissions:chmod 600 ~/.smbcredentials