i installed ubuntu now i cant find my windows xp

Asked by cashman91

i installed ubuntu from my live cd i got from the ubuntu site but now when i start my computer it boots up into ubuntu not windows xp i want my windows back

thanks in advance
cashman91

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
gletob (gletob) said :
#1

in ubuntu open a terminal type sudo gedit /boot/grub/menu.lst

at the bottom add this:

title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
makeactive
chainloader +1

Revision history for this message
gletob (gletob) said :
#2

then save and reboot

Revision history for this message
cashman91 (dhillonchanvir) said :
#3

how do open a terminal type sudo gedit /boot/grub/menu.lst

Revision history for this message
gletob (gletob) said :
#4

applications menu> accessories>terminal type sudo gedit /boot/grub/menu.lst then enter your password when it asks then add this at the end:

title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
makeactive
chainloader +1

Revision history for this message
cashman91 (dhillonchanvir) said :
#5

i did what you said and got this error during boot up
Error 13: Invalid or unsupported exectable format

press any key to continue

Revision history for this message
gletob (gletob) said :
#6

what happens after you press a key

Revision history for this message
cashman91 (dhillonchanvir) said :
#7

it take me back to the 4 choices to boot three are the ubuntu the other is windows xp

Revision history for this message
gletob (gletob) said :
#8

so what happen when you hit xp

Revision history for this message
cashman91 (dhillonchanvir) said :
#9

it gives me the Error 13: Invalid or unsupported exectable format

press any key to continue

and it takes me back to the 4 choices

Revision history for this message
gletob (gletob) said :
#10

oh ok please type in terminal sudo /boot/grub/menu.lst and copy and paste the content to this page

Revision history for this message
gletob (gletob) said :
#11

oops meant sudo gedit /boot/grub/menu.lst

Revision history for this message
cashman91 (dhillonchanvir) said :
#12

# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## ## End Default Options ##

title Ubuntu, kernel 2.6.20-15-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=76f4f04c-4dbe-4e08-afdb-adf021104446 ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=76f4f04c-4dbe-4e08-afdb-adf021104446 ro single
initrd /boot/initrd.img-2.6.20-15-generic

title Ubuntu, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST
title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
makeactive
chainloader +1

Revision history for this message
gletob (gletob) said :
#13

unless you have two hard drives it looks as if you deleted your windows partition but to make sure post the output of
sudo gedit /etc/fstab

Revision history for this message
cashman91 (dhillonchanvir) said :
#14

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=76f4f04c-4dbe-4e08-afdb-adf021104446 / ext3 defaults,errors=remount-ro 0 1
# /dev/sda5
UUID=5d015b50-5883-43eb-bcac-507a419b1edb none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0

Revision history for this message
gletob (gletob) said :
#15

show the output of
fdisk -l

P.S. that's an L not an i

Revision history for this message
cashman91 (dhillonchanvir) said :
#16

i typed fdisk -l

and i get no command found

Revision history for this message
gletob (gletob) said :
#17

sorry I mean:

sudo fdisk -l

Revision history for this message
cashman91 (dhillonchanvir) said :
#18

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 38160 306520168+ 83 Linux
/dev/sda2 38161 38913 6048472+ 5 Extended
/dev/sda5 38161 38913 6048441 82 Linux swap / Solaris

Disk /dev/sdf: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot Start End Blocks Id System
/dev/sdf1 1 30401 244196001 c W95 FAT32 (LBA)
dhillon@dhillon-desktop:~$

Revision history for this message
gletob (gletob) said :
#19

ok I see the problem type sudo gedit /boot/grub/menu.lst

then erase what I put earlyer and put

title Microsoft Windows XP Home Edition
root (hd1,0)
savedefault
makeactive
chainloader +1

then save reboot and se if it worked

Revision history for this message
cashman91 (dhillonchanvir) said :
#20

no luck its says starting up but it takes 10 minutes and no progress

i do have an external usb HDD its 250gb attached should i de attach it and turn it off

Revision history for this message
gletob (gletob) said :
#21

I have no Idea how to fix this but I would suggest going to www.ubuntuforums.com and submitting your problem there

Revision history for this message
Wrwrwr (wrwrwr) said :
#22

First, maybe windows still has it's own bootloader on the second drive still, try changing boot order in the bios to boot from the second drive.

Another thing is that you may need to make this menu.lst entry a bit longer:
title Windows XP Professional
root (hd1,0)
savedefault
makeactive
chainloader +1
map (hd0) (hd1)
map (hd1) (hd0)

See also: https://help.ubuntu.com/community/How_to_dual-boot_Ubuntu_and_XP_after_installing_them_separately_on_two_HDs

If all fails try using some third party boot utility like:
- Super Grub Disk: http://supergrub.forjamari.linex.org/, or
- EasyBCD: http://neosmart.net/dl.php?id=1.

Can you help with this problem?

Provide an answer of your own, or ask cashman91 for more information if necessary.

To post a message you must log in.