type
status
date
slug
summary
tags
category
icon
password
信创环境每次重启都需要加载共享盘都要输入密码,非常麻烦,所以查了下如何自动挂载,方法记录如下:
- 安装依赖
- 创建 SMB 凭据文件
- 创建
credentials
文件: - 写入以下内容:
- 创建挂载目录
- 编辑
/etc/fstab
文件
- 通过运行以下命令来测试挂载设置:
- Author:Jarrett Au
- URL:https://blog.coding-park.top//article/linux-smb
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!