记录 deepin 启动修复

现象

开机进入grub

解决方法:

ls 命令 查看有那些分区  如(hd0,msdos1)、(hd0,gpt1)等

Msdos是 mbr分区表    gpt是gpt分区表

查找自己的boot分区和根分区

如  ls (hd0,6)/    查看0号硬盘的第6个分区的内容

参照 deepin wiki

启动修复

https://wiki.deepin.org/wiki/%E4%BF%AE%E5%A4%8D%E5%90%AF%E5%8A%A8

prefix=(hd0,5)/boot/grub 

其中(hd0,5)为系统根分区   

我的根分区(hd0,5)文件系统为xfs    deepin20的boot分区(hd0,6)为ext2格式

linux (hd0,6)/vmlinuxxxxxx(按tab补全) root=/dev/sda5  foo bar

注意空格root后跟根分区名称。

 

initrd (hd0,6)/boot/initxxx(按tab补全)

 

boot

 

启动系统

进入系统后  sudo update-grub 更新 grub

然后打开 商店的grub-customizer应用,更新信息,保存,文件-安装到mbr

重启即可

 

 

原文地址:https://www.cnblogs.com/XUEYEYU/p/15354274.html