Results 1 to 2 of 2

Thread: Grub Rescue, oh noes.

  1. #1
    Join Date
    Jul 2006
    Location
    US
    Beans
    235
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    Grub Rescue, oh noes.

    Right... So for the past few months, every time I boot my computer, I've been presented with the lovely Grub Rescue prompt, because it couldn't pind the partition it was looking for.

    At the prompt, I've had to type the following to get myself started:
    Code:
    set root=(hd0,7)/
    set prefix=(hd0,7)/boot/grub/
    insmod (hd0,7)/boot/grub/linux.mod
    linux (hd0,7)/vmlinuz root=/dev/sda7 ro
    initrd (hd0,7)/initrd.img
    boot
    It seems that it's looking for hd0,8 instead of hd0,7 (at least that's what "set" reports when I run it without any arguments before doing the above).

    I've tried sudo update-grub a few times, and although it seems to be doing whatever it's supposed to do (it doesn't throw any errors at me, anyhow), I'm still presented with that damned Grub Rescue prompt.



    This started after I'd used GPartEd to squish back together a bunch of my separate partitions, so probably has something to do with it. XP



    I'm in no hurry--I only reboot this thing once in a great while--but I would like to know how to fix it. Any ideas, anyone? Probably some utility on the GPartEd disk or somethin', yah?

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Grub Rescue, oh noes.

    The sudo update-grub only updates the menu but does not reinstall grub to the MBR.

    How to restore the Ubuntu/XP/Vista/7 bootloader (Updated for Ubuntu 9.10)
    http://ubuntuforums.org/showthread.php?t=1014708
    https://help.ubuntu.com/community/Gr...0from%20LiveCD

    If you are booting into your install you do not have to use liveCD. The main difference is you do not have to tell it (mount partition with Ubuntu) which partition has Ubuntu, as you are already inside it.

    reinstall from working (not liveCD) system - first find Ubuntu drive:
    sudo fdisk -l
    if it's "/dev/sda" then just run:
    sudo grub-install /dev/sda
    If that returns any errors run:
    sudo grub-install --recheck /dev/sda
    Then:
    sudo update-grub
    to get grub to remember where to reinstall on updates:
    sudo dpkg-reconfigure grub-pc
    spacebar to choose/unchoose drive, enter to accept, do not choose partitions
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

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
  •