How to add to the kernal line

Discussion in 'Linux' started by alansmyth, Oct 31, 2009.

  1. alansmyth

    alansmyth

    Joined:
    Jul 14, 2009
    Messages:
    11
    Likes Received:
    0
    I want to add the following to the kernal at boot:
    pciehp.pciehp force=1 to get my card readers to be hot swapable but ive no idea how to do it, can soneone instruct me how to do this in Terminal
     
    alansmyth, Oct 31, 2009
    #1
  2. alansmyth

    Japser

    Joined:
    Aug 28, 2008
    Messages:
    267
    Likes Received:
    0
    Code:
    sudo mousepad /boot/grub/grub.conf
    
    (?)

    --Japser.
     
    Japser, Oct 31, 2009
    #2
  3. alansmyth

    alansmyth

    Joined:
    Jul 14, 2009
    Messages:
    11
    Likes Received:
    0
    thanks but im using ubuntu 9.10 not linpus, i tried the sudo mousepad but the command isnt reconised
     
    alansmyth, Oct 31, 2009
    #3
  4. alansmyth

    Japser

    Joined:
    Aug 28, 2008
    Messages:
    267
    Likes Received:
    0
    Code:
    sudo gedit /boot/grub/menu.lst
    
    (??)

    replace gedit with nano/pico/vi/vim or whatever editor you have ( I myself use mcedit .... )

    Do
    Code:
    ls /boot/grub
    to see which files are in there.
     
    Japser, Oct 31, 2009
    #4
  5. alansmyth

    alansmyth

    Joined:
    Jul 14, 2009
    Messages:
    11
    Likes Received:
    0
    I must be doing something wrong I did what you said and all I got was a text editor but no files showing, Im totally new to this so its a bit beyond me. I can always put the card in before I boot it shows up then but not when I insert after boot. some one said to put the following in piechp.piechp force=1 in the kernal line but i dont seem to be having any luck.
     
    alansmyth, Nov 1, 2009
    #5
  6. alansmyth

    Japser

    Joined:
    Aug 28, 2008
    Messages:
    267
    Likes Received:
    0
    Just to -look- at your files, you can also use the webbrowser that you use to read this message.
    On the top is the address-bar, where is says now 'http://www.aspireonuser.com/forum' etc..
    Now clear the address bar and put in a "/", just the slash, no quotes, just the slash: /
    And then press enter.
    Navigate to /boot and then to grub and see if menu.lst is there.
     
    Japser, Nov 1, 2009
    #6
  7. alansmyth

    alansmyth

    Joined:
    Jul 14, 2009
    Messages:
    11
    Likes Received:
    0
    no menu 1st isnt there
     
    alansmyth, Nov 1, 2009
    #7
  8. alansmyth

    Japser

    Joined:
    Aug 28, 2008
    Messages:
    267
    Likes Received:
    0
    it's "menu.lst" , not "menu 1st"
     
    Japser, Nov 1, 2009
    #8
  9. alansmyth

    alansmyth

    Joined:
    Jul 14, 2009
    Messages:
    11
    Likes Received:
    0
    sorry jasper i dont have that either
     
    alansmyth, Nov 1, 2009
    #9
  10. alansmyth

    Japser

    Joined:
    Aug 28, 2008
    Messages:
    267
    Likes Received:
    0
    Some Linux-flavors have 'grub.conf' in stead of 'menu.lst".
    Beyond that I am out of ideas.
     
    Japser, Nov 1, 2009
    #10
  11. alansmyth

    bodhi.zazen

    Joined:
    Aug 6, 2009
    Messages:
    71
    Likes Received:
    0
    Ubuntu 9.10 now uses grub 2 and configuration is different form grub (legacy)

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

    To change the options on the init line, using any editor, open /etc/default/grub

    If you are using a graphical application, such as gedit or mousepad, you should use gksu and not sudo

    Code:
    gksu gedit /etc/default/grub
    You are looking for the line
    Add in your options, inside the quotes, after quite splash

    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pciehp.pciehp force=1"
    Then update grub

    Code:
    sudo update-grub
     
    bodhi.zazen, Nov 10, 2009
    #11
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.