From 6648315836e622c7f661ad2f6a254c45bbf4a4ec Mon Sep 17 00:00:00 2001 From: chenkuangwei Date: Sat, 14 Mar 2026 11:34:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=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, 10 insertions(+) create mode 100644 linux/linux单用户.md diff --git a/linux/linux单用户.md b/linux/linux单用户.md new file mode 100644 index 0000000..16e3da0 --- /dev/null +++ b/linux/linux单用户.md @@ -0,0 +1,10 @@ +启动按 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