I installed ubuntu 12.04 alongwith with Windows XP. But the system directly boots Ubuntu without giving grub selection menu. I opened a terminal up (ctrl-alt-t) and typed in the following:

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update

Then my password and followed by:

sudo apt-get install -y boot-repair && boot-repair

But i got the message as follows:

BuildiReading package lists... Doneng dependency tree       
Reading state information... Done
E: Unable to locate package boot
E: Unable to locate package repair

So now what should I do? Please help as I cannot access Windows XP...

  • try sudo update-grub, this will identify Xp i guess. And this is wrong way of using apt-get sudo apt-get install -y boot-repair && boot-repair, it should be only sudo apt-get install -y boot-repair – atenz Jul 12 '12 at 17:32
  • Please run sudo os-prober in the terminal and post the output (if any). If it produces no output, then please also run boot info script: bootinfoscript.sourceforge.net and post the RESULTS.txt which it produces. – Jordan Uggla Jul 12 '12 at 18:52
  • after typing sudo update-grub i got the following message: – ashwin Jul 13 '12 at 10:56
  • after following instructions on sourceforge.net and entering the said command in terminal i got the message... bash: /home/ashwin/Desktop/boot_info_script.sh: No such file or directory – ashwin Jul 13 '12 at 12:02
  • Since your Downloads directory is probably ~/Downloads/ try running sudo bash ~/Downloads/boot_info_script.sh. I assume that since you're trying to run boot info script, sudo os-prober produced no output. Is that correct? – Jordan Uggla Jul 13 '12 at 20:34

You typed the Wrong syntax of Apt-get command,

It should have been

sudo apt-get update 
sudo apt-get install -y boot-repair

Alternately you can make your Xp detected by grub through

sudo update-grub

EDIT : You didn't mentioned presence of second Hard Drive as can be seen from paste.ubuntu , as sdb.

My guess as Jordan Uggla said , Windows XP is not present , i think you installed Ubuntu over XP installation thereby erasing it .

If you think Xp is still present , then try searching for the Windows system folder and please post the Whereabouts of its location from your Drive in your question by editing it , probably as its partition number.


This one helped me. Especially the section for older LCD

"/etc/default/grub and uncommenting / removing the #hash from what appears as line 364 in the boot info script as #GRUB_GFXMODE=640x480"

Link: Why is Grub menu not shown when starting my computer?


Also try installing this harmless little package: extlinux -- sometimes it causes an os-probe which succeeds in finding Windows when regular update-grub does not.

sudo apt-get install extlinux

You can remove it if it works and Windows shows up in the Grub boot menu.

  • i tried it but still did not work out...system directly boots with ubuntu 12.04... – ashwin Jul 13 '12 at 12:09
  • @ izx i tried sudo apt-get install -y boot-repair Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package boot-repair – ashwin Jul 13 '12 at 12:16
  • You need to type all the commands in the right order. Copy-paste them in order to avoid typo. See help.ubuntu.com/community/Boot-Info – LovinBuntu Jul 13 '12 at 22:05
  • @LovinBuntu AFTER PERFORMING BOOT REPAIR I GOT THE FOLLOWING LINK: ---paste.ubuntu.com/1091318 – ashwin Jul 14 '12 at 10:58

According to http://paste.ubuntu.com/1091318/ you don't have any valid Windows XP installation to boot. (None of your NTFS partitions contain a /ntldr file among other things).

Probably not the answer you wanted, but if you want Windows to show up in the boot menu you need to install Windows, as currently you don't have any Windows installation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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