当前位置: 技术问答>linux和unix
关于编辑crontab定时任务是报错
来源: 互联网 发布时间:2017-05-30
本文导语: 系统是Debian GNU/Linux 6.0.7 (squeeze) 今天执行cronta -e 编辑一个定时任务, 却发现wq保存退出后报错: crontab: installing new crontab /var/spool/cron/: mkstemp: Read-only file system crontab: edits left in /tmp/crontab.nvGPAN/crontab 以上是...
系统是Debian GNU/Linux 6.0.7 (squeeze)
今天执行cronta -e 编辑一个定时任务, 却发现wq保存退出后报错:
crontab: installing new crontab
/var/spool/cron/: mkstemp: Read-only file system
crontab: edits left in /tmp/crontab.nvGPAN/crontab
以上是报错信息, 该错误使得定时任务不能被保存, 并在/tmp目录下创建一个 /crontab.nvGPAN/crontab 路径文件.
已经排除是语法错误, 磁盘空间也完全够用, 那句 /var/spool/cron/: mkstemp: Read-only file system 令我非常奇怪. 请教坛子里的诸位大神解惑. 非常感谢.
今天执行cronta -e 编辑一个定时任务, 却发现wq保存退出后报错:
crontab: installing new crontab
/var/spool/cron/: mkstemp: Read-only file system
crontab: edits left in /tmp/crontab.nvGPAN/crontab
以上是报错信息, 该错误使得定时任务不能被保存, 并在/tmp目录下创建一个 /crontab.nvGPAN/crontab 路径文件.
已经排除是语法错误, 磁盘空间也完全够用, 那句 /var/spool/cron/: mkstemp: Read-only file system 令我非常奇怪. 请教坛子里的诸位大神解惑. 非常感谢.
|
generally speaking, if I saw this message, my first reaction would be: oops, I have a corrupted file system. You may want to run a fsck against that partition...
unless u did mount /var or whatever mounting point that has this path as read only...
unless u did mount /var or whatever mounting point that has this path as read only...