How to fix a damaged grub boot partition through re-installation of grub2

This Knowledge Base article was written specifically for the Atlassian Server platform. Due to the Restricted functions in Atlassian Cloud apps, the contents of this article cannot be applied to Atlassian Cloud applications.


HipChat Server fails to boot up and from the shell, admin will see "grub rescue":


VM Environment

  • Citrix Xen
  • KVM


The root cause is grub not correctly being updated on the boot partition during a 1.x to 2.x major upgrade due to it not matching the expected default deployment of /dev/sda.

This issue occurs on unsupported hypervisor platform(s) (Citrix Xen or KVM) when using a non standard boot partition (e.g. boot harddisk device in our VM is /dev/vda not /dev/sda). Since the problem has only occurred in unsupported environments, HipChat Server Support is limited in their ability to assist with resolving the problem.


The resolution is to reinstall grub through a "Live CD":

  1. Download the ISO and boot the server from it
  2. Follow the instructions under Solution 2: Reinstallation of Grub using chroot from this article till the end. This solution will repair Grub by running grub-install another way

Alternatively, download and install 14.04.1 Live CD and refer to these articles to repair grub:

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport