大网数据广告活动
服务器运维问答

Boot stuck at "A start job is running for Create Volatile Files and Directories"

· 52CE 我爱测

I think something generated millions of files or folders in my /tmp on Ubuntu 18.04, as I'm unable to run ls /tmp or even rm -rf /tmp/* . So I tried rebooting, but now my machine's stuck at the step: A start job is running for Cr…

问题原文

原帖链接 · Cerin · CC BY-SA 4.0

I think something generated millions of files or folders in my /tmp on Ubuntu 18.04, as I'm unable to run ls /tmp or even rm -rf /tmp/*. So I tried rebooting, but now my machine's stuck at the step:

A start job is running for Create Volatile Files and Directories

I let it run for 10 hours, and it's still going, so it's likely swapping to disk and will never complete. What do I do? How do I clear my /tmp folder if I can't even boot the system?

Edit: I appended "systemd.debug-shell=1 systemd.show_status=false" so I could get to a shell. Then I killed the systemd-tmpfiles process and then ran mkdir /empty; time rsync -a --delete /empty/ /tmp/ to do a fast delete as suggested here. However, after 30 minutes, it's still running.

已采纳解答

原帖链接 · Eduardo Trápani · CC BY-SA 4.0

You can boot in single user mode, move the tmp folder, create a new clean one, set the permissions and reboot. Then you can do whatever needs to be done with the old tmp.

in the single user session do:

mv /tmp /old.tmp
mkdir /tmp
chmod 1777 /tmp

and reboot.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-10-10)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。