LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-17-2007, 06:06 AM   #1
crackerB
Member
 
Registered: Aug 2006
Posts: 37

Rep: Reputation: 15
Multi boot problem


Hi
I set up a linux multi boot syetem with RHEL5 and Win2003.
It was working fine.

Now, I reinstalled win2003 (Keeping linux there).
Now only windows is coming up (Grub loader is not comming up)

I started the system with rescue CD...

What is next ????

mps
 
Old 12-17-2007, 06:27 AM   #2
cafun4o
LQ Newbie
 
Registered: Jan 2007
Posts: 10

Rep: Reputation: 0
ok, that is standart. A part of GRUB is writen on the MBR(Master Boot Record, you can check in wikipedia to see what that exacly is). When I installed windows. During the installation the MBR was rewriten. You need to rewrite it again so that it uses GRUB once again. Here is an example how to do that from a liveCD:


write "grub --no-floppy" in the console and then:

__________________________________________________________________
grub> root (hd0,0) (Specify where your /boot partition resides)
grub> setup (hd0) (Install GRUB in the MBR)
grub> quit (Exit the GRUB shell)
------------------------------------------------------------------
After the resboot it should be once again using the old grub settings.
I hope I have helped...
 
Old 12-17-2007, 06:31 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You can do the following
  1. Boot from the rescue cd, first installation disc or dvd and enter
    Code:
    linux rescue
  2. Enter details about your root (/) partition when prompted
  3. chroot to your Linux installation by doing
    Code:
    chroot /mnt/sysimage
  4. Reinstall grub by doing
    Code:
    grub-install /dev/hdX
    (substitute hdX with the drive where you want grub to be installed)

Last edited by reddazz; 12-17-2007 at 06:33 AM.
 
Old 12-17-2007, 06:40 AM   #4
daddieday
LQ Newbie
 
Registered: May 2007
Posts: 1

Rep: Reputation: 0
a very late response

when you start your computer, the first thing(after some selftests e.g. of memory) your computer does, is looking in the place called MBR, where he/she finds information about the operating system to start. Here Grub installs his information for dual-system start.
Windows doesn't aknowledge Grub or Linux or anything besides his/her own sort; and without much adoo overwrites the information in the MBR (so:Grub's configuration) with the new information how and where to start this new Windows-version.
This is why a dual-boot system is easiest accomplished when you first install Windows, whereafter, in Linux you make it dual-boot.
 
Old 12-17-2007, 07:20 AM   #5
crackerB
Member
 
Registered: Aug 2006
Posts: 37

Original Poster
Rep: Reputation: 15
thanks

thanks it worked for me
 
Old 12-17-2007, 07:49 AM   #6
RAFAL
Member
 
Registered: Feb 2006
Location: Warsaw, Poland
Distribution: Archlinux, Debian
Posts: 139

Rep: Reputation: 16
Quote:
Originally Posted by crackerB View Post
thanks it worked for me
I am using multiboot for a long time (several years), so can say I have experience here :-) . Once I had 4 systems on my PC (now I have 3) including 3 systems loaded from primary partition (Linux does not require to be installed on Primary Partition, which is good thing).

My advise is to make a copy of MBR, so in case Windows will demage something (Bill Gates systems do not like any other system or your PC!) you can quickly restore it.

Every time you try to install Windows, it will demage your MBR.
it only 512 bytes

One possible solution is:
Once you have installed Windows, create a copy with Norton Ghost (as example). Next time you restore Windows from such image, it will not touch MBR.
I never install systems on my PC twice! Just once and then using images! I strongly advise this solution! You will save your time.

regards
Rafal
 
  


Reply



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
serious multi boot problem/question cradleoflove Linux - Newbie 3 09-29-2007 05:36 PM
multi boot problem adamkong Linux - Laptop and Netbook 16 08-17-2007 08:52 AM
How to Boot Multi Windows & Multi Linux olkar Linux - Newbie 5 10-03-2005 11:52 AM
multi boot problem pperk97 Linux - Newbie 4 11-03-2004 10:00 AM
Problem with Multi-Boot den_santiago Linux - Newbie 1 10-04-2002 07:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:12 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