在生產系統(Centos 7)上運行“mount -a”時,我得到返回代碼 64try: subprocess.check_call(["mount", "-a"])except subprocess.CalledProcessError as e: raise Exception("Failed to run mount command. error:%s", str(e))以下是日志:raise Exception("Failed to run mount command. error:%s", str(e))Exception: ('Failed to run mount command. error:%s', "Command '['mount', '-a']' returned non-zero exit status 64")退出代碼 64 是什么意思?
1 回答

qq_笑_17
TA貢獻1818條經驗 獲得超7個贊
這意味著某些文件系統無法掛載,但其他文件系統成功。
返回代碼
?mount has the following return codes (the bits can be ORed):
? ?0? ? ? success
? ?1? ? ? incorrect invocation or permissions
? ?2? ? ? system error (out of memory, cannot fork, no more loop devices)
? ?4? ? ? internal mount bug
? ?8? ? ? user interrupt
? ?16? ? ?problems writing or locking /etc/mtab
? ?32? ? ?mount failure
? ?64? ? ?some mount succeeded
? ?The command mount -a returns 0 (all succeeded), 32 (all failed), or 64 (some failed,? some
? ?succeeded).
添加回答
舉報
0/150
提交
取消