更新后grub.cfg文件修改后保存不会生效
Tofloor
poster avatar
young999888
deepin
2017-11-11 15:02
Author
用sudo gedit /boot/grub/grub.cfg 打开Grub配置文件,修改后保存不会生效,重启后还原到原来的样子。请大家指教?终端出现如下错误:
Reply Favorite View the author
All Replies
avatar
jjaacckk
deepin
2017-11-11 16:13
#1
不是还要grub-update吗,或者grub-mkconfig?
Reply View the author
avatar
mlx
deepin
2017-11-11 17:07
#2
这是个只读文件,把属性改一下,或者用vim编辑,强制保存
Reply View the author
avatar
sz******iy@vip.qq.com
deepin
2017-11-11 17:28
#3
因该说不建议修改 /boot/grub/grub.cfg ,而是去修改/etc/default/grub通过update-grub 来生成。

另外如果只是改开机grub选择界面的时间的话,15版设置里不会像14版一样修改成1,而是直接改成0。
Reply View the author
avatar
Lyvnee
deepin
2017-11-11 17:35
#4
四楼正解
Reply View the author
avatar
kingskill
deepin
2017-11-11 17:46
#5
https://bbs.deepin.org/post/147974
因该说不建议修改 /boot/grub/grub.cfg ,而是去修改/etc/default/grub通过update-grub 来生成。

另外如果 ...

如果这样的话,那grub不就是看不见了?
Reply View the author
avatar
jingle
deepin
2017-11-11 17:46
#6
https://bbs.deepin.org/post/147974
因该说不建议修改 /boot/grub/grub.cfg ,而是去修改/etc/default/grub通过update-grub 来生成。

另外如果 ...

楼上正解  etc/default/grub  不然每次更新内核会覆盖的
Reply View the author
avatar
young999888
deepin
2017-11-11 17:46
#7
修改/etc/default/grub时报出同样的错误
Reply View the author
avatar
Lyvnee
deepin
2017-11-11 18:07
#8
young999888 发表于 2017-11-11 09:46
修改/etc/default/grub时报出同样的错误

大哥那个错误是gedit的,和grub没什么关系
Reply View the author
avatar
young999888
deepin
2017-11-17 01:15
#9
https://bbs.deepin.org/post/147974
这是个只读文件,把属性改一下,或者用vim编辑,强制保存

只读属性怎么改?用vim编辑,怎么强制保存
Reply View the author
avatar
jingle
deepin
2017-11-17 01:20
#10
https://bbs.deepin.org/post/147974
只读属性怎么改?用vim编辑,怎么强制保存

sudo
Reply View the author
avatar
Oli
deepin
2024-07-16 11:52
#11

四楼正解

Reply View the author