Fedora Linux Support Community & Resources Center
Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > General Support

General Support Fedora general support. Ask questions here that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2009-11-06, 01:23 PM CST
leonardevens Offline
Registered User
 
Join Date: Dec 2006
Age: 76
Posts: 116
linuxfedorafirefox
Opinions about using a Windows bootloader?

Many years ago, I administered a small network of machines which came with Windows NT installed. I repartitioned each one and installed RedHat Linux, but instead of using lilo as basic bootloader, , I used the NT boot loader. as primary. The method for doing so was ad hoc and required fiddling at a very low level. I found instructions about how to do it in Micahel Kofler's Linux book, but it was easy to go wrong, and numerous times I ended up having to reinstall NT and start from scratch.

Eventually I started using lilo, and later grub, putting it in the master boot record. The RedHat installer was set up to do that by default, and didn't require as much maintnenance after installation.

But I've run into problems with a dual boot Linux/Vista machine. I wasn't able to install Vista's service pack 2, and someone on the web suggested that having grub in the mBR was the problem. And in the process of trying to fix things, I had to reinstall Vista from scratch. (Fortunately, the installation left the partition table alone, and I was still able to get to Linux using grub CD I had providentially burned.) So I plan to use EasyABC to configure Vista's bootloader to boot Linux in addition to Vista. This would be the safest thing from the point of view of mainating Vista.

I assume the same would be true about Window 7.

Has anyone anything helpful to say about the matter? Are there any gotchas either about Vista or Windows 7 that I ought to worry about? It is rather tiresome having to reinstall one or the other OS each time I screw something up.
Reply With Quote
  #2  
Old 2009-11-06, 02:36 PM CST
stoat Offline
Community Manager
 
Join Date: Jun 2006
Posts: 3,624
linuxfedorafirefox
Quote:
Originally Posted by leonardevens

So I plan to use EasyABC to configure Vista's bootloader to boot Linux in addition to Vista.
Hello leonardevens,

It's EasyBCD. And it's very popular.

Quote:
Originally Posted by leonardevens

This would be the safest thing from the point of view of mainating Vista.
Many people feel that way. It's a legitimate opinion.

Quote:
Originally Posted by leonardevens

I assume the same would be true about Window 7.
Yes. I don't use Vista or Windows 7, but I do know that they use the same boot loader arrangement. I've seen plenty of examples on the Internet of EasyBCD being used with Windows 7.

Quote:
Originally Posted by leonardevens

Has anyone anything helpful to say about the matter? Are there any gotchas either about Vista or Windows 7 that I ought to worry about?
The are plenty of guides on using EasyBCD to configure Bootmgr to boot Linux. And they usually mention this, but when you install Fedora watch for and choose the boot loader option to install GRUB in the first sector of the Fedora boot partition. That is what Bootmgr actually launches since it cannot directly launch a Linux kernel. I mention this because sometimes when people intend to use another boot loader, they choose not to install Fedora's GRUB at all. When that other boot is a Windows boot loader, there will then be trouble. EasyBCD does have a GRUB boot loader of its own called NeoGRUB that can directly launch a Linux kernel, but IMO it's simpler and better to install Fedora's GRUB in the first sector of the Fedora boot partition and boot that with other boot loaders. It also does not require any maintenance when the Fedora kernel is updated.
Reply With Quote
  #3  
Old 2009-11-06, 02:39 PM CST
aesir's Avatar
aesir Offline
Registered User
 
Join Date: Nov 2008
Location: ~
Age: 23
Posts: 42
linuxfedorafirefox
Recently I've had a big headache trying to fix my little cousin's pc for a virus in xp.
After reinstalling windows I've decided to add a new partition to backup some thing; the new partition was at the end of the drive and partition order didn't change so I thought that the windows boot loader would have worked without problem: since that moment windows was no more able to boot.
The boot loader wasn't even running and after BIOS startup I only got a sad "no boot drive found".

No windows recover tool (install cd, fixboot, fixmbr and all the combinations that I found on the internet) was able to bring back the boot loader and I finally gave up and reinstalled everything from scratch after creating the partitions.

I don't know if newer windows versions have more resistant boot loaders, but after this story I've decided that they will stay away from my mbr.


About your problem with vista sp2 I have to say that it is almost surely unrelated to GRUB, since on my sister's pc the update completed with success and it didn't touch GRUB.


From my experiences GRUB is much stronger and - as long as your partitions don't get lost - is simple to reinstall after reinstalling any OS.
Reply With Quote
  #4  
Old 2009-11-06, 03:27 PM CST
dd_wizard's Avatar
dd_wizard Offline
Registered User
 
Join Date: Sep 2009
Posts: 71
linuxfedorafirefox
When you install GRUB in the first sector of the Fedora partition, the install program will still deactivate the Windows primary partition. This may have contributed to aesir's problem. I've always successfully recovered the Vista partition by running Startup Repair from the Vista install DVD. It's a pita, but all that needs to be done is activating the Vista partition again.

I wish Fedora left the active windows partition alone when GRUB is installed in the Fedora partition, but there's a thread that explains why that's not done now, iirc.

dd
Reply With Quote
  #5  
Old 2009-11-06, 03:43 PM CST
aesir's Avatar
aesir Offline
Registered User
 
Join Date: Nov 2008
Location: ~
Age: 23
Posts: 42
linuxfedorafirefox
Quote:
Originally Posted by dd_wizard View Post
When you install GRUB in the first sector of the Fedora partition, the install program will still deactivate the Windows primary partition. This may have contributed to aesir's problem. I've always successfully recovered the Vista partition by running Startup Repair from the Vista install DVD. It's a pita, but all that needs to be done is activating the Vista partition again.

I wish Fedora left the active windows partition alone when GRUB is installed in the Fedora partition, but there's a thread that explains why that's not done now, iirc.

dd
I've tried what you say, both via gparted and in the GRUB shell with a live CD, but this didn't help.
BTW on that pc there was only windows XP, no Fedora or GRUB.

I've never had problem with GRUB installation preventing windows boot, could you please explain me better what you meant with you last sentence?
Reply With Quote
  #6  
Old 2009-11-06, 04:05 PM CST
dd_wizard's Avatar
dd_wizard Offline
Registered User
 
Join Date: Sep 2009
Posts: 71
linuxfedorafirefox
When grub is installed in the first sector of the Fedora partition, the original Windows system partition would normally be able to boot to the Windows bootloader. However, the Fedora installer actually deactivates the active Windows partition, so it must be reactivated with Startup Repair. Since I use EASYBcd and the Vista bootloader, it got annoying to reactivate my Vista partition every time I installed a new snapshot of F12.

It seems to me that any time grub is installed in the Fedora partition, the active Windows system partition should be left active. Otherwise, the machine is unbootable without doing a startup repair.

So, I wish the Fedora installer didn't deactivate the Windows system partition.

dd
Reply With Quote
  #7  
Old 2009-11-06, 05:08 PM CST
stoat Offline
Community Manager
 
Join Date: Jun 2006
Posts: 3,624
windows_xp_2003ie
Quote:
Originally Posted by dd_wizard

I wish Fedora left the active windows partition alone when GRUB is installed in the Fedora partition...
Hello dd_wizard,

I forgot that. Thanks for mentioning it. To me, since I use NTLoader as my boot loader, it's not such as good idea either. In fact, it's so wrong to me that I keep forgetting it. It a new thing with Fedora 11. I have always used NTLoader and never had to change the active partition back to Windows before.

Quote:
Originally Posted by dd_wizard

...but there's a thread that explains why that's not done now, iirc.
This other thread here about the same thing has JEO's explanation for it...
http://forums.fedoraforum.org/showthread.php?t=231421
Anyway, an easy way to fix it is with the Fedora LiveCD and its fdisk, a LiveCD partition manager such as the GParted LiveCD, or boot the Fedora system with a Super Grub Disk and use the Fedora system's fdisk.
Reply With Quote
  #8  
Old 2009-11-07, 04:46 AM CST
leonardevens Offline
Registered User
 
Join Date: Dec 2006
Age: 76
Posts: 116
linuxfedorafirefox
Quote:
Originally Posted by dd_wizard View Post
When you install GRUB in the first sector of the Fedora partition, the install program will still deactivate the Windows primary partition. This may have contributed to aesir's problem. I've always successfully recovered the Vista partition by running Startup Repair from the Vista install DVD. It's a pita, but all that needs to be done is activating the Vista partition again.

I wish Fedora left the active windows partition alone when GRUB is installed in the Fedora partition, but there's a thread that explains why that's not done now, iirc.

dd
I tried to use Vista repair to do that, but it made matters worse. My computer did not come witha Vistal installation DVD. All I got was the capability to create DVDs to reinstall Vista to factory defaults. (Fortunately that doesn't change the Partition table in the MBR, so I was still able to boot Fedora from a grub CD.I had had the foresight to create.)

I did find on the web a Vista DVD with the installation section removed---so it didn't violate Microsoft's Rules---and I used that to repair Vista. When it came up, it didn't show me an OS to repair, and I couldn't figure out how to tell it where to look. So I went to the command line, and used instructions I found on the web to restore the MBR. That claimed to succeed, but when I tried to boot, I got a "No Operating System". message. I probably could have fixed that, but it seemed easier to restore Vista to factory defaults and start from scratch. That is where I am now. I've installed grub in the boot sector of the patition containing /boot, and I am getting ready to use EasyABC at the Vista level to tell its bootloaer to boot Linux (through grub, of course).

I have no idea where Vista Repair wrote MBR information, but, when I rebooted Linux my password had been lost. Fortunately I had created another user, so I was able to login to fix that. without having to take more extreme measures. I can't conceive of how writing MBR information could manage to mess up /etc/shadow, so I presume it was just a coincidence. Most likely it was something else, such as a random gamma ray, that messed up my password.
Reply With Quote
  #9  
Old 2009-11-07, 06:03 AM CST
David Batson Offline
Registered User
 
Join Date: Jul 2009
Posts: 160
linuxopera
Interesting. It's been some months, but I installed F11 and GRUB on a hard drive with Windows 7 RC1 on it and do not recall any problems booting either one (unless my memory is faulty). I know I can boot both.
__________________
Fedora 12 on a ThinkPad T42 with ATI Radeon 9600, Intel 2200BG wireless, and Sierra Wireless 881 CardBus AirCard (AT&T)
Reply With Quote
  #10  
Old 2009-11-07, 08:19 AM CST
leonardevens Offline
Registered User
 
Join Date: Dec 2006
Age: 76
Posts: 116
linuxfedorafirefox
Quote:
Originally Posted by David Batson View Post
Interesting. It's been some months, but I installed F11 and GRUB on a hard drive with Windows 7 RC1 on it and do not recall any problems booting either one (unless my memory is faulty). I know I can boot both.
I assume you put grub in the MBR and you are booting both Windows 7 and F11 from grub. It is nice to know that also works for grub

That is the way I set up my computer with Vista and F11. I had no problems until I tried to install Service Pack 2. It wouldn't install. Google found me someone who claimed that having grub in the MBR was the source of the problem, It seems that he was right because I just managed to install Service Pack 2 with a virgin Vista installation. (I am currently booting Linux from a grub CD.) After I use EasyABC to put grub/F11 in Vista's bootloader, we will see whether or not such problems disappear.

By the way, this time I made a copy with dd in F11 of the undisturbed MBR, and copied it to a flash drive. Copying it back with dd seems the easiest method by far of resetting the MBR should trouble arise. I could if necessary even use Fedora Live to copy it back off the flash drive.
Reply With Quote
  #11  
Old 2009-11-07, 08:27 AM CST
David Batson Offline
Registered User
 
Join Date: Jul 2009
Posts: 160
linuxopera
Quote:
Originally Posted by leonardevens View Post
That is the way I set up my computer with Vista and F11. I had no problems until I tried to install Service Pack 2. It wouldn't install. Google found me someone who claimed that having grub in the MBR was the source of the problem, It seems that he was right because I just managed to install Service Pack 2 with a virgin Vista installation. (I am currently booting Linux from a grub CD.) After I use EasyABC to put grub/F11 in Vista's bootloader, we will see whether or not such problems disappear.

By the way, this time I made a copy with dd in F11 of the undisturbed MBR, and copied it to a flash drive. Copying it back with dd seems the easiest method by far of resetting the MBR should trouble arise. I could if necessary even use Fedora Live to copy it back off the flash drive.
That's some good info. I might need it one of these days.
__________________
Fedora 12 on a ThinkPad T42 with ATI Radeon 9600, Intel 2200BG wireless, and Sierra Wireless 881 CardBus AirCard (AT&T)
Reply With Quote
  #12  
Old 2009-11-07, 10:14 AM CST
aesir's Avatar
aesir Offline
Registered User
 
Join Date: Nov 2008
Location: ~
Age: 23
Posts: 42
linuxfedorafirefox
Quote:
Originally Posted by leonardevens View Post
I assume you put grub in the MBR and you are booting both Windows 7 and F11 from grub. It is nice to know that also works for grub

That is the way I set up my computer with Vista and F11. I had no problems until I tried to install Service Pack 2. It wouldn't install. Google found me someone who claimed that having grub in the MBR was the source of the problem, It seems that he was right because I just managed to install Service Pack 2 with a virgin Vista installation. (I am currently booting Linux from a grub CD.) After I use EasyABC to put grub/F11 in Vista's bootloader, we will see whether or not such problems disappear.

By the way, this time I made a copy with dd in F11 of the undisturbed MBR, and copied it to a flash drive. Copying it back with dd seems the easiest method by far of resetting the MBR should trouble arise. I could if necessary even use Fedora Live to copy it back off the flash drive.
The problem is not in GRUB per se, but in the fact that on linux install the windows partition is marked not active.
When vista tries to update to sp2 it need to write a new bootmgr, but it searches it in the active partition and then the whole process fails.
Some people has managed to resolve the issue just making active the partition and retrying to update.

The lesson to learn from this is:
whatever boot loader you happen to use, just remember to set active the f** windows partition.
Reply With Quote
  #13  
Old 2009-11-07, 11:32 AM CST
dd_wizard's Avatar
dd_wizard Offline
Registered User
 
Join Date: Sep 2009
Posts: 71
linuxfedorafirefox
Aesir wrote:

Quote:
The lesson to learn from this is:
whatever boot loader you happen to use, just remember to set active the f** windows partition.
Exactly! On my Toshiba laptop, the factory restore DVD doesn't have a Startup Reapair option either. However, as long as you have a valid Vista liscence there shouldn't be any legal issues with using a standard Window's install disk for Startup Repair. From what I've read, it's legal to install MS Vista of the same vintage, e.g. MS Home Premium replaces OEM Home Premium, and reactivate the MS install with the OEM activation. (And you can purchase the 64 bit version for media costs from MS.) This turns out to be the only way to install 64 bit windows on a number of older machines. The OEM doesn't provide a 64 bit upgrade path.

Back to Startup Repair. When you boot the install disk, you won't see a system partition since Fedora deactivated it. Just click buttons until you get around install to repair and choose Startup Repair. Somewhere in there, you'll get the message about no active system partition and voila! When you reboot, the original one is reactivated. As long as you stuck grub in the Fedora partition, the MS MBR and boot loader should be intact. If not, do another Startup Repair and reinstall them.

dd_wizard
Reply With Quote
  #14  
Old 2009-11-13, 11:55 AM CST
David Batson Offline
Registered User
 
Join Date: Jul 2009
Posts: 160
windows_xp_2003opera
I have a hard disk with Windows 7 RC1 and Fedora 11 on it. I installed Windows 7 first, the Fedora, putting GRUB on the MBR. No problem.

I just received the Window 7 Professional Upgrade box in the mail. I decided I wanted to remove F11 for the time being (until F12 comes out). I use gparted to delete all of the F11 partitions, leaving the Windows 7 RC1 partitions intact. When I tried booting, it booted into grub with errors (naturally).

To restore the Windows original bootloader, I tried to let the Windows 7 RC1 DVD to do a startup recovery. This took quite a while and did not fix anything. What worked was the following (found via Google).

Boot up the Window DVD and choose Repair, then the command prompt. From the command prompt, issue the following 2 commands, then reboot.
HTML Code:
bootrec /fixmbr
bootrec /FixBoot
__________________
Fedora 12 on a ThinkPad T42 with ATI Radeon 9600, Intel 2200BG wireless, and Sierra Wireless 881 CardBus AirCard (AT&T)
Reply With Quote
  #15  
Old 2009-11-13, 10:03 PM CST
flyingsheep2009 Offline
Registered User
 
Join Date: Oct 2009
Posts: 1
macosfirefox
I tried both but I like to go with lilo because it gives me more options than windows bootloader.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bootloader Problem between fedora 11 and windows vista Ashish Sood General Support 12 2009-10-30 09:02 PM CDT
Windows XP & Fedora 11 dual-boot problem (using Windows bootloader) zmdmw52 Installation Help 7 2009-08-09 12:29 AM CDT
Boot Windows as default in Grub Bootloader tokegee General Support 4 2007-07-02 09:32 AM CDT
Help integrating Grub and Windows Bootloader MoC Installation Help 1 2006-01-27 05:13 PM CST
Getting Windows XP to boot in bootloader properly Dizmatic Installation Help 9 2005-01-04 08:50 PM CST

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 06:16 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
Hosting provided by ThePlanet



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
vB Enterprise Translator (vBET) created by NLP-er