日期:2014-05-16  浏览次数:20775 次

linux mount
ubuntu 11.10发行版

在tty1 mount了下。发现如下信息
/dev/sdb2 on /type ext5 (rw, errors=remount-ro, commit=0)
...

问:上一句中的括号里头erros=remount-ro和commit=0分别代表什么意思。
errors=remount-ro是说我挂载错误吗?

------解决方案--------------------
man mount 
 
errors={continue|remount-ro|panic}
Define the behaviour when an error is encountered. (Either
ignore errors and just mark the filesystem erroneous and con‐
tinue, or remount the filesystem read-only, or panic and halt
the system.) The default is set in the filesystem superblock,
and can be changed using tune2fs(8).
重新挂在文件系统只读
------解决方案--------------------
commit=nrsec
Sync all data and metadata every nrsec seconds. The default
value is 5 seconds. Zero means default.
同步所有数据和元数据每nrsec秒。默认是5秒。0意味着默认。
------解决方案--------------------
errors={continue|remount-ro|panic}
Define the behaviour when an error is encountered. (Either ignore errors and just mark the filesystem erroneous and continue, or remount
the filesystem read-only, or panic and halt the system.)


------解决方案--------------------
出错时,重新挂载为只读