GRUB file problem












0














When I try to update GRUB, I receive the following error:



/usr/sbin/grub-mkconfig: 1: /etc/default/grub: Syntax error: ")" unexpected


Here is my GRUB config:



GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"









share|improve this question
























  • Is this really the content of /etc/default/grub? Because there's no ) character in line 1 like the error messages suggests. What's the output of sh -n /etc/default/grub, head -n 1 /etc/default/grub and grep -nFe ')' /etc/default/grub?
    – David Foerster
    Apr 11 '17 at 21:44










  • the output of grep -nFe ')' /etc/default/grub=13:# This works with Linux (no patch required) and with any kernel that obtains 14:# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) 17:# Uncomment to disable graphical terminal (grub-pc only)
    – Tamal Mondal
    Apr 11 '17 at 22:46










  • Generating grub configuration file ... /etc/grub.d/00_header: 30: .: Can't open /grub-mkconfig_lib ,,,,,this lines is generate when i try to run update-grub/sudo update-grub,,plz help me out
    – Tamal Mondal
    Apr 11 '17 at 22:53












  • What is the exact command you type in to run grub-mkconfig? Do not include any output from the command in your answer. Only the exact characters you type in before you press enter.
    – Organic Marble
    Apr 12 '17 at 1:07










  • Could you please edit your post, when you want to add information? Especially file or program output listings (with the help of the {} button in the editor toolbar) will be much more readable there; alternatively you can use a pastie service for longer listings and include the link of your pastie in your question. Overall it’s best to have everything relevant in one place. Additionally, comments may be deleted for various reasons. Thanks.
    – David Foerster
    Apr 12 '17 at 8:47
















0














When I try to update GRUB, I receive the following error:



/usr/sbin/grub-mkconfig: 1: /etc/default/grub: Syntax error: ")" unexpected


Here is my GRUB config:



GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"









share|improve this question
























  • Is this really the content of /etc/default/grub? Because there's no ) character in line 1 like the error messages suggests. What's the output of sh -n /etc/default/grub, head -n 1 /etc/default/grub and grep -nFe ')' /etc/default/grub?
    – David Foerster
    Apr 11 '17 at 21:44










  • the output of grep -nFe ')' /etc/default/grub=13:# This works with Linux (no patch required) and with any kernel that obtains 14:# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) 17:# Uncomment to disable graphical terminal (grub-pc only)
    – Tamal Mondal
    Apr 11 '17 at 22:46










  • Generating grub configuration file ... /etc/grub.d/00_header: 30: .: Can't open /grub-mkconfig_lib ,,,,,this lines is generate when i try to run update-grub/sudo update-grub,,plz help me out
    – Tamal Mondal
    Apr 11 '17 at 22:53












  • What is the exact command you type in to run grub-mkconfig? Do not include any output from the command in your answer. Only the exact characters you type in before you press enter.
    – Organic Marble
    Apr 12 '17 at 1:07










  • Could you please edit your post, when you want to add information? Especially file or program output listings (with the help of the {} button in the editor toolbar) will be much more readable there; alternatively you can use a pastie service for longer listings and include the link of your pastie in your question. Overall it’s best to have everything relevant in one place. Additionally, comments may be deleted for various reasons. Thanks.
    – David Foerster
    Apr 12 '17 at 8:47














0












0








0







When I try to update GRUB, I receive the following error:



/usr/sbin/grub-mkconfig: 1: /etc/default/grub: Syntax error: ")" unexpected


Here is my GRUB config:



GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"









share|improve this question















When I try to update GRUB, I receive the following error:



/usr/sbin/grub-mkconfig: 1: /etc/default/grub: Syntax error: ")" unexpected


Here is my GRUB config:



GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"






grub2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 7 at 9:24









Codito ergo sum

1,1772725




1,1772725










asked Apr 11 '17 at 21:24









Tamal MondalTamal Mondal

11




11












  • Is this really the content of /etc/default/grub? Because there's no ) character in line 1 like the error messages suggests. What's the output of sh -n /etc/default/grub, head -n 1 /etc/default/grub and grep -nFe ')' /etc/default/grub?
    – David Foerster
    Apr 11 '17 at 21:44










  • the output of grep -nFe ')' /etc/default/grub=13:# This works with Linux (no patch required) and with any kernel that obtains 14:# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) 17:# Uncomment to disable graphical terminal (grub-pc only)
    – Tamal Mondal
    Apr 11 '17 at 22:46










  • Generating grub configuration file ... /etc/grub.d/00_header: 30: .: Can't open /grub-mkconfig_lib ,,,,,this lines is generate when i try to run update-grub/sudo update-grub,,plz help me out
    – Tamal Mondal
    Apr 11 '17 at 22:53












  • What is the exact command you type in to run grub-mkconfig? Do not include any output from the command in your answer. Only the exact characters you type in before you press enter.
    – Organic Marble
    Apr 12 '17 at 1:07










  • Could you please edit your post, when you want to add information? Especially file or program output listings (with the help of the {} button in the editor toolbar) will be much more readable there; alternatively you can use a pastie service for longer listings and include the link of your pastie in your question. Overall it’s best to have everything relevant in one place. Additionally, comments may be deleted for various reasons. Thanks.
    – David Foerster
    Apr 12 '17 at 8:47


















  • Is this really the content of /etc/default/grub? Because there's no ) character in line 1 like the error messages suggests. What's the output of sh -n /etc/default/grub, head -n 1 /etc/default/grub and grep -nFe ')' /etc/default/grub?
    – David Foerster
    Apr 11 '17 at 21:44










  • the output of grep -nFe ')' /etc/default/grub=13:# This works with Linux (no patch required) and with any kernel that obtains 14:# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) 17:# Uncomment to disable graphical terminal (grub-pc only)
    – Tamal Mondal
    Apr 11 '17 at 22:46










  • Generating grub configuration file ... /etc/grub.d/00_header: 30: .: Can't open /grub-mkconfig_lib ,,,,,this lines is generate when i try to run update-grub/sudo update-grub,,plz help me out
    – Tamal Mondal
    Apr 11 '17 at 22:53












  • What is the exact command you type in to run grub-mkconfig? Do not include any output from the command in your answer. Only the exact characters you type in before you press enter.
    – Organic Marble
    Apr 12 '17 at 1:07










  • Could you please edit your post, when you want to add information? Especially file or program output listings (with the help of the {} button in the editor toolbar) will be much more readable there; alternatively you can use a pastie service for longer listings and include the link of your pastie in your question. Overall it’s best to have everything relevant in one place. Additionally, comments may be deleted for various reasons. Thanks.
    – David Foerster
    Apr 12 '17 at 8:47
















Is this really the content of /etc/default/grub? Because there's no ) character in line 1 like the error messages suggests. What's the output of sh -n /etc/default/grub, head -n 1 /etc/default/grub and grep -nFe ')' /etc/default/grub?
– David Foerster
Apr 11 '17 at 21:44




Is this really the content of /etc/default/grub? Because there's no ) character in line 1 like the error messages suggests. What's the output of sh -n /etc/default/grub, head -n 1 /etc/default/grub and grep -nFe ')' /etc/default/grub?
– David Foerster
Apr 11 '17 at 21:44












the output of grep -nFe ')' /etc/default/grub=13:# This works with Linux (no patch required) and with any kernel that obtains 14:# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) 17:# Uncomment to disable graphical terminal (grub-pc only)
– Tamal Mondal
Apr 11 '17 at 22:46




the output of grep -nFe ')' /etc/default/grub=13:# This works with Linux (no patch required) and with any kernel that obtains 14:# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) 17:# Uncomment to disable graphical terminal (grub-pc only)
– Tamal Mondal
Apr 11 '17 at 22:46












Generating grub configuration file ... /etc/grub.d/00_header: 30: .: Can't open /grub-mkconfig_lib ,,,,,this lines is generate when i try to run update-grub/sudo update-grub,,plz help me out
– Tamal Mondal
Apr 11 '17 at 22:53






Generating grub configuration file ... /etc/grub.d/00_header: 30: .: Can't open /grub-mkconfig_lib ,,,,,this lines is generate when i try to run update-grub/sudo update-grub,,plz help me out
– Tamal Mondal
Apr 11 '17 at 22:53














What is the exact command you type in to run grub-mkconfig? Do not include any output from the command in your answer. Only the exact characters you type in before you press enter.
– Organic Marble
Apr 12 '17 at 1:07




What is the exact command you type in to run grub-mkconfig? Do not include any output from the command in your answer. Only the exact characters you type in before you press enter.
– Organic Marble
Apr 12 '17 at 1:07












Could you please edit your post, when you want to add information? Especially file or program output listings (with the help of the {} button in the editor toolbar) will be much more readable there; alternatively you can use a pastie service for longer listings and include the link of your pastie in your question. Overall it’s best to have everything relevant in one place. Additionally, comments may be deleted for various reasons. Thanks.
– David Foerster
Apr 12 '17 at 8:47




Could you please edit your post, when you want to add information? Especially file or program output listings (with the help of the {} button in the editor toolbar) will be much more readable there; alternatively you can use a pastie service for longer listings and include the link of your pastie in your question. Overall it’s best to have everything relevant in one place. Additionally, comments may be deleted for various reasons. Thanks.
– David Foerster
Apr 12 '17 at 8:47










1 Answer
1






active

oldest

votes


















2














The only difference between yours and my grub file is mine has



    # If you change this file, run 'update-grub' afterwards to update       
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'


But that shouldnt make a difference since the lines are commented out. I had an update which updated grub that told me the grub files were different and I kept the one from the update and I no longer had the error you were getting. So i recommend you check fir any updates.



Please make sure you are showing the correct grub file output.



I am running 16.04 here is a copy of my grub file



# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"


then you can use below to update



sudo update-grub 





share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f903743%2fgrub-file-problem%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    The only difference between yours and my grub file is mine has



        # If you change this file, run 'update-grub' afterwards to update       
    # /boot/grub/grub.cfg.
    # For full documentation of the options in this file, see:
    # info -f grub -n 'Simple configuration'


    But that shouldnt make a difference since the lines are commented out. I had an update which updated grub that told me the grub files were different and I kept the one from the update and I no longer had the error you were getting. So i recommend you check fir any updates.



    Please make sure you are showing the correct grub file output.



    I am running 16.04 here is a copy of my grub file



    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.
    # For full documentation of the options in this file, see:
    # info -f grub -n 'Simple configuration'

    GRUB_DEFAULT=0
    #GRUB_HIDDEN_TIMEOUT=0
    GRUB_HIDDEN_TIMEOUT_QUIET=true
    GRUB_TIMEOUT=10
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    GRUB_CMDLINE_LINUX=""

    # Uncomment to enable BadRAM filtering, modify to suit your needs
    # This works with Linux (no patch required) and with any kernel that obtains
    # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
    #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

    # Uncomment to disable graphical terminal (grub-pc only)
    #GRUB_TERMINAL=console

    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    #GRUB_GFXMODE=640x480

    # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
    #GRUB_DISABLE_LINUX_UUID=true

    # Uncomment to disable generation of recovery mode menu entries
    #GRUB_DISABLE_RECOVERY="true"

    # Uncomment to get a beep at grub start
    #GRUB_INIT_TUNE="480 440 1"


    then you can use below to update



    sudo update-grub 





    share|improve this answer


























      2














      The only difference between yours and my grub file is mine has



          # If you change this file, run 'update-grub' afterwards to update       
      # /boot/grub/grub.cfg.
      # For full documentation of the options in this file, see:
      # info -f grub -n 'Simple configuration'


      But that shouldnt make a difference since the lines are commented out. I had an update which updated grub that told me the grub files were different and I kept the one from the update and I no longer had the error you were getting. So i recommend you check fir any updates.



      Please make sure you are showing the correct grub file output.



      I am running 16.04 here is a copy of my grub file



      # If you change this file, run 'update-grub' afterwards to update
      # /boot/grub/grub.cfg.
      # For full documentation of the options in this file, see:
      # info -f grub -n 'Simple configuration'

      GRUB_DEFAULT=0
      #GRUB_HIDDEN_TIMEOUT=0
      GRUB_HIDDEN_TIMEOUT_QUIET=true
      GRUB_TIMEOUT=10
      GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
      GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
      GRUB_CMDLINE_LINUX=""

      # Uncomment to enable BadRAM filtering, modify to suit your needs
      # This works with Linux (no patch required) and with any kernel that obtains
      # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
      #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

      # Uncomment to disable graphical terminal (grub-pc only)
      #GRUB_TERMINAL=console

      # The resolution used on graphical terminal
      # note that you can use only modes which your graphic card supports via VBE
      # you can see them in real GRUB with the command `vbeinfo'
      #GRUB_GFXMODE=640x480

      # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
      #GRUB_DISABLE_LINUX_UUID=true

      # Uncomment to disable generation of recovery mode menu entries
      #GRUB_DISABLE_RECOVERY="true"

      # Uncomment to get a beep at grub start
      #GRUB_INIT_TUNE="480 440 1"


      then you can use below to update



      sudo update-grub 





      share|improve this answer
























        2












        2








        2






        The only difference between yours and my grub file is mine has



            # If you change this file, run 'update-grub' afterwards to update       
        # /boot/grub/grub.cfg.
        # For full documentation of the options in this file, see:
        # info -f grub -n 'Simple configuration'


        But that shouldnt make a difference since the lines are commented out. I had an update which updated grub that told me the grub files were different and I kept the one from the update and I no longer had the error you were getting. So i recommend you check fir any updates.



        Please make sure you are showing the correct grub file output.



        I am running 16.04 here is a copy of my grub file



        # If you change this file, run 'update-grub' afterwards to update
        # /boot/grub/grub.cfg.
        # For full documentation of the options in this file, see:
        # info -f grub -n 'Simple configuration'

        GRUB_DEFAULT=0
        #GRUB_HIDDEN_TIMEOUT=0
        GRUB_HIDDEN_TIMEOUT_QUIET=true
        GRUB_TIMEOUT=10
        GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
        GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
        GRUB_CMDLINE_LINUX=""

        # Uncomment to enable BadRAM filtering, modify to suit your needs
        # This works with Linux (no patch required) and with any kernel that obtains
        # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
        #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

        # Uncomment to disable graphical terminal (grub-pc only)
        #GRUB_TERMINAL=console

        # The resolution used on graphical terminal
        # note that you can use only modes which your graphic card supports via VBE
        # you can see them in real GRUB with the command `vbeinfo'
        #GRUB_GFXMODE=640x480

        # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
        #GRUB_DISABLE_LINUX_UUID=true

        # Uncomment to disable generation of recovery mode menu entries
        #GRUB_DISABLE_RECOVERY="true"

        # Uncomment to get a beep at grub start
        #GRUB_INIT_TUNE="480 440 1"


        then you can use below to update



        sudo update-grub 





        share|improve this answer












        The only difference between yours and my grub file is mine has



            # If you change this file, run 'update-grub' afterwards to update       
        # /boot/grub/grub.cfg.
        # For full documentation of the options in this file, see:
        # info -f grub -n 'Simple configuration'


        But that shouldnt make a difference since the lines are commented out. I had an update which updated grub that told me the grub files were different and I kept the one from the update and I no longer had the error you were getting. So i recommend you check fir any updates.



        Please make sure you are showing the correct grub file output.



        I am running 16.04 here is a copy of my grub file



        # If you change this file, run 'update-grub' afterwards to update
        # /boot/grub/grub.cfg.
        # For full documentation of the options in this file, see:
        # info -f grub -n 'Simple configuration'

        GRUB_DEFAULT=0
        #GRUB_HIDDEN_TIMEOUT=0
        GRUB_HIDDEN_TIMEOUT_QUIET=true
        GRUB_TIMEOUT=10
        GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
        GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
        GRUB_CMDLINE_LINUX=""

        # Uncomment to enable BadRAM filtering, modify to suit your needs
        # This works with Linux (no patch required) and with any kernel that obtains
        # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
        #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

        # Uncomment to disable graphical terminal (grub-pc only)
        #GRUB_TERMINAL=console

        # The resolution used on graphical terminal
        # note that you can use only modes which your graphic card supports via VBE
        # you can see them in real GRUB with the command `vbeinfo'
        #GRUB_GFXMODE=640x480

        # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
        #GRUB_DISABLE_LINUX_UUID=true

        # Uncomment to disable generation of recovery mode menu entries
        #GRUB_DISABLE_RECOVERY="true"

        # Uncomment to get a beep at grub start
        #GRUB_INIT_TUNE="480 440 1"


        then you can use below to update



        sudo update-grub 






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 11 '17 at 21:54









        adobesmurfadobesmurf

        918




        918






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f903743%2fgrub-file-problem%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            數位音樂下載

            When can things happen in Etherscan, such as the picture below?

            格利澤436b