LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-29-2004, 03:57 PM   #1
vijayaraghava
LQ Newbie
 
Registered: Dec 2004
Posts: 2

Rep: Reputation: 0
Linux in C: and Win XP in D: drive


Hello everybody,
I have made a foolish mistake. I had Win 98 on C: and Win XP on D:
I didn't require win 98. So I thought I could install Linux in C: After installing, when going into win XP, it simply stops after displaying the messages

rootnoverify(hd0,4)
chainloader +1.

I have installed Fedora Core 1.
What should I do? Please help me.
 
Old 01-04-2005, 10:44 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

u havbe overwritten some files like boot.ini config .sys etc etc which are required for win XP also , which were in C drive

what i advise is that u reinstall winXp

regards
 
Old 01-04-2005, 07:02 PM   #3
adriaanbw
Member
 
Registered: May 2003
Location: Brisbane, Australia
Distribution: Fedora Core 4 with XFCE
Posts: 128

Rep: Reputation: 16
whoa whoa whoa. I dont think its necessary to reinstall WinXP. As we all know that's probably the last thing anyone wants to do.

My suggest would be this, which may or may not work. Try making the WinXP drive a master on the primary IDE channel. Basically this will tell the computer where to find the MBR. Then, boot up from the WinXP CDROM and enter the recovery console.

Following that you will then want to rebuild the MBR and files required to boot into Windows. I would suggest the following order of operations:
1) FIXBOOT (recovery con. command)
2) FIXMBR (recovery con. command)
3) Copy both NTLDR and NTDETECT.COM from [CDROM]:\i386 to the hard disk.

Now try booting into Windows. If it didn't work try messing around in the recovery console a bit more with the aid of this MS knowledge base article. Basically, FIXMBR and FIXBOOT will rebuild the master boot record and create a boot.ini file.

Assuming that worked, you will then probably want to fix the linux installation. So, I would then suggest taking out the Windows hard drive, and putting in the Linux drive set as a master. Hopefully it will boot into Linux as it always had. Next, you can edit your GRUB boot loader /etc/grub.conf and make some changes.

Your /etc/grub.conf might look something like:
Code:
title Fedora Core (2.6.9-1.681_FC3)
	root (hc0,2)
	kernel /vmlinuz-2.6.9-1.681_FC3 ro root=LABEL=/ rhgb quiet acpi=on
	initrd /initrd-2.6.9-1.681_FC3.img
You will need to change the root(hc0,2) to something like root(hd0). Only change the letter, not the number because the partition on the drive should not have changed. Basically, we are telling the GRUB boot loader where to find the linux installation now that we are moving the hard drives around.

Next you will need to add an entry to boot into Windows, something like this:
Code:
title Windows XP
	rootnoverify (hc0,1)
	chainloader +1
Once that is done you will want to put the Windows drive back in as Master on the primary IDE. The Linux drive should be slave on primary or perhaps master on secondary IDE.

I am not sure if anything else would be affected by changing the location of the Linux drive within the system. Can anyone else comment on that please?

I hope this might help some. Of course, if you aren't afraid to start from scratch then follow this simply guideline: Install WindowsXP first and then linux. During the GRUB installation, the WindowsXP installation will be detected automatically though might be given some generic label like "Other" or "Windows". You can rename this and set which OS you want to boot as default.

Last edited by adriaanbw; 01-04-2005 at 07:09 PM.
 
  


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
dual boot when linux on 1 drive, win on other drive, both scsi? nornad Red Hat 3 04-08-2004 08:44 AM
How to have dual OS(win/linux) on 1 Hard Drive Wade Linux - Newbie 2 03-09-2004 03:15 PM
Shared drive Win - Linux nightowl Linux - Networking 2 11-20-2003 06:26 AM
Install linux (mandrake 9.1) over win 98 and still boot linux and winxp(drive E:) BlueTaurus13 Linux - General 12 09-01-2003 08:03 AM
mount sep win drive from linux?? tdnik Linux - General 6 01-08-2002 10:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:31 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
Open Source Consulting | Domain Registration