PDA

View Full Version : [ubuntu] grub overwrite on update



harshatts
January 10th, 2013, 01:49 PM
whenever the system ubuntu 12.10 updates the grub.cfg is overwritten to default and i have to edit and save again. is there a way around it. somehow prevent changing entries into grub.cfg file by system update.

sudodus
January 10th, 2013, 02:00 PM
Welcome to the Ubuntu Forums :-)


whenever the system ubuntu 12.10 updates the grub.cfg is overwritten to default and i have to edit and save again. is there a way around it. somehow prevent changing entries into grub.cfg file by system update.
Yes, but you have a better alternative, to edit the file

/etc/default/grub
and the files in

/etc/grub.d
instead, and run

sudo update-grub
to rewrite grub.cfg according to the new content in those files.

sudodus
January 10th, 2013, 02:01 PM
Read more about grub here

https://help.ubuntu.com/community/Grub2 (https://help.ubuntu.com/community/Grub2)

harshatts
January 11th, 2013, 06:39 AM
Thanks sudodus.
I could change from /etc/default/grub and it updated the /boot/grub/grub.cfg to the customized settings.
I am not sure if I will meddle with the /etc/grub.d as it seems suitable for advanced user. which i am not.

sudodus
January 11th, 2013, 07:18 AM
Thanks sudodus.
I could change from /etc/default/grub and it updated the /boot/grub/grub.cfg to the customized settings.
I am not sure if I will meddle with the /etc/grub.d as it seems suitable for advanced user. which i am not.

I'm glad you worked it out :KS

I think you can manage the files in /etc/grub.d too, reading those Ubuntu help pages about grub, and with a little help from the Ubuntu Forums :-)