Results 1 to 8 of 8

Thread: How to access root 9.10 to edit grub.cfg

  1. #1
    Join Date
    Nov 2008
    Beans
    17

    How to access root 9.10 to edit grub.cfg

    I just did an install and need to edit the boot menu but the normal command

    sudo gedit /boot/grub/grub.cfg

    doesnt work it ask ofr my password and pulls up the editor but wont let me save, It worked with 9.04. I get an error:

    You are trying to save the file on a read-only disk. Please check that you typed the location correctly and try again.

    did something go wrong on the install or ...?

    Thanks
    Last edited by dougggg; November 1st, 2009 at 05:51 PM.

  2. #2
    Join Date
    Apr 2009
    Beans
    118

    Re: How to access root 9.10 to edit grub.cfg

    I don't think you are supposed to edit that file. I found a thread explaining it here:
    http://ubuntuforums.org/showthread.php?t=1278577

    post #3 and #4 in the thread seems most useful.

  3. #3
    Join Date
    Nov 2008
    Beans
    17

    Re: How to access root 9.10 to edit grub.cfg

    why does ubuntu seem to get harder as I go. I need to add
    'vmalloc=512m' to the boot entry becuase I have a haupage tv card and my nvidia card needs that to work or it wont boot. I can do it every time at boot with the e command but thats a pain. I looked at the files in grub.d, can somebody point me in the right direction to put the vmalloc=512m

  4. #4
    Join Date
    Nov 2006
    Location
    /var/www
    Beans
    154
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How to access root 9.10 to edit grub.cfg

    I had problem saving it with gedit too. Instead of using gedit, I used nano -

    Code:
    sudo nano /boot/grub/grub.cfg
    Its a text editor which is very similar to old school DOS editor.

    Change the lines for config file within nano and then to save, its Ctrl-X --> Hit Y to save changes, and Enter to save it as the same filename.

    Why it let me save changes with nano and blocked me out when using gedit is beyond the scope of my understanding. I just know that nano worked for me.

    Also I have no clue where the vmalloc statement is supposed to go.
    Face your daemons

  5. #5
    Join Date
    Jun 2006
    Beans
    2,930

    Re: How to access root 9.10 to edit grub.cfg

    does this work:
    Code:
    gksudo gedit /boot/grub/grub.cfg
    Support 7z in default installs!!!: Click Here

    How to use code blocks to post command output: Click Here
    Official Ubuntu Documentation

  6. #6
    Join Date
    Jul 2006
    Location
    Here
    Beans
    11,187

    Re: How to access root 9.10 to edit grub.cfg

    in grub2 it's /etc/default/grub

    gksudo gedit /etc/default/grub

    on line #9:
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash vmalloc=512m"

    then save & run "sudo update-grub"

  7. #7
    Join Date
    Oct 2007
    Beans
    4

    Re: How to access root 9.10 to edit grub.cfg

    This worked perfectly!!!!
    Thank you!

    Sucks being a noob!

  8. #8
    Join Date
    Nov 2008
    Beans
    17

    Re: How to access root 9.10 to edit grub.cfg

    Yep that did it. Thanks

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
  •