如果我在/ etc / fstab中添加选项,remount命令会这样做吗?
这是个好主意吗?
解决方法
不再. -o remount,noatime是一种在不重启的情况下禁用atime的有效方法.
我不知道我会说这是一个好主意,但如果你打算暂时关闭,我不会看到如果你有一个足够老的内核会是一个坏主意.根据mount的手册页:
MS_REMOUNT
The following mountflags can be changed: MS_RDONLY,MS_SYNCHRONOUS,MS_MANDLOCK; before kernel 2.6.16,the following could also be changed: MS_NOATIME and MS_NODIRATIME; and,additionally,before kernel 2.4.10,the following could also be changed: MS_NOSUID,MS_NODEV,MS_NOEXEC.