Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
Deepin修复UEFI的grub2引导不加载菜单
Experiences and Insight
8091
views ·
6
replies ·
To
floor
Go
comzhong
deepin
2016-12-25 05:55
Author
本帖最后由 comzhong 于 2016-12-27 12:59 编辑
Deepin在ESP分区的引导文件删掉了,(我手动添加引导,启动了本机Deepin)使用
grub-install /boot/efi
安装引导后,在ESP分区添后如下目录和文件
-----------------------begin------------------------------
/EFI/
--/deepin
--grub.cfg
grubx64.efi
MokManager.efi
shimx64.efi
-------------------------end-----------------------------
但启动后停留在grub命令行,没有自动加载grub.cfg,手动执行:
configfile /efi/deepin/grub.cfg
后,自动加载boot分区启动菜单,其它地方都正常。
经测试,命令:grub-install /boot/efi 没有生成下面的目录和文件导致
-----------------------begin------------------------------
/EFI/
--/ubuntu
--grub.cfg
-------------------------end-----------------------------
Deepin添加到系统UEFI启动序列的是shimx64.efi文件,启动后顺序加载顺序为:
shimx64.efi --> grubx64.efi --> /EFI/ubuntu/grub.cfg
也就是说/EFI/deepin/grub.cfg这个文件就是目前没起作用,这个算是从Ubuntu过来的遗留问题吧,望早日解决!
传上文件,可用于在Windows下修复引导用,解压于ESP分区,改改/EFI/ubuntu/grub.cfg中分区UUID和分区号指向boot分区,用bootice或easyUEFI添加shimx64.efi到启动序列就可以了
Deepin_EFI_x64.zip
grub.cfg内容
-----------------------begin------------------------------
search.fs_uuid
04b19db9-5f78-4cb0-ab7e-419fc68bcba1
root
hd0,gpt4
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
-------------------------end-----------------------------
Reply
Like 1
Favorite
View the author
All Replies
comzhong
deepin
2016-12-26 03:04
#1
https://bbs.deepin.org/user/48640
Reply
Like 0
View the author
wangqizai1918
deepin
2016-12-26 03:11
#2
学习了,给楼主点赞
Reply
Like 0
View the author
wuhaocn2008
deepin
2018-07-17 22:48
#3
赞~ 我的就是这个问题。。。。。
Reply
Like 0
View the author
newlifedeepin
deepin
2018-10-04 00:40
#4
谢谢,解决了我的问题。谁会想到debian,居然要ubuntu config。。。还有网上很多教学都是grub install /dev/sda.
Reply
Like 0
View the author
JadeHua
deepin
2018-12-11 19:49
#5
谢谢了,
Reply
Like 0
View the author
coopers
deepin
2018-12-12 22:23
#6
good job
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More
Deepin在ESP分区的引导文件删掉了,(我手动添加引导,启动了本机Deepin)使用
grub-install /boot/efi
安装引导后,在ESP分区添后如下目录和文件
-----------------------begin------------------------------
/EFI/
--/deepin
--grub.cfg
grubx64.efi
MokManager.efi
shimx64.efi
-------------------------end-----------------------------
但启动后停留在grub命令行,没有自动加载grub.cfg,手动执行:
configfile /efi/deepin/grub.cfg
后,自动加载boot分区启动菜单,其它地方都正常。
经测试,命令:grub-install /boot/efi 没有生成下面的目录和文件导致
-----------------------begin------------------------------
/EFI/
--/ubuntu
--grub.cfg
-------------------------end-----------------------------
Deepin添加到系统UEFI启动序列的是shimx64.efi文件,启动后顺序加载顺序为:
shimx64.efi --> grubx64.efi --> /EFI/ubuntu/grub.cfg
也就是说/EFI/deepin/grub.cfg这个文件就是目前没起作用,这个算是从Ubuntu过来的遗留问题吧,望早日解决!
传上文件,可用于在Windows下修复引导用,解压于ESP分区,改改/EFI/ubuntu/grub.cfg中分区UUID和分区号指向boot分区,用bootice或easyUEFI添加shimx64.efi到启动序列就可以了
Deepin_EFI_x64.zip
grub.cfg内容
-----------------------begin------------------------------
search.fs_uuid 04b19db9-5f78-4cb0-ab7e-419fc68bcba1 root hd0,gpt4
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
-------------------------end-----------------------------