mount: XXX: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.
其实是因为没安装nfs-utils导致的
因为我们安装的 CentOS8.2 使用的是国外的软件源,所以需要先换国内的软件源,这里选择相对稳定的阿里源
rm -rf CentOS-Base.repo CentOS-Extras.repo CentOS-AppStream.repo
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
yum makecache
更换源站后继续安装nfs-utils
dnf install nfs-utils
然后再重新执行mount操作即可。
原创文章,转载请注明: 转载自混沌
本文链接地址: Mount出错,提示you might need a /sbin/mount.