LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-05-2008, 08:52 PM   #1
CJS
Member
 
Registered: May 2008
Location: California, USA
Distribution: Ubuntu 8.10
Posts: 247

Rep: Reputation: 49
Can BIOS Limitation Prevent Grub from booting Windows if no boot flag set?


I know from experience that I can boot Windows with Grub on my machine even if its partition doesn't have its boot flag set, and this is also the experience of most of my friends. But I have one friend who claims he must have the boot flag set on his Windows partition or he can't boot it with Grub. He claims it is a limitation of his BIOS; I don't understand the logic behind that, because I thought that once BIOS hands the boot process over to the master boot record (MBR), then BIOS doesn't care whether any partition has its boot flag set, only the MBR might. For non-configurable boot loaders like the Win XP MBR, the Win MBR relies on one of the partitions having the boot flag set, because that is how the Win XP MBR decides which partition to boot. But in my experience, that is not the case with Grub, as Grub is happy to boot a partition regardless of whether it is the active partition (i.e. has its boot flag set on).

So does anyone think that BIOS could somehow be stopping Grub from booting his Windows partition just because it is not the active partition? Because that is not the experience of myself or most of my friends. Thanks in advance for any help.
 
Old 09-05-2008, 09:23 PM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
The way the BIOS worked (historically) was to check for a 'magic number' in the MBR; if the magic number was there, it loaded a certain amount of information from the MBR (the 'bootloader') and executed it. Later on the bootloader would typically reside within the partition's own directory table; at this point BIOS mutated to check the MBR but also check for a "bootable" flag to automatically determine where the bootloader is. Once a bootloader is running, BIOS has nothing to do with booting aside from providing system calls to read data.

Your friend shouldn't have to mark a partition as 'bootable' for Grub to boot WinDuhs; there must be something else going on. 'ntldr' will only run from "hd0", so if there are multiple discs and Linux is on hd0, it may be necessary to tell grub to swap hd0,hd1 before chaining to the WinDuhs bootloader.

It would be easiest to check if you can post your friend's Grub menu.lst.
 
Old 09-07-2008, 09:53 AM   #3
CJS
Member
 
Registered: May 2008
Location: California, USA
Distribution: Ubuntu 8.10
Posts: 247

Original Poster
Rep: Reputation: 49
Thanks pinniped, that makes sense. But just to clarify, even though the BIOS always will always try to boot the MBR and not a partition directly (using its partition boot record), you are saying there are some newer BIOSes that will check that one partition on the HDD has its boot flag set? So if no partition is marked active, BIOS could return an error and refuse to hand-off the booting process to the MBR? (Even though a boot loader like Grub in the MBR doesn't care if there are any active partitions?)
 
Old 09-07-2008, 10:08 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
If I am not mistaken, the BIOS simply looks for valid boot code in the MBR. At this stage, it knows nothing about bootable partitions. I've installed Linux on maybe 10 different machines---2 of which are quite new. I've never needed a "bootable" flag yet.

I believe it is ntldr that needs to find the bootable flag......
 
Old 09-08-2008, 08:17 AM   #5
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
yes and the easy way to do that for all grub entries for ms just add a line
makeactive
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does /boot need boot flag when dual booting? dr_zayus69 Linux - Software 4 09-15-2007 08:55 PM
windows keeps erasing boot flag zowey Linux - General 13 03-17-2007 09:21 AM
Booting XP resets boot flag to its partition gavinbeatty Linux - General 6 12-26-2006 07:04 PM
Booting to thumb drive with Grub without BIOS support, possible? Baix Linux - Software 1 06-24-2005 12:12 PM
how to hide GRUB bootloader while booting a duel boot system ( linux/windows ) ? dommini Linux - General 0 12-03-2003 03:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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