1

How do I reinstall grub, after I have reinstalled Windows XP on dual boot system?

I have Ubuntu 14.10 installed, and I'm trying to reinstall grub from Ubuntu 10.04 Live CD. However, I cannot install boot-repair (E: Couldn't find package boot-repair) and I have no idea what "main partition" refers to here. Is it the partition I have Ubuntu 14.10 installed on (/dev/sda2) or the one with Windows (/dev/sda1)?

Solution: The problem was that I was using Ubuntu 10.04 Live CD. boot-repair installed right away from Ubuntu 14.10 Live USB and it solved the problem.

stanny
  • 323

1 Answers1

0

The 'main partition' referred in this answer is the partition on which your Ubuntu is installed. It is the one you mount as file system root (/ directory) when you boot Ubuntu normally. So yes, in your case it would be /dev/sda2.

Your other option was to use boot repair instead of manually reinstalling GRUB. Probably you forgot to install the PPA (sudo add-apt-repository ppa:yannubuntu/boot-repair) or to update your software index list afterwards (sudo apt-get update). Note that you need a working internet connection for this. Otherwise you would have to download it as .deb-file and install it manually with sudo dpkg -i /path/to/file.deb.

But anyway, you should use a newer version of Ubuntu as live system. 10.04 is now 5 years old and hits end-of-life in April 2015. Better use 14.04 LTS (from April 2014, 5 years support) or 14.10 (from October 2014, 9 months support). The next release will be 15.04 (in April 2015, 9 months support).

Byte Commander
  • 110,243