[SOLVED] Linux on one HDD and Win XP on another HDD
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
Last edited by vikas027; 09-13-2007 at 01:48 AM.
Reason: spelling mistake
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?
Last edited by Junior Hacker; 09-13-2007 at 01:39 AM.
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
title Windows
rootnoverify (hd2,0)
map (hd2) (hd0)
map (hd0) (hd2)
chainloader +1
makeactive
boot
If you want the system to automatically boot Windows if you don't make a selection, change the "default=0" to "default=1". If you want it to boot within 2 seconds (or whatever) instead of 5 seconds when you don't make a selection, change "timeout=5" to "timeout=2".
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
1: Boot with Windows XP CD in the drive
2: Hit any key to boot from the CD
3: Wait for installer to load drivers in memory
4: When asked to press enter to install, type: r
5: When asked which Windows installation would you like to log onto,
if there is only one, type: 1 (and hit enter)
6: When asked to type the Administrator password, I hit enter without
typing anything which will be the administrator password for most OEM
Windows installations, (No password). If you installed Windows XP
yourself and added an administrator password, type this password.
7: At the prompt type: fixmbr (and hit enter)
-**CAUTION** and a warning appear
8: When asked "Are you sure you want to write a new MBR?:" type: y
-The new master boot record has been successfully written.
9: When the prompt returns, type: exit
-The computer re-boots and Windows kernel is loaded.
If you don't have a Windows XP CD, I believe the UBCD4win CD can help you, google it.
EDIT: The Windows drive will have to be the first one set to boot in the bios (setup).
Last edited by Junior Hacker; 09-13-2007 at 02:13 AM.
title Windows
rootnoverify (hd2,0)
map (hd2) (hd0)
map (hd0) (hd2)
chainloader +1
makeactive
boot
If you want the system to automatically boot Windows if you don't make a selection, change the "default=0" to "default=1". If you want it to boot within 2 seconds (or whatever) instead of 5 seconds when you don't make a selection, change "timeout=5" to "timeout=2".
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:
Originally Posted by Junior Hacker
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
1: Boot with Windows XP CD in the drive
2: Hit any key to boot from the CD
3: Wait for installer to load drivers in memory
4: When asked to press enter to install, type: r
5: When asked which Windows installation would you like to log onto,
if there is only one, type: 1 (and hit enter)
6: When asked to type the Administrator password, I hit enter without
typing anything which will be the administrator password for most OEM
Windows installations, (No password). If you installed Windows XP
yourself and added an administrator password, type this password.
7: At the prompt type: fixmbr (and hit enter)
-**CAUTION** and a warning appear
8: When asked "Are you sure you want to write a new MBR?:" type: y
-The new master boot record has been successfully written.
9: When the prompt returns, type: exit
-The computer re-boots and Windows kernel is loaded.
If you don't have a Windows XP CD, I believe the UBCD4win CD can help you, google it.
EDIT: The Windows drive will have to be the first one set to boot in the bios (setup).
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.