Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: GRUB help! Lost GUI

  1. #1
    Join Date
    Dec 2011
    Beans
    9

    GRUB help! Lost GUI

    Hi,

    I seem to have lost my GRUB GUI upon start up. When I booted up in the past, I would be presented with a simple GUI that would allow me to arrow through a selection of OS's (well, really just one) and then select the OS to load. Yesterday, when I rebooted my laptop, I did not get the GUI but was brought to a grub> command line. I don't know how to load Ubuntu from here so my laptop, at the moment, is a very expensive paperweight.

    Can anyone give me insight as to:
    1) How to load Ubuntu from the GRUB command line?
    2) Get my GRUB GUI back?

    Thanks so much in advance

  2. #2
    Join Date
    Feb 2010
    Location
    Nr BrandsHatch, S'oaks UK
    Beans
    1,241
    Distro
    Lubuntu 13.04 Raring Ringtail

    Re: GRUB help! Lost GUI

    Hi!, GnuHouse,

    Wild Guess!

    Try Pressing 'Esc'

    or pressing 'Shift' at the beginning of boot up.

    It might put you back to the Grub Menu.

    Chao!, bogan
    Last edited by bogan; January 28th, 2012 at 10:54 PM. Reason: spelling
    "Better Solutions may bring Worsened Problems": After Lao Tse, b. circa 405BC. a contemporary of Confucius, who died circa 600BC.
    They did things differently in those days, apparently!!

  3. #3
    Join Date
    Dec 2011
    Beans
    9

    Re: GRUB help! Lost GUI

    Quote Originally Posted by bogan View Post
    Hi!, GnuHouse,

    Wild Guess!

    Try Pressing 'Esc'

    or pressing 'Shift' at the beginning of boot up.

    It might put you back to the Grub Menu.

    Chao!, bogan
    Thanks for the suggestions. I tried both methods and no such luck

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

    Re: GRUB help! Lost GUI

    If it is a "grub" prompt and not a "grub rescue" prompt things can probably be fixed without too much trouble.

    The easiest thing is probably to boot the LiveCD, install Boot Repair, and let it fix your OS.

    If it fails, it can give you an option to run the boot info script. Posting the contents of the file it generates, RESULTS.txt, will help us if Boot Repair can't fix things.

    See the Boot Repair link in my signature line.
    Back to Xorg...

    Retired.

  5. #5
    Join Date
    Nov 2011
    Location
    At home
    Beans
    1,359
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: GRUB help! Lost GUI

    With sudo nano /etc/default/grub you can change the settings of the grub.
    If you prefer GUI install startup manager.

  6. #6
    Join Date
    Jan 2012
    Location
    London, UK
    Beans
    605
    Distro
    Ubuntu Development Release

    Re: GRUB help! Lost GUI

    Hi there,

    The usual cause of this is a change in the partitions on the disk... but not always!
    I'd recommend using a live cd/usb to repair grub. Boot up the live medium and first try chrooting and up-dating grub to fix. To do this, open a terminal and
    Code:
    sudo fdisk -l
    to get your partition number of your ubuntu root partition - for example /dev/sda2. Make a note of this number and use it in the following example:

    To chroot, and update grub:
    Code:
    sudo mkdir /fix
    sudo mount /dev/sdaX /fix
    sudo mount --bind /dev /fix/dev
    sudo mount --bind /var /fix/var
    sudo mount --bind /sys /fix/sys
    sudo chroot /fix
    sudo update-grub
    If this doesn't work, you can reinstall grub by changing the last command in the sequence to "grub-install /dev/sda"

    Hope it helps

    A second, graphical approach can be achieved with boot-repair, but this requires internet access and adding a repo... ubuntu info here

  7. #7
    Join Date
    Dec 2011
    Beans
    9

    Re: GRUB help! Lost GUI

    Quote Originally Posted by drs305 View Post
    If it is a "grub" prompt and not a "grub rescue" prompt things can probably be fixed without too much trouble.

    The easiest thing is probably to boot the LiveCD, install Boot Repair, and let it fix your OS.

    If it fails, it can give you an option to run the boot info script. Posting the contents of the file it generates, RESULTS.txt, will help us if Boot Repair can't fix things.

    See the Boot Repair link in my signature line.
    I did as suggested and no luck. Here is a link to the results file

    http://paste.ubuntu.com/821390/

    Thnx

    **EDIT**
    And, as a special addition, now I can't boot from my Live CD. My boot sequence remained the same, but now it seems like I just skip over the DVD drive and go straight to grub.

    From the grub command line I typed "exit" (one of the possible commands listed). I got a listing of the laptop's start up sequence from the bios and the first three options (DVD, HDD, LAN) all indicated that there was no valid operating system. I don't know if it means anything but thought I would mention it
    Last edited by GnuHouse; January 29th, 2012 at 05:25 PM.

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

    Re: GRUB help! Lost GUI

    Thanks for posting RESULTS.txt.

    Let's just try reinstalling Grub to the MBR. Boot Repair should have been able to do this, but it's a first step to making sure we cover all the possibilities.

    Boot an 11.10 LiveCD, mount the Ubuntu partition and reinstall Grub2:
    Code:
    sudo mount /dev/sda5 /mnt
    sudo grub-install --root-directory=/mnt /dev/sda
    Do NOT include the partition number in the second command.

    Reboot.
    If it doesn't boot, at the grub prompt, run the following commands and answer the questions posed after the # symbol:

    Code:
    ls (hd0,5)/  # Do you see 'vmlinuz' and 'initrd.img' ?
    ls (hd0,5)/boot # Do you see the kernel and initrd image files ?
    ls (hd0,5)/boot/grub # Do you see lots of *.mod files and grub.cfg ?
    Added Later: After studying the RESULTS.txt, I see that grub.cfg does not include the 10_linux section. Since grub-install writes to the MBR but doesn't generate a new grub.cfg file, the above would correctly point to the correct partition but still wouldn't produce a usable menu.
    Last edited by drs305; January 29th, 2012 at 06:57 PM.
    Back to Xorg...

    Retired.

  9. #9
    Join Date
    Dec 2011
    Beans
    9

    Re: GRUB help! Lost GUI

    Quote Originally Posted by drs305 View Post
    Thanks for posting RESULTS.txt.

    Let's just try reinstalling Grub to the MBR. Boot Repair should have been able to do this, but it's a first step to making sure we cover all the possibilities.

    Boot an 11.10 LiveCD, mount the Ubuntu partition and reinstall Grub2:
    Code:
    sudo mount /dev/sda5 /mnt
    sudo grub-install --root-directory=/mnt /dev/sda
    Do NOT include the partition number in the second command.

    Reboot.
    If it doesn't boot, at the grub prompt, run the following commands and answer the questions posed after the # symbol:

    Code:
    ls (hd0,5)/  # Do you see 'vmlinuz' and 'initrd.img' ?
    ls (hd0,5)/boot # Do you see the kernel and initrd image files ?
    ls (hd0,5)/boot/grub # Do you see lots of *.mod files and grub.cfg ?
    Answers to the questions are all Yes

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

    Re: GRUB help! Lost GUI

    Your Grub menu is missing some major components, but we should be able to boot from the grub prompt and then rebuild the grub.cfg file.

    At the grub prompt:

    Code:
    set prefix=(hd0,5)/boot/grub
    set root=(hd0,5)
    linux /vmlinuz root=/dev/sda5 ro
    initrd /initrd.img
    boot
    I believe the necessary modules are already loaded. If you get an error message about a missing module, run this command with the module name:
    Code:
    insmod (hd0,5)/boot/grub/<module_name>.mod
    Once it boots, run
    Code:
    sudo update-grub
    then run this command to see if the proper menuentries were generated. You should have at least one menuentry with "3.0.0-15-generic" as an available kernel.
    Code:
    grep "menuentry" /boot/grub/grub.cfg
    I see you have some 10_linux proxy files - perhaps you tried Grub Customizer?

    Make sure your scripts in the /etc/grub.d folder are executable if you still don't have at least one menuentry:
    Code:
    sudo chmod +x /etc/grub.d/10_linux /etc/grub.d/30_os-prober
    sudo update-grub
    Back to Xorg...

    Retired.

Page 1 of 2 12 LastLast

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
  •