Linux on one HDD and Win XP on another HDD
Hi all,
I am new to Linux machines. I have three PATA HDD in my system 1)40 GB Seagate 2)80 GB 3)40 GB Samsung I have Win XP installed on the 80 GB hard drive. I have just installed RHEL 5 on 40 GB Seagate Hard drive AND now I can not boot my Win XP. Although RHEL 5 is working fine. I do get an option to choose the boot preference BUT when I choose other (i.e. for windows) it gives this error. ----------------------------------- Booting 'Other' rootnoverify (hd2,0) chainloader +1 Remove disks or other media Press any key to restart ----------------------------------- And when I press any key, GRUB comes in the last i.e. ----------------------------------- Booting 'Other' rootnoverify (hd2,0) chainloader +1 Remove disks or other media Press any key to restart GRUB ----------------------------------- Pls help me out !!! I have installed both the OS on the same HDD many times, it never gave such errors. Thanks & Regards, Vikas |
One thing you have to realize is that Windows expects to be on the first drive set to boot in the bios. If it is not, you have to edit /boot/grub/menu.lst in RHEL 5 to map Windows to fool it into thinking it's on the first disk.
According to the errors you posted, it appears Windows is on the third drive. How about you post the contents of the file /boot/grub/menu.lst and someone will show you how to edit the file so Windows can boot. And also post the output of this command as root --> fdisk -l And mention whether the other 40GB drive has an OS installed or what? |
hi,
Thanks for the reply. Well there is no other OS installed in the other 40 GB HDD i.e. Samsung one. Also fdisk isnt working while man page for fdisk exist. No idea why this is so. These are the contents of menu.lst [root@localhost grub]# cat menu.lst # 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 (hd2,1) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 # initrd /initrd-version.img #boot=/dev/hdb default=0 timeout=5 splashimage=(hd2,1)/grub/splash.xpm.gz hiddenmenu title Red Hat Enterprise Linux Server (2.6.18-8.el5) root (hd2,1) kernel /vmlinuz-2.6.18-8.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet crashkernel=256M@16M initrd /initrd-2.6.18-8.el5.img title Other rootnoverify (hd2,0) chainloader +1 Thanks, Vikas |
Also is it now possible to remove the drive with Linux OS, and boot only Win XP, as it was before. I tried removing the Linuz drive, BUT didnt work.
I am thinking to have just Linux on my laptop. That would best suit me. Pls help. |
You'll need to reinstall Windows' bootloader.
|
Try changing the last three to look like this:
Code:
title Windows |
If you want to remove the Linux and only have Windows, you'll have to follow the other poster's suggestion, you'll need the Windows XP CD, instructions follow:
Code:
To restore Windows XP MBR EDIT: The Windows drive will have to be the first one set to boot in the bios (setup). |
You should be root to run fdisk. If it is still not running try to execute it as /sbin/fdisk -l.
|
I have made the changes, Trying now !!
Quote:
|
hi,
thanks for the advice, i just did exactly this. thnk God my windows is back. Thanks to all for your time and suggestions. I will install RHEL 5 on my Laptop only. Thanks & Regards, Vikas Quote:
|
I didn't think you would have gotten the dual boot to work. Because the errors you posted showed both Red Hat and Windows on the same drive (hd2). That is why the output of the command fdisk -l was important, to see exactly which drive Windows was on. As mentioned earlier, you need to run that command as root. I never used Red Hat, but others have said in the past that you need to run command: su- to swith user to root in RH compared to just su in most other Linux.
|
All times are GMT -5. The time now is 06:16 PM. |