LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-13-2007, 01:52 AM   #1
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,300

Rep: Reputation: 102Reputation: 102
Unhappy 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

Last edited by vikas027; 09-13-2007 at 02:48 AM. Reason: spelling mistake
 
Old 09-13-2007, 02:38 AM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
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 02:39 AM.
 
Old 09-13-2007, 02:52 AM   #3
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,300

Original Poster
Rep: Reputation: 102Reputation: 102
Unhappy

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
 
Old 09-13-2007, 03:04 AM   #4
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,300

Original Poster
Rep: Reputation: 102Reputation: 102
Unhappy

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.
 
Old 09-13-2007, 03:06 AM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You'll need to reinstall Windows' bootloader.
 
Old 09-13-2007, 03:06 AM   #6
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Try changing the last three to look like this:
Code:
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".
 
Old 09-13-2007, 03:11 AM   #7
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
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 03:13 AM.
 
Old 09-13-2007, 03:12 AM   #8
jacobselvin
Member
 
Registered: May 2005
Location: Australia
Distribution: SUSE 10.1
Posts: 62

Rep: Reputation: 15
You should be root to run fdisk. If it is still not running try to execute it as /sbin/fdisk -l.
 
Old 09-13-2007, 03:16 AM   #9
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,300

Original Poster
Rep: Reputation: 102Reputation: 102
Lightbulb

I have made the changes, Trying now !!



Quote:
Originally Posted by Junior Hacker View Post
Try changing the last three to look like this:
Code:
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".
 
Old 09-13-2007, 06:18 AM   #10
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,300

Original Poster
Rep: Reputation: 102Reputation: 102
Talking

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 View Post
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).
 
Old 09-13-2007, 11:07 AM   #11
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
booting machine with linux on an external HDD without HDD connected drsoum Linux - Newbie 2 07-22-2007 04:47 AM
how to do a dual boot (Windows on portable HDD) linux on computer HDD izquierdista Linux - General 5 01-28-2006 10:50 AM
Dual HDD Interface Problem, Linux on SATA, NTFS Part on IDE HDD LILO Not Loading Blade44 Linux - Hardware 2 02-01-2005 07:56 PM
How to make mirror image of linux partion to one1 HDD TO 2 HDD raj_1 Linux - General 2 11-04-2004 02:45 AM
linux sharing same HDD partition with win xp actteoh Linux - Hardware 2 05-20-2004 11:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration