故障排除
问题:
Enter new UNIX password: Retype new UNIX password: passwd: Authentication token manipulation error passwd: password unchanged
root分区以只读方式挂载。
解决方法:
# mount -o remount,rw /
问题:
[ end Kernel panic - not syncing: Attempted to kill init! exit code=0x0007f00
确保在编辑GRUB的菜单项时删除了“Splash”启动选项。
问题:
当用reboot
命令重新启动时:
Failed to connect to bus: No such file or directory Failed to talk to init daemon.
忽略,使用下面命令重启:
# exec /sbin/init
编辑grub菜单
重新启动到GRUB菜单后,选择我们通常用于引导Ubuntu系统的第一个菜单项,然后按e
键编辑。
重启系统
使用以下Linux命令重新启动系统:
root@(none):/# exec /sbin/init
重新启动到Grub菜单
重启Ubuntu 16.04 Linux系统。
按下SHIFT
键,等待出现GRUB的菜单,按上下箭头选择引导菜单。
重置root的密码
系统将进入 root shell命令行,root分区是读写挂载的,
可以使用下面命令确认:
root@(none):/# mount | grep -w /
只需运行passwd
命令重置root的密码。
root@(none):/# passwd
root的密码现在已重置。
更改启动菜单
找到以linux
开头的行,为其添加 读写模式rw
和init = / bash
。
例如
将
linux /boot/vmlinuz-4-4.0-22-generic root=UUID=43ad24d3-e\ c5b-44ee-a099-a88eb9520989 ro quiet splash $vt_handoff
改成:
linux /boot/vmlinuz-4-4.0-22-generic root=UUID=43ad24d3-e\ c5b-44ee-a099-a88eb9520989 rw init=/bin/bash
然后按“Ctrl + x”或者“f10”。
日期:2020-07-07 20:55:36 来源:oir作者:oir