Problems with Grub after Reinstallation

Grub wouldn't boot after a reinstallation on my system.

Workaround to be able to boot: http://ubuntuforums.org/showthread.php?p=8292225#post8292225

This fix worked: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/391044 (comment 14)

sudo gedit /usr/lib/grub/grub-mkconfig_lib

Remove the lines 170 - 175 in the file grub-mkconfig_lib:

# If there's a filesystem UUID that GRUB is capable of identifying, use it;
  # otherwise set root as per value in device.map.
  echo "set root=`${grub_probe} --device ${device} --target=drive`"
  if fs_uuid="`${grub_probe} --device ${device} --target=fs_uuid 2> /dev/null`" ; then
    echo "search --no-floppy --fs-uuid --set ${fs_uuid}"
  fi

Safe/close the file and then regenerate the grub entries:

sudo update-grub

Comments