如何在 Alpine Linux 上自动挂载 CIFS/SMB
为了在 Alpine Linux 实例启动时自动挂载 CIFS,在 /etc/fstab 中使用类似这样的行:
how-to-automount-cifs-smb-on-alpine-linux.txt
//1.2.3.4/mydrive /mydrive cifs uid=1000,gid=1000,credentials=/root/.smb-credentials,iocharset=utf8,noperm 0 0使用类似这样的标准 /root/.smb-credentials:
smb_credentials_example.ini
user=myuser
password=raatahteiC1veiza8ahno8lu5quook并运行以下命令以在启动时启用自动挂载:
enable_netmount.sh
rc-update add netmount boot重启后,文件系统应自动挂载。
Check out similar posts by category:
Alpine Linux, Networking
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow