超简单debian root密码恢复

An automatic file system check (fsck) of the root filesystem fialed.
A manual fsck must be performed, then the system restarted.
The fsck should be performed in maintenance mode with the root filesystem mounted in read-only mode.
*The root system is currently mounted in read-only mode.
A maintenance shell will now be started.
After performing system maintenance , press CONTROL-D to terminate,the maintenance shell and restart the system.
Give root password for maintenace
(or type Control-D to continue)

root没有密码怎么办?
受下文启发解决此问题。

debian root密码恢复详细步骤
开机当进入Grub启动项时按下”e”键盘编辑Grub启动项
找到类似于“kernel /vmlinuz-”这一句
并在该句后面加上“init=/bin/bash”
按下“ctrl+x”退出重启,有些是按“b”键盘
重启系统之后默认进入shell终端
修改、根目录为可写
mount -no remount,rw /
修改新的root密码
passwd root
恢复根分区目录
mount -no remount,ro /
执行reboot命令重启系统即可



From: http://www.2cto.com/Article/201308/232917.html

你可能感兴趣的:(Linux)