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'm having a grub issue here. I have Windows 7 on sda. On sdb I have 3 partitions which I used on my old pc where:

  • one partition for Ubuntu 11.10
  • another for Windows XP
  • the third partition I keep some mixed files (Movies, music, etc.).

I made a usb live install and I successfully installed ubuntu 12.10 on the partition where it used to be installed Windows XP (sdb1). Problem is that when I choose to boot to this HDD, it shows me the "old" grub for my old system, it even starts loading ubuntu 11.10 and then crashs.

I already tried to run Boot-Repair to purge and reinstall grub but I keep getting a dpkg error that won't let it finish. Anyone could give me some hints here?

share|improve this question
Since I was going to recommend boot-repair, what error are you getting? – Dennis Feb 4 '13 at 18:51
One does not simply... purge GRUB. – Mehrdad Feb 4 '13 at 18:51
dpkg-error detected. Please open a terminal then type (or copy-paste) the following command: sudo chroot "/mnt/boot-sav/sdb1" dpkg --configure -a When I type that in terminal, it opens configuring grub-pc but there is no devices listed just an ok button Then close this window. – XVirtusX Feb 4 '13 at 19:18

You should boot into a Linux live session and reinstall GRUB manually. Have a look at this page for example.

The basic procedure involves booting into the live sesion, mounting your / partition, using chroot to set it as /root/ and then installing GRUB.

There is a very good answer on how to use chroot here.

The Ubuntu (will apply to any Linux really) instructions on reinstalling GRUB are here or here.

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.