Jump to content
InsanelyMac Forum
solu

Patch bootloader to boot from Mac volumes ONLY

Recommended Posts

Advertisement

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

Share this post


Link to post
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?

Share this post


Link to post
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:

Share this post


Link to post
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

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites
how can you compile the file chain0.s?

It's in the comments of the file.

 

; This code is written for the NASM assembler.
;   nasm chain0.s -o chain0

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.



×