Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
deepin系统永久修改grub
Experiences and Insight
3510
views ·
4
replies ·
To
floor
Go
bingfengfeifei
deepin
2019-03-21 08:46
Author
在目前的deepin系统中,版本15.9.2,我们手动修改了grub之后,每次重启都会被重置为原始状态,所以我们修改是无效的。
这是因为在每次开机时,有一个daemon在修改我们的grub文件。网上流传的方法修改MD5值,在我这个版本是无效了的,所以我找了另一种方式来阻止daemon来修改grub文件。
我们使用下面命令查看dbus.service
systemctl status dbus.service
Copy the Code
可以看到有一个服务是/usr/lib/deepin-daemon/grub,其实就是该程序每次开机重置了grub,我们可以将此程序别名,这样开机时就不会自动调用了。
执行下面的命令,别名grub。
sudo mv /usr/lib/deepin-daemon/grub /usr/lib/deepin-daemon/grub.bak
Copy the Code
如果想恢复的话,就执行下面的命令来恢复grub命令
sudo mv /usr/lib/deepin-daemon/grub.bak /usr/lib/deepin-daemon/grub
Copy the Code
Reply
Like 0
Favorite
View the author
All Replies
呆了个呆
deepin
2019-03-21 18:51
#1
你去修改 /etc/grub.d/ 里的模板,再用 update-grub 更新一下就好了,没记错的话是这样操作的
Reply
Like 0
View the author
duanchi
deepin
2019-03-21 23:14
#2
修改/etc/grub.d/40_custom好像是这个文件。就好了,当然,update-grub一下
Reply
Like 0
View the author
海鸥
deepin
2019-03-22 01:38
#3
说了什么?
Reply
Like 0
View the author
bingfengfeifei
deepin
2019-03-22 04:26
#4
如果这个帖子被屏蔽了,那请版主提供一个解决办法。
我的屏幕分辨率是1920x1080的,但是我修改了/etc/default/grub的GRUB_GFXMODE=1920x1080之后,然后update-grub。之后当次重启生效,第二次开机,该文件又被自动写会GRUB_GFXMODE=1024x768之类的数值了,开机画面变得巨丑无比。我只是想让我的开机grub永久变成1080P显示而已。
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[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 Events
More
这是因为在每次开机时,有一个daemon在修改我们的grub文件。网上流传的方法修改MD5值,在我这个版本是无效了的,所以我找了另一种方式来阻止daemon来修改grub文件。
我们使用下面命令查看dbus.service
执行下面的命令,别名grub。