Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 31

Thread: grub problem

  1. #21
    Join Date
    May 2007
    Location
    Iraklio,Crete,Greece
    Beans
    76
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: grub problem

    Quote Originally Posted by oldfred View Post
    If you have a working system but have to manually boot you should reinstall grub from your boot.

    sudo grub-install /dev/sda
    If that returns any errors run:
    sudo grub-install --recheck /dev/sda
    Then:
    sudo update-grub
    it did work!
    I have my grub back!

    Time to solve the initial problem!...hold on!
    I am working now with two keyboards.
    I realized that the USB keyboard doesnt work on grub menu,
    whereas the 'analog' one does.

    USB legacy function on BIOS is enabled.
    Thank you oldfred!

  2. #22
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: grub problem

    Quote Originally Posted by themis View Post
    it did work!
    I have my grub back!

    Time to solve the initial problem!...hold on!
    I am working now with two keyboards.
    I realized that the USB keyboard doesnt work on grub menu,
    whereas the 'analog' one does.

    USB legacy function on BIOS is enabled.
    Thank you oldfred!
    With a working Grub 2, try adding this line to /etc/default/grub:
    Code:
    GRUB_PRELOAD_MODULES="usb_keyboard"
    Save the file, then "sudo update-grub" to get this into the grub.cfg file.

    I haven't used this since I've not had problems. The intent is to preload the usb keyboard module as Grub 2 loads. Perhaps it will work for you.
    Back to Xorg...

    Retired.

  3. #23
    Join Date
    May 2007
    Location
    Iraklio,Crete,Greece
    Beans
    76
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: grub problem

    Quote Originally Posted by drs305 View Post
    With a working Grub 2, try adding this line to /etc/default/grub:
    Code:
    GRUB_PRELOAD_MODULES="usb_keyboard"
    Save the file, then "sudo update-grub" to get this into the grub.cfg file.

    I haven't used this since I've not had problems. The intent is to preload the usb keyboard module as Grub 2 loads. Perhaps it will work for you.

    what do you mean 'with a working grub 2'??
    should I exec grub first?

  4. #24
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: grub problem

    Quote Originally Posted by themis View Post
    what do you mean 'with a working grub 2'??
    should I exec grub first?
    I just meant that now that you have everything working, you can just add this to /etc/default/grub by editing the file in the normal manner (gksu and your text editor of choice). No having to change anything during boot, run extra commands, etc. Sorry if it was confusing.
    Back to Xorg...

    Retired.

  5. #25
    Join Date
    May 2007
    Location
    Iraklio,Crete,Greece
    Beans
    76
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: grub problem

    Quote Originally Posted by drs305 View Post
    I just meant that now that you have everything working, you can just add this to /etc/default/grub by editing the file in the normal manner (gksu and your text editor of choice). No having to change anything during boot, run extra commands, etc. Sorry if it was confusing.
    I did it,
    and now i boot and it stops at GRUB loading..
    and reboots, and if I let it, it will continue rebooting forever!

  6. #26
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: grub problem

    Ok. Can you get back to the desktop and remove the line and update grub again?

    If not, if you can get to the command line at the menu, press "c" and then remove the usb_keyboard module by typing "rmmod usb_keyboard". Press ESC, then highlight the kernel you want, press "E" and cursor to the "insmod usb_keyboard" line (if it exists) and use the DEL key to remove the line. Then ctrl-x to boot.
    Back to Xorg...

    Retired.

  7. #27
    Join Date
    May 2007
    Location
    Iraklio,Crete,Greece
    Beans
    76
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: grub problem

    Quote Originally Posted by drs305 View Post
    Ok. Can you get back to the desktop and remove the line and update grub again?

    If not, if you can get to the command line at the menu, press "c" and then remove the usb_keyboard module by typing "rmmod usb_keyboard". Press ESC, then highlight the kernel you want, press "E" and cursor to the "insmod usb_keyboard" line (if it exists) and use the DEL key to remove the line. Then ctrl-x to boot.
    how can I get to the command line at the menu>>>???
    Which menu do you mean?
    It doesnt reaches the point where it shows the available OSs.
    It reboots before that.
    BIOS does work, but I believe this has nothing to do with what you are telling me to do.
    fffff... that was close!

  8. #28
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: grub problem

    Quote Originally Posted by themis View Post
    how can I get to the command line at the menu>>>???
    Which menu do you mean?
    It doesnt reaches the point where it shows the available OSs.
    It reboots before that.
    BIOS does work, but I believe this has nothing to do with what you are telling me to do.
    fffff... that was close!
    No it doesn't have anything to do with the BIOS.
    fffff... that was close!
    Is it fixed? I didn't think so.

    If you can hold down SHIFT you might get a chance to see the menu - but I doubt it's getting that far. But if you can, then the instructions in the previous post would apply.

    If you can't, boot the LiveCD to the Desktop, mount the Ubuntu partition, and then open the grub and grub.cfg files for editing. Substitute your text editor for "gedit".
    Code:
    sudo mount /dev/sda9 /mnt
    sudo chmod +w /mnt/boot/grub/grub.cfg
    gksu gedit /mnt/etc/default/grub /mnt/boot/grub/grub.cfg
    Remove the GRUB_PRELOAD_MODULES="usb_keyboard" line from grub.
    Remove the "insmod usb_keyboard" line from grub.cfg
    Save both files.

    Reboot and your system will be back to the way it was - working but still having your keyboard issue.
    Back to Xorg...

    Retired.

  9. #29
    Join Date
    May 2007
    Location
    Iraklio,Crete,Greece
    Beans
    76
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: grub problem

    Quote Originally Posted by drs305 View Post
    No it doesn't have anything to do with the BIOS.

    Is it fixed? I didn't think so.

    If you can hold down SHIFT you might get a chance to see the menu - but I doubt it's getting that far. But if you can, then the instructions in the previous post would apply.

    If you can't, boot the LiveCD to the Desktop, mount the Ubuntu partition, and then open the grub and grub.cfg files for editing. Substitute your text editor for "gedit".
    Code:
    sudo mount /dev/sda9 /mnt
    sudo chmod +w /mnt/boot/grub/grub.cfg
    gksu gedit /mnt/etc/default/grub /mnt/boot/grub/grub.cfg
    Remove the GRUB_PRELOAD_MODULES="usb_keyboard" line from grub.
    Remove the "insmod usb_keyboard" line from grub.cfg
    Save both files.

    Reboot and your system will be back to the way it was - working but still having your keyboard issue.
    Ok, I have my system back.
    One last thing before we give up the try.
    I had xp. then installed win 7.
    I had these problems at the win loader too, before installing
    ubuntu. Does this help?

    Thank you anyhow for your patience.
    I'll get an analog keyboard first thing in the morning!

  10. #30
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: grub problem

    Quote Originally Posted by themis View Post
    Ok, I have my system back.
    One last thing before we give up the try.
    I had xp. then installed win 7.
    I had these problems at the win loader too, before installing
    ubuntu. Does this help?
    Do you have another usb keyboard to find out if this is a hardware issue specific to this keyboard? You should not have problems with usb keyboards, and the fact that you had the same problem with windows makes the hardware issue even more likely.
    Back to Xorg...

    Retired.

Page 3 of 4 FirstFirst 1234 LastLast

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
  •