Luc*_*c M 151 fedora mount fstab
我修改了/etc/fstab。
我验证了新设备,我可以使用mount命令挂载它们。
我如何验证对 所做的修改/etc/fstab?
Pri*_*rix 170
您可以简单地运行: mount -a
-a 挂载 fstab 中提到的所有文件系统(给定类型的)。
此命令将挂载 fstab 中提到的所有(尚未挂载的)文件系统,并在引导期间用于系统脚本启动。
tro*_*nda 83
mount 命令采用--fake或-f简称。以下命令应该可以满足您的需求:
mount -fav
Run Code Online (Sandbox Code Playgroud)
以下是-f选项的文档:
Causes everything to be done except for the actual system call; if it's not obvious, this ``fakes'' mounting the filesystem. This option is useful in conjunction with the -v flag to determine what the mount command is trying to do.
(注意这是 Linux - 在其他地方使用之前检查:FreeBSD-f用于 'force' - 完全相反的含义。)
小智 51
sudo findmnt --verify --verbose 是我找到的最好的方法
| 归档时间: |
|
| 查看次数: |
134125 次 |
| 最近记录: |