0

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...

Eliah Kagan
  • 117,780
ashwin
  • 1
  • 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: http://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
  • @tijybba I typed sudo update-grub and got the following message: Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.2.0-23-generic-pae Found initrd image: /boot/initrd.img-3.2.0-23-generic-pae Found memtest86+ image: /boot/memtest86+.bin done – ashwin Jul 14 '12 at 10:35
  • From Ubuntu , browse all the partitions present and Verify that XP installation (Program files, windows) is present.And if it is present then from the above downloaded boot_info_script.sh file , just run it , and it will generate text file post its contents here. – atenz Jul 14 '12 at 10:40
  • Also after typing sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update , did you pressed ENTER to add it , did that method completed. – atenz Jul 14 '12 at 10:43
  • after completing the boot repair(recommended) i got the following link:----paste.ubuntu.com/1091318 – ashwin Jul 15 '12 at 06:20

4 Answers4

2

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.

atenz
  • 12,772
1

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?

0

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.

ish
  • 139,926
  • 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 https://help.ubuntu.com/community/Boot-Info – LovinBuntu Jul 13 '12 at 22:05
  • @LovinBuntu AFTER PERFORMING BOOT REPAIR I GOT THE FOLLOWING LINK: ---http://paste.ubuntu.com/1091318/ – ashwin Jul 14 '12 at 10:58
0

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.

Jordan Uggla
  • 4,565