Results 1 to 5 of 5

Thread: grub overwrite on update

  1. #1
    Join Date
    Sep 2011
    Beans
    6

    Cool grub overwrite on update

    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.

  2. #2
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    7,051

    Re: grub overwrite on update

    Welcome to the Ubuntu Forums

    Quote Originally Posted by harshatts View Post
    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
    Code:
    /etc/default/grub
    and the files in
    Code:
    /etc/grub.d
    instead, and run
    Code:
    sudo update-grub
    to rewrite grub.cfg according to the new content in those files.

  3. #3
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    7,051

    Re: grub overwrite on update

    Read more about grub here

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

  4. #4
    Join Date
    Sep 2011
    Beans
    6

    [SOLVED]: grub overwrite on update

    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.

  5. #5
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    7,051

    Re: [SOLVED]: grub overwrite on update

    Quote Originally Posted by harshatts View Post
    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

    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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •