4

Linux 即时修改 启动级别 启动参数 磁盘满无法进系统 忘记密码

 3 years ago
source link: http://abcdxyzk.github.io/blog/2014/08/14/kernel-init-edit-args/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Linux 即时修改 启动级别 启动参数 磁盘满无法进系统 忘记密码

2014-08-14 17:20:00

1、修改启动级别错误配置的方法

如果你不小心把级别设成0或6,用下边的方法补救:
1. 启动系统后,在倒计时结束前按任意键,进入grub引导界面
2. 在grub引导界面的输入‘e’,进入下一级,高亮第二行,再输入‘e’
3. 在最后输入 1[单用户模式] 按回车回到上一级(单用户模式启动不会去读取/etc/inittab) 4. 输入‘b’重启系统

也可以改其他启动参数 进行紧急引导最简单的方法是:
把 init=/bin/bash 或 init=/bin/sh 选项传递给内核

2、磁盘满导致无法进入系统

删除一些文件后重启
没法删除 说文件系统是只读的 ,重新mount 你的磁盘系统为可读写的。

mount -o remount,rw  /
3、忘记密码

passwd user

Posted by kk

2014-08-14 17:20:00kernel, base

« kexec-tools-1.102pre-164.el5 之前的有问题 VMware增加磁盘空间 »


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK