Originally Posted by
unix1adm
I just reformatted and reloaded my system with a winxp partition,
I restored from a back up but I do not know the syntax to put in the /boot/grub/menu.lst to get it to see the new3 XP partition.
My device is xp hda2, ubuntu hda1 and fedora hda4. ubuntu and Fedora work fine. But i get an error on the Xp menu option.
Can someone post the stanza I need to add for XP.
I did a search but not finding what i need.
I can now see the menu entry but get
error 13: Invalid or unsupported executable format
Press any key to continue…
Thanx
CJ

I would help if you had posted yr menu.lst. You may have to mess w/ yr windoz boot.ini file – I really don’t know. I’ve never seen that error.
This is from Mandriva OS on 2nd HDD. Has some good ideas and formats:
timeout 15
color white/cyan yellow/cyan
gfxmenu (hd1,2)/boot/gfxmenu
default 0
title windows
root (hd0,0)
makeactive
chainloader +1
title openSUSE 11.1 (i586)
root (hd1,0)
configfile /boot/grub/menu.lst
title Fedora (Sulphur)
root (hd1,1)
configfile /boot/grub/menu.lst
title linux
kernel (hd1,2)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=a45bf97d-9b6a-446b-bad0-ebb7a94b3718 resume=UUID=7b4fe752-d93a-4832-baa5-3ef49fd240d3 splash=silent vga=788
initrd (hd1,2)/boot/initrd.img
Try something like:
title windows
root (hd0,1)
makeactive
chainloader +1
I’m including the following in case yr MBR is not correct.
It is a file from Mandriva that will write the menu.lst of the OS it’s in to the MBR. It should be placed in /boot/grub directory, either in Ubuntu or Fedora. Your /boot/grub/device map should say . File:
grub –device-map=/boot/grub/device.map –batch <<EOF
root (hd1,2)
setup –stage2=/boot/grub/stage2 (hd0)
quit
EOF
Where it says root, you should follow that w/ the hard drive and partition of the OS yr running the file from – for example, if Ubuntu, you would put (hd0,0).
Name the file "install.sh" and make it executable:
Code:
sudo chmod 755 install.sh
and run it w/ the command in a terminal .
Good luck.
Bookmarks