Hello linuxers, I have 7 partitions on my 40 gb hdd.Its structure is as follows
hda1 windows 98 primary partition hda3 windows XP Extended Logical part hda4 windows 2000 server Extended Logical part hda5 windows partition Extended Logical part hda8 debian woody 3 hda9 Redhat linux 9 hda12 swap
Now my problem is that i have installed windows 98 first then win xp then windows 2000 with boot options of all three.I installed debian woody 3 on hda8 and then redhat linux 9 on hda9.Now after installing redhat linux 9 i cant boot in to winxp/win2000.I can boot into win98/redhat linux/debian.During installation i have installed grub as my boot loader and added all the required partions for booting the windows os.Please provide some solution to this so i can boot in to any os through boot menu(grub).
Thankz in advance. Rohit Baisakhiya.
Hello, You can try one thing.First use dd command in linux and create a backup of your current MBR on a floppy/CD,atleast it allows you to boot into some OSs if not all.Put that backup(which should be a single file of 512 bytes) on hda1,so that you can use it with your boot.ini file later. Then you can boot into DOS using a startup floppy or CD and revert the MBR using 'fdisk /mbr'.I think this will bring back the contents of the MBR (most probably the NTLDR) which were there before GRUB overwrote ur MBR.Then you will be able to boot into XP,2K,98 as before.After getting NTLDR alright,then just add an entry to your boot.ini with the backup file as the target..If it works well then you'll be able to go into GRUB thru the Windows boot menu. *The crucial thing is to use the dd command neatly. I think it will be 'dd if=/dev/hda1 of=/mnt/win_c/backup.mbr bs=512 count=1' assuming that hda1 is mounted as win_c Get it verified.*
Hope this helps.