Fooling Windows XP boot from Grub

I have just installed Windows XP on my third disk in my PC. The Grub always failed to load Windows XP with error message either “format type unknown” or “invalid device string”.

My PC config is below

as you see the configuration first drive and second drive is a raid volume using linux LVM.

Windows is pretty jealous OS that always want to reside on the first partition, so in order to get it work there’s a way to fool the drive using mapping.

here is what I added at /etc/grub.conf for my windows XP

title Windows XP
rootnoverify (hd2,0)
map (hd2) (hd0)
map (hd0) (hd1)
chainloader +1

as you see it is mapping the third drive as first drive… :)

Tags:
Linux & Open Source, System Administration |

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

No comments yet.

Sorry, the comment form is closed at this time.