Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been having issues with graphics card drivers that have gotten so complicated that I eventually have to completely reinstall Ubuntu to resolve them. However, due to my UEFI setup, the Ubuntu installer fails after it has already been installed once and leaves my GRUB install completely unusable (and sending me into grub rescue upon boot), and I have to do a total factory restore to be able to continue. This is not ideal, as I have to reinstall and set up everything on each OS I have in use.

How can I restore Ubuntu to the state that it was in upon install? If this is not possible, then how can I do a reinstall of Ubuntu over the same partition without reinstalling GRUB? Thanks to anyone who can help.

share|improve this question
could you eleaborate a bit more on where the installer fails? at which point? – Projjol Jul 7 '13 at 5:30
The installers fails upon trying to run the grub-install dummy. – Sylan Jul 7 '13 at 5:33
do you have a file called sys/firmware/efi? also, can you provide a screenshot or picture of your disk partitions? – Projjol Jul 7 '13 at 5:51
I do have a folder named /sys/firmware/efi. It's contents are two folders, efivars and vars, as well as a systab file. It may also be important to note that I got this information (and the screenshot below) via live USB, as I can not start XOrg normally due to driver issues right now. – Sylan Jul 7 '13 at 7:42
Here's my disk partition information (from both df in terminal, and gparted): – Sylan Jul 7 '13 at 7:44

Here is one method that might help,

1.Mount your partition:

sudo mount /dev/sdaX /mnt (X=whichever sda number you're using) Bind mount some other necessary stuff:

for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt$i"; done chroot into your Ubuntu install:

sudo chroot /mnt

2.Time to update grub:


3.Depending on your situation, you might have to reinstall grub: //if you got errors in the previous step

grub-install /dev/sda update-grub

If everything worked without errors, then you're all set:


sudo reboot

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.