Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 2087  / 1 Year ago, wed, april 19, 2023, 6:39:03

I've been looking around to solve a black screen problem and found some pages with a very similar solution but each one using different grub files to edit.



For instance I've found examples using grub here /etc/default/grub and here /boot/grub/grub.cfg.



What is the difference between them and which one should I edit?


More From » grub2

 Answers
6

As the comment at the start of /boot/grub/grub.cfg says:



#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#


In other words, any time you run update-grub or it is run for you ( for instance, when install a new kernel, or certain other packages ), grub.cfg is thrown out and recreated, so edit /etc/default/grub.


[#38108] Thursday, April 20, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tialmes

Total Points: 14
Total Questions: 108
Total Answers: 102

Location: Oman
Member since Thu, Jun 16, 2022
2 Years ago
;