Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bootloader issue with OS X & Gentoo Macbook Pro
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
braz2kuk
n00b
n00b


Joined: 26 Apr 2007
Posts: 60

PostPosted: Wed Feb 05, 2014 11:03 pm    Post subject: Bootloader issue with OS X & Gentoo Macbook Pro Reply with quote

Hi all,

I have decided recently to switch to Gentoo i have a MacBook Pro with OS X installed, I then used gParted to partition my HDD as follows:

/dev/sda1 EFI Partition
/dev/sda2 OS X Mavericks Partition
/dev/sda3 bios_grub Partition
/dev/sda4 /boot Partition (ext4)
/dev/sda5 SWAP Partition (swap)
/dev/sda6 / Partition (swap)

I then installed Gentoo as per the handbook for the AMD64 architecture and everything went smoothly. I then ran into some issues when installing the bootloader i wanted to install Grub2 to the /boot partition (/dev/sda4) when i did this i got a warning message however used the --force option upon rebooting i am presented with the rEFInd boot menu with the options of Mac OS X and Linux to boot. When selecting the linux option i get a black screen with the message 'No bootable disk' I spent hours installing gentoo and i am now gutted as i cannot boot it.

Can anyone please help my get this bootloader working i am not sure what i have done, Also it is worth mentioning i compiled my kernel with genkernel-next as will need systemd support for Gnome 3.8. When running the grub2 configuration script during installing it successfully detected my initramfs and kernel.

Ideas and solutions very much welcome

Thanks in advance
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Thu Feb 06, 2014 2:39 am    Post subject: Reply with quote

legacy grub
Code:
emerge sys-boot/grub:0
now works on gpt disks and installs nicely on partitions
_________________
Defund the FCC.
Back to top
View user's profile Send private message
braz2kuk
n00b
n00b


Joined: 26 Apr 2007
Posts: 60

PostPosted: Thu Feb 06, 2014 8:55 am    Post subject: Reply with quote

Thanks for the reply however i would like to if possible get information on how to use one of the following options:

1) Use GRUB2 to boot Mac OS X & Gentoo without the use of rEFInd
2) Use rEFInd to boot Mac OS X & Gentoo but without the use of GRUB at all

Thanks in advance
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Thu Feb 06, 2014 1:39 pm    Post subject: Reply with quote

did you build an efi stub kernel?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
braz2kuk
n00b
n00b


Joined: 26 Apr 2007
Posts: 60

PostPosted: Thu Feb 06, 2014 6:20 pm    Post subject: Reply with quote

Yes i have recompiled my kernel with EFI stub support.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Thu Feb 06, 2014 6:37 pm    Post subject: Reply with quote

rEFInd should find the stub kernel, does it do so? The stub kernel should have the initrd (as a .cpio file) and kernel command line built in and the name shouild include vmlinuz for best results .

http://www.rodsbooks.com/ubuntu-efi/ is worth a complete read. "Improving the Boot Method" near the end points toward what you want.
http://www.rodsbooks.com/efi-bootloaders/efistub.html
http://wiki.gentoo.org/wiki/EFI_stub_kernel
_________________
Defund the FCC.
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1374

PostPosted: Thu Feb 06, 2014 7:44 pm    Post subject: Reply with quote

DONAHUE wrote:
The stub kernel should have the initrd (as a .cpio file) and kernel command line built in and the name shouild include vmlinuz for best results .
But not needed. For example
- If you mount /dev/sda1 EFI-partition to /boot/efi
- If you copy your new kernel to
/boot/efi/Gentoo.new/vmlinuz
/boot/efi/Gentoo.new/initrd
- And your Gentoo is at /dev/sda7
- And somewhere in /boot/efi/EFI/refind/refind.conf
Code:
menuentry Gentoo.new {
    ostype Linux
    icon    EFI/refind/icons/os_gentoo.icns
    volume  EFI
    graphics off
    loader  /Gentoo.new/vmlinuz
    initrd  /Gentoo.new/initrd
    options "root=/dev/sda7 rootfstype=ext4"
}
In such a way you never have to edit refind.conf but obviously copy the new kernel and initrd. You can turn off refinds scan for kernel ...
_________________
fun2gen2
Back to top
View user's profile Send private message
braz2kuk
n00b
n00b


Joined: 26 Apr 2007
Posts: 60

PostPosted: Thu Feb 06, 2014 10:50 pm    Post subject: Reply with quote

Thanks both got it working much easier to boot with rEFInd without grub very smooth booting :-) happy days now for systemd and gnome 2.8 the fun continues.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Thu Feb 06, 2014 11:26 pm    Post subject: Reply with quote

you wish it were 2.8 :?

welcome to the annoying world of gnome 3.8, emerge gnome-extra/gnome-shell-extensions helps
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum