SMB mount
00 min
2024-12-16
  1. Install SMB protocol package
  1. Verify the package
notion image
  1. Create the folder you want to link with.
  1. Mount the disk to your local location.
  1. Enter your password and the SMB will be successfully linked.
  1. Edit /etc/fstab to enable the SMB link after reboot.
    1. 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
       
上一篇
HB
下一篇
AZ-900