Grub is not asking me for xp

[Closed]
Report
-
Posts
1481
Registration date
Friday May 6, 2005
Status
Member
Last seen
December 20, 2014
-
Hello,
I have installed linux on my window machine but grub is not asking for dual boot it is giving me only linux
.is there is any way to istall my xp again so that i can use my lost data.

1 reply

Posts
1481
Registration date
Friday May 6, 2005
Status
Member
Last seen
December 20, 2014
1
You don't have to re install tour xp. Just edit your grub.conf or menu.lst file.
You can do this directly with gedit for example as root or with the configuration file manager.
What is your distribution?

for exemple:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd1,5)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=2
timeout=10

splashimage=(hd1,5)/grub/splash.xpm.gz

title Fedora (2.6.27.5-117.fc10.i686)
	root (hd1,5)
	kernel /vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=4be4887c-5146-4e8d-a269-caee948612a8 rhgb quiet vga=0x318
	initrd /initrd-2.6.27.5-117.fc10.i686.img
title microsoft windows xp 
root (hd1,0)
map (0x81) (0x80)
map (0x80) (0x81)
makeactive
chainloader +1


the section with map and chainloader is because xp is not installed on the main drive on my pc.

http://doc.ubuntu-fr.org/grub-pc?redirect=1 I'm sure you could have same tuto in english somwhere