Jump to content

Patch bootloader to boot from Mac volumes ONLY


solu
 Share

11 posts in this topic

Recommended Posts

I think what you mean is that the Darwin loader picks the Active Partition as the default. Therefore, if you have X partition as the default (boot partition). Darwin by default will boot to that partition. So to clarify.

 

1.-Any OS (Active Partition)

2.-Mac OSX

 

If you select #2 The Mac OSX, then Darwain loader will default itself to boot to 1.-Any OS. Unless you tell it to boot. (By pressing F8 or change the time out value). If you dont touch the computer it will create a loop and eventually boot to Number 1.

 

This has been an annoyance. But nothing to go crazy about. When I select MacOsx I then scroll down the list in Darwin to select the OSX partition. But it would be cool to be able to pick the default boot partition in Darwin.

Edited by ppan76
Link to comment
Share on other sites

ppan76, that's precisely what I mean :-)

 

For example, I have a GRUB menu with:

(hd0,0) Windows

(hd0,1) XNU

(hd0,3) Linux

 

I have set up GRUB so that it loads whatever system was booted last time.

But if XNU was booted last time, GRUB does load the Darwin bootloader, which in turn loads Windows anyway, unless I press F8 fast enough and actively select my XNU partition. I find this annoying, since I can't find a setup that loads XNU automatically by default.

 

Hence I think we should modify the Darwin bootloader so that it simply ignores non-HFS partitions. (We can choose them from GRUB if we want to boot from them.)

 

Well, if you're using grub, isn't there a makeactive that can set the partition to be active so that OSX selects it first?

Link to comment
Share on other sites

This has been an annoyance. But nothing to go crazy about. When I select MacOsx I then scroll down the list in Darwin to select the OSX partition. But it would be cool to be able to pick the default boot partition in Darwin.

im doing the exact same thing :hysterical:

Link to comment
Share on other sites

As stu said, there's the makeactive command.

Also, there's the hide/unhide and makeactive commands to hide/unhide partitions in grub configuration.

Since you're using grub, when choosing osx in grub's menu, you could beforehand hide unwanted partitions and make your osx partition active.

 

An example (for inspiration) for using the hide/unhide command.

Link to comment
Share on other sites

I have the OS on an extended partition, and those cannot be made active it appears.
... indeed.

 

It's possible to install osx in a logical partition and make it work, but under certain conditions, and it can't be booted directly, it needs a third party bootloader (not all might work though), or another darwin loader in a primary.

 

So a much better/preferred way is to install OSX in a primary, and also a primary before the extended partition (if there is one) (also, the osx primary partition number has to be before the extended partition number in the partition table... this little detail is usually taken care of with partition tools, but not all; that's why it's not usually mentioned).

Edited by cbmkgd
Link to comment
Share on other sites

Just a little curious: is your OSX logical partition placed in the front of the extended partition?

 

Anyway, have you tried to hide the Windows partition in grub in the osx section, so that it doesn't show in the darwin loader? (Don't forget to unhide it in the windows section of the grub menu)

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
 Share

×
×
  • Create New...