LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-31-2008, 03:28 AM   #1
DOTT.EVARISTI
Member
 
Registered: Jan 2007
Location: La spezia ( Italia )
Distribution: Fedora 9 amd 64, Gnome,PCLOS 2007,OpenSuse 11 amd 64,Sabayon 3.4,Xp,Vista
Posts: 248

Rep: Reputation: 31
Talking How To:fixing Grub Re-install After Mbr Recovery In A Fedora/windows Multiple Boot


THE NIGHTMARE for everyone is the death of grub in a Fedora/windows multiple boot if grub was installed in mbr AND YOU HAVE TO RECOVER MBR FOR WINDOWS BOOTING PROBLEMS..in this case,neither following Aus9 grub how-tos

http://www.linuxquestions.org/questi...hreadid=237511

http://www.linuxquestions.org/questi...postid=1413211

and googling,i could never re-install efficiently grub and i had to reinstall fedora from a partimage image file or reinstall it from scratch...



anyway,here in Fedora 9 i've found a working trick by myself:and it works perfectly;the secret is NOT INSTALLING GRUB IN MBR BUT INSTALLING IT ON ROOT PARTITION

Ive done it using different HARD DISKS FOR WINDOWS XP PRO WITH SP2 AND FEDORA 9 AMD 64 but it should work even using a single hard disk but i could not test it on a single one because i have 4 sata hard disk on the motherboard...anyway,KEEP IN MIND THAT IT SURELY WORKS FOR ME BUT I DON'T GUARANTEE IT WORKS FOR YOU TOO AND ANYWAY YOU DO EVERYTHING AT YOUR RISK AND I'M NOT RESPONSABLE FOR ANYTHING !





SO,here it goes:

1)during Fedora's installation,when you get the bootloader screen,select advanced and select to install BOOTLOADER IN Root Partition and NOT IN MBR !

2)select windows as default bootloader

3)reboot

4)win will start by itself as usual and you will not see any Grub menu screen selection

5)reboot and press F8 OR F10 OR F12 or any other key your bios uses to let you come to a boot device selection screen-in my case,i use F8-

6)Select the OTHER hard disk you used for fedora

7)now Grub will give you an error and fail to start

8)reboot using the fedora 9 installation cd and select to update your installation

9)Select to update the bootloader

10)at the bootloader screen,now select advanced again and select THIS TIME to install GRUb IN MBR

11)IN THE REALITY,IT will NOT install it in mbr BUT only update the menu.lst and keep grub in the / of fedora

12)reboot

13) windows will boot again by itself as no GRUB IS INSTALLED in MBR

14)AGAIN,USE THE KEY YOUR BIOS USE TO LET YOU CHOOSE THE HARD DISK YOU INSTALLED FEDORA IN AND CHOOSE IT

15)Now grub will appear and work for fedora:it will let you choose fedora and fedora will boot without any problems while,if you choose to boot win by here,grub will give you an error and windows will fail to start

16)WHENEVER YOU WANT TO BOOT WINDOWS,YOU WILL NOT HAVE TO DO ANYTHING ELSE THAn SIMPLY TURN ON THE PC AND LET THE MICROSOFT OS BOOT BY ITSELF

17)by this way,you can keep different and indipendent boots for Win and Fedora so that.if you have to fix and recover MBR for Win boot problems,after the recovery Fedora's grub will still be working perfectly,Fedora will boot and you will not have to become mad in trying to re-install Grub and make it work



THAT'S ALL,FOLKS !

GOOD DAY WITH FEDORA !

Last edited by DOTT.EVARISTI; 05-31-2008 at 06:31 AM.
 
Old 05-31-2008, 05:03 AM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
I got lost, does windows boot auto without a boot menu and if so how do you select Fedora without going into bios and changing boot order?
 
Old 05-31-2008, 06:17 AM   #3
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Alternatively, install GRUB in the MBR of the second disk as usual. Copy the MBR via 'dd', put that copy on the XP disk, and set up the ntldr 'boot.ini' file to give you the option of booting that file copy of the MBR. That way, ntldr happily boots Grub. Unless of course Microsoft 'fixed' that problem.
 
Old 05-31-2008, 06:31 AM   #4
DOTT.EVARISTI
Member
 
Registered: Jan 2007
Location: La spezia ( Italia )
Distribution: Fedora 9 amd 64, Gnome,PCLOS 2007,OpenSuse 11 amd 64,Sabayon 3.4,Xp,Vista
Posts: 248

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Larry Webb View Post
I got lost, does windows boot auto without a boot menu and if so how do you select Fedora without going into bios and changing boot order?
Hi !

1)By this way,win boots by itself without showing any grub menu

2)by this way,the only way to select fedora is entering the bios option-in my case,i press F8,select HARD DISK 3 (WIN XP IS ON HARD DISK 1) and press enter :all this takes me only 4-5 seconds more than usually ! and then now i get to the usual grub screen boot menu

3)the trick stays in 1) and 2) : win and linux boots work separately and don't come to any conflict one to each other.


good day !
 
Old 05-31-2008, 06:33 AM   #5
DOTT.EVARISTI
Member
 
Registered: Jan 2007
Location: La spezia ( Italia )
Distribution: Fedora 9 amd 64, Gnome,PCLOS 2007,OpenSuse 11 amd 64,Sabayon 3.4,Xp,Vista
Posts: 248

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by pinniped View Post
Alternatively, install GRUB in the MBR of the second disk as usual. Copy the MBR via 'dd', put that copy on the XP disk, and set up the ntldr 'boot.ini' file to give you the option of booting that file copy of the MBR. That way, ntldr happily boots Grub. Unless of course Microsoft 'fixed' that problem.
I did not know this way too...but mine anyway works perfectly

Cheers !

Last edited by DOTT.EVARISTI; 05-31-2008 at 07:11 AM.
 
Old 05-31-2008, 07:09 AM   #6
DOTT.EVARISTI
Member
 
Registered: Jan 2007
Location: La spezia ( Italia )
Distribution: Fedora 9 amd 64, Gnome,PCLOS 2007,OpenSuse 11 amd 64,Sabayon 3.4,Xp,Vista
Posts: 248

Original Poster
Rep: Reputation: 31
Red face Just to be more clear..

Just to be more clear..

I've tried all this on a AMD 3500 64 bit with 2 Gb ram,Motherboard Asus a8n Sli Deluxe,Ge force 6600 gt,Soundblaster live 24 bit,4 sata hard disks so configured:

hard disk 1: win xp sps ntfs

hard disk 2: ntfs backups for win xp

hard disk 3: fedora 9 amd 64

hard disk 4: fat 32 backups for fedora

after installing fedora 9 and before writing this how to,even if win xp perfectly booted without any problems in a win /fedora 8 dual boot,i recovered 2 times the mbr by the fixmbr and fixboot options from a win xp cd Recovery console...and everything worked so well that i decided <to write the how-to.


ciao !


Last edited by DOTT.EVARISTI; 05-31-2008 at 08:01 AM.
 
Old 05-31-2008, 07:30 AM   #7
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Booting indirectly will give you the result of chainloading without worrying about your boot record as long as you never touch the mbr. Then you can build a menu list and not have to enter bios everytime. The good thing is you found a way that can work for you.

Last edited by Larry Webb; 05-31-2008 at 07:32 AM.
 
Old 05-31-2008, 07:49 AM   #8
DOTT.EVARISTI
Member
 
Registered: Jan 2007
Location: La spezia ( Italia )
Distribution: Fedora 9 amd 64, Gnome,PCLOS 2007,OpenSuse 11 amd 64,Sabayon 3.4,Xp,Vista
Posts: 248

Original Poster
Rep: Reputation: 31
Cheers

Quote:
Originally Posted by Larry Webb View Post
Booting indirectly will give you the result of chainloading without worrying about your boot record as long as you never touch the mbr. Then you can build a menu list and not have to enter bios everytime. The good thing is you found a way that can work for you.
Thank you,Larry


Not worring about boot record is my aim and my goal !

...but i'm not going to edit manually menu.lst and add a voice for win xp..everything works perfectly by this way that i don't want to complicate my life..


good day !

Last edited by DOTT.EVARISTI; 05-31-2008 at 08:02 AM.
 
Old 06-01-2008, 04:36 AM   #9
decrepit
Member
 
Registered: May 2006
Distribution: Ubuntu10.04, < fedora12
Posts: 347

Rep: Reputation: 34
The way I used to do it, was pull the power cord to the windows HD and then let fedora install to mbr. you can then use bios to boot fedora, and set grub up to boot windows. But as far as windows is concerned, it has it's normal mbr.
 
  


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
Fixing Windows MBR with Knoppix dbough Linux - Newbie 5 04-22-2007 05:53 AM
FC5 New install w windows XP Pro duelboot grub kills MBR efosmi1 Fedora 2 12-07-2006 11:32 PM
Fedora Remove and restoring windows MBR boot loader eng_muhammad Fedora 3 12-03-2005 12:39 PM
Install GRUB in MBR or /boot? kmlinux12 Linux - Enterprise 7 09-25-2004 01:47 AM
GRUB using /boot partition for multiple Linux/Windows boot? cpv204 Linux - Newbie 7 04-01-2003 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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