Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 have a computer with a 250GB HD on which there were installed a few operating systems. When the computer boots, I got the GRUB menu with all these Ubuntu installations (about 10 versions - I don't know exactly why) and one Windows Vista, which was installed on a 20GB partition.

This Vista partition got almost full, and since the current user does not need all the Linux installations, I thought I can delete the other partitions and increase the Vista one.

So, I went to Vista's Disk Management utility and saw 4 or 5 partitions, of which one was C: and was ~20GB in size. One of the other partitions was about 170GB so I removed it to free the space. It did not allow me to increase the Vista partition size, though.

However, once the computer was restarted, I no longer get the GRUB menu. Instead, I see a GRUB Error 22 and the boot process gets stuck.

  1. Can I make the computer boot from the Vista partition automatically? How?

  2. If not, can I restore the deleted partition and the GRUB functionality?

share|improve this question

boot into a live cd or usb in linux, and use gparted or parted to restore the lost partition.

if not successful, try knoppix which has gpart that specializes in partition recovery

share|improve this answer
If this does not work and you really only care about the Windows partition you can follow this guide - - once you have done that you could try gparted as suggested above to delete/re-size/ the other partitions. Backup your data before using gparted. – BJ292 Apr 19 '12 at 18:49

It sounds like you just want the Windows bootloader replaced

See Fixing windows MBR without Vista Recovery CD
and Fastest way to restore Windows 7's original MBR?

share|improve this answer
up vote 0 down vote accepted

While waiting for the answers, I found this question and followed this answer to the Ubuntu Grub2 Reference page, and from there to the boot-repair utility page. While starting the computer from a Kubuntu LiveCD, this utility was able to fix the problematic startup sequence, and now the machine starts with Windows Vista directly.

Thanks for the other suggestions.

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.