The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Grub: setting boot options possible?

    Discussion in 'Linux Compatibility and Software' started by graycolor, Mar 29, 2010.

  1. graycolor

    graycolor Notebook Evangelist

    Reputations:
    30
    Messages:
    459
    Likes Received:
    0
    Trophy Points:
    30
    I was having trouble booting gentoo's install cd so I had to manually type this "gentoo noload=pata_qdi" so it can boot the cd properly. I decided to use the general kernel, but I didn't realize it would boot gentoo with the same options as the live cd. In other words it would hang as if I was booting the original install cd. How do I set grub so the kernel boots with this option "noload=pata_qdi" Do I have to reinstall gentoo? :mad:
     
  2. timberwolf

    timberwolf Notebook Consultant

    Reputations:
    131
    Messages:
    288
    Likes Received:
    0
    Trophy Points:
    30
    One method would to be to boot into your distro by temporarily adding the boot option on-the-fly. I'm writing this from memory, so things may have changed since I last had to do a recovery, Oh and I've never used Gentoo.

    1) Boot your machine and at the Grub menu hit the 'e' key, this should begin an interactive grub editor of the selected boot stanza.
    2) Cursor down to the kernel line and hit 'e' again to edit the line.
    3) Add your kernel option and hit the Enter key (I think) to save.
    4) Hit 'b' to boot what you've edited.

    If you managed to boot into your Gentoo installation on the hard drive, the next step would be to sort this out and add the kernel option permanently. Maybe the following will help once you've managed to get in.

    http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10
     
  3. graycolor

    graycolor Notebook Evangelist

    Reputations:
    30
    Messages:
    459
    Likes Received:
    0
    Trophy Points:
    30
    Thanks Timberwolf the nice people at Gentoo suggested the same thing now I'm able to boot into gentoo.
     
  4. timberwolf

    timberwolf Notebook Consultant

    Reputations:
    131
    Messages:
    288
    Likes Received:
    0
    Trophy Points:
    30
    The grub edit thing can be useful although I think it is probably a good idea to have a live cd rescue distro as well (or even learn about the rescue mode if your distro has one on their install disc).
     
  5. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    Yea exactly to make it permanent for grub edit /boot/grub/grub.conf and throw your option right after the last option on the 'kernel' line for whatever kernel you're booting, for grub2 edit /etc/default/grub and add your option to GRUB_CMDLINE_LINUX_DEFAULT="put options here"
     
  6. mr_raider

    mr_raider Notebook Consultant

    Reputations:
    13
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    30
    You need to rebuild grub after that by running sudo grub-update.