LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   When you edit GRUB is it permanent? (https://www.linuxquestions.org/questions/linux-newbie-8/when-you-edit-grub-is-it-permanent-4175498791/)

sigint-ninja 03-19-2014 04:51 PM

When you edit GRUB is it permanent?
 
when the system starts
and you press escape to get to the GRUB menu
then e to edit
and b to boot...are those changes permanent? or is it just for that session? do you have to make changes in Grubd.conf or something for changes to affect every boot up?

thanks

redd9 03-19-2014 05:21 PM

If you make a change by pressing e to edit, it will only last until your next reboot. To make a permanent change, run the command
Code:

sudo gedit /boot/grub/menu.lst
substituting gedit with your favourite editor.
Source: http://grumpymole.blogspot.ca/2007/0...arameters.html

sigint-ninja 03-19-2014 05:26 PM

thanks red9

TobiSGD 03-19-2014 05:42 PM

Quote:

Originally Posted by redd9 (Post 5137704)
To make a permanent change, run the command
Code:

sudo gedit /boot/grub/menu.lst
substituting gedit with your favourite editor.
Source: http://grumpymole.blogspot.ca/2007/0...arameters.html

Only true for the deprecated and mostly unused Grub 1, aka Grub Legacy. With the newer Grub 2 you don't edit the configuration file directly, but you edit /etc/default/grub and the files in /etc/grub.d and after that use grub-mkconfig to create a new config file.

redd9 03-19-2014 05:49 PM

Quote:

Originally Posted by TobiSGD (Post 5137716)
Only true for the deprecated and mostly unused Grub 1, aka Grub Legacy. With the newer Grub 2 you don't edit the configuration file directly, but you edit /etc/default/grub and the files in /etc/grub.d and after that use grub-mkconfig to create a new config file.

Ahh yes I'm sorry, this is correct.

sigint-ninja 03-19-2014 06:04 PM

so much to learn...im gonna be sick!!!

DavidMcCann 03-20-2014 11:34 AM

With my Grub 1 (CentOS) it's /boot/grub/grub.conf. I for one will keep with Grub 1 as long as it's available.


All times are GMT -5. The time now is 02:09 PM.