我需要重设密码。我已按照以下步骤操作:
但是,然后我转到“root”或“netroot”恢复选项,它告诉我:
Give root password for maintenance (or type Control-D to continue)
Run Code Online (Sandbox Code Playgroud)
显然,我不知道 root 密码。如果我输入CTRL+ D,我将返回到选项列表。从这个页面我读到:
在“另一种方式”一章下:
4. Highlight the line that begins kernel and press 'e' to edit`
Run Code Online (Sandbox Code Playgroud)
但是在 grub 配置文件中,我没有以kernel
. 仅有的:
setparams 'Ubuntu...'
recordfail
set gxfpayload...
insmod part_msdos
insmod ext2
set root=...
search --no-floppy...
linux /boot/vmlinuz-2.6.38...
initrd /boot/initrd.img-2.6....
Run Code Online (Sandbox Code Playgroud)
这些都是我的 GRUB 中的所有行。我应该编辑哪一行?或者还有其他方法可以重置我的密码吗?