From fe1ccab45e2e4993dc647d3b474f98262a5c89dc Mon Sep 17 00:00:00 2001 From: chenkuangwei Date: Sat, 14 Mar 2026 11:34:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20linux/linux=E5=8D=95?= =?UTF-8?q?=E7=94=A8=E6=88=B7.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linux/linux单用户.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/linux/linux单用户.md b/linux/linux单用户.md index 16e3da0..36f15f0 100644 --- a/linux/linux单用户.md +++ b/linux/linux单用户.md @@ -1,10 +1,18 @@ 启动按 esc 进入启动菜单选项 + 按 e 进入grub 编辑 + 在linux 后面追加 init=/bin/bash + 按ctrl+x 启动 + mount -o remount,rw / 挂载可读权限 + 屏蔽 service 启动 + systemctl mask systemd-tmpfiles-setup.service + 恢复启动 -systemctl unmask systemd-tmpfiles-setup.service \ No newline at end of file + +systemctl unmask systemd-tmpfiles-setup.service