LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 01-28-2003, 09:44 AM   #1
yunxiang
LQ Newbie
 
Registered: Jan 2003
Location: Beijing China
Distribution: RH8
Posts: 15

Rep: Reputation: 0
Smile How to add a boot record which used to startup windows under my Grub boot loader?


I am installing dual system (the one is windows 2000 and the other is RedHat 8),but at my initial installation of Redhat, I delete the record which used to boot windows 2000 under Grub, now I want to restore the record , How could I do????

and if there is a answer ,please reply me at the following:
yunxianglzy@263.netyunxianglzy@263.net
 
Old 01-28-2003, 12:13 PM   #2
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
I'm not sure what you deleted, but assuming that you had Win2K on a disk and then installed Red Hat 8 and Grub as the boot loader. Somehow, you deleted a key file for Grub and need to reinstall it. Do this:

Use a boot disk to start Linux and log on as root. Type this:

/sbin/grub-install /dev/hda

Remove the disk and reboot--should be fine.
 
Old 01-28-2003, 03:36 PM   #3
dubman
Member
 
Registered: Jan 2003
Distribution: Redhat 9, Fedora Core 1, Suse 8
Posts: 188

Rep: Reputation: 30
fdisk /mbr is always an option. But you will have to reinstall red hat and be sure to install the boot loader. I personally would recommend the lilo boot loader when trying to dual boot with windows 2k.
 
Old 01-28-2003, 05:19 PM   #4
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
Windows 2000 does not have fdisk; and I'm not sure we need to get that extreme yet. This is a system that Grub was apparently working fine on and just needs to be repaired. If he can repair it, that is by far the simplest solution.

If he wants to try LILO, there is no need to clear Grub from the MBR with something like fdisk /mbr or Win2K's fixmbr. He would merely need to check /etc/lilo.conf.anaconda to make sure it is correct and, as root, issue the command lilo.

Last edited by deadbug; 01-28-2003 at 05:20 PM.
 
Old 01-29-2003, 01:28 AM   #5
yunxiang
LQ Newbie
 
Registered: Jan 2003
Location: Beijing China
Distribution: RH8
Posts: 15

Original Poster
Rep: Reputation: 0
the problem is not as hard as your think

I have format my HD with two active Partition, one for windows 2000 and the other is for linux, as usual , I could switch between the two by activating one of them using sfdisk, but for a time later, I feel it is not so convenient to reboot-> activating -> loading another when I need to use the other system , so I just want to add a record either in OS loader or Grub to load its counterpart system. But I don't how to do this, either OS loader and Grub is OK, beside both of my two active partition is larger than 2GB so perhaps LILO is not so available for me ,is any one could tell how I could do ??? please give me some advice , I will Appreciate your help very much
 
Old 01-29-2003, 07:16 AM   #6
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
What you are trying to do is quite common and well documented in this forum. Using fdisk, or any variation of it, to activate partitions is not required. Usually, all three of the popular boot loaders will work just fine. At boot up, they will present you with a menu to select from. From it you can boot either of your operating systems. I'm assuming this is what you want.

I need some more information, though. There are a number of things that can go wrong and their solutions are usually different. It is best to first narrow the scope of the problem. To aid in that, please answer these questions about your system:

1. Did it ever work? My original post assumes that you had successfully installed a second operating system and could boot both of them through Grub. Is this true?

2. What did you do to delete a "record"? I'm assuming you accidentally deleted one of the files Grub needs to operate. I'm assuming you had a problem with Windows, put the Win2K install in and reinstalled it, overwriting the MBR (master boot record) of the hard drive. The symptom of this is your computer would now boot directly into Windows. Is this what is happening?

3. Can you boot Linux through a boot disk? If my assumptions in 1 & 2 are correct, and you can boot Linux, then the solution I proposed in my original post should work.

These ought to get us on the correct track.
 
Old 02-01-2003, 02:22 AM   #7
yunxiang
LQ Newbie
 
Registered: Jan 2003
Location: Beijing China
Distribution: RH8
Posts: 15

Original Poster
Rep: Reputation: 0
I think the first case will suit my condition

both of my two OS can correct load independently, but the only problem is I can only Boot either of them at one time,once I switch , The only thing I can do is firstly boot my computer by CDROM and then activating the other Active partition instead of simply by choosing the other OS on one active partition, it is so inconvenient, I just want to know how to configure my Grub config file in order to add a boot record so I can boot my windows 2000 under the Boot environment of Grub.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I add Windows XP to Grub boot loader? LUB997 Linux - Software 29 10-17-2009 11:11 AM
remove GRUB from windows partition boot record Krun Linux - Newbie 3 09-13-2007 04:51 PM
GRUB boot loader blocking windows boot julienroger Linux - Newbie 3 10-12-2004 01:11 PM
GRUB boot loader problem with Windows 2000 bukich Linux - General 1 06-11-2004 06:42 AM
how can i add windows xp in Linux boot loader mobassir Linux - Software 33 09-11-2003 12:56 AM


All times are GMT -5. The time now is 06:50 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration