You are not logged in.

#1 2013-05-10 12:11:03

olric86
Member
Registered: 2013-05-10
Posts: 1

Macbook Hybrid MBR installation

Hi Everybody,

I've use archlinux for some years now on my old bios-based notebook and I'm very happy about this.
Recently I decided to give Archlinux a go on my MacBook Pro 6,2 and I did install it succesfully but using the EFI mode, maintaining the OSX partition.
Now, as you might now, the nvidia proprietary drivers don't work when in EFI mode so, after reading the wiki and other external doc pages, I decided to try to install archlinux in such a way the BIOS-compatibility mode of the mac is triggered.
My problem is that, after the installation, I'm unable to boot in arch, in particular I get the "GRUB loading" screen and then nothing, the laptop reboots as if GRUB misses something.
For the sake of clarity I'm going to explain my setup:

1] After booting into the Arch CD I've created the necessary partition in my disk using cgdisk. Here is my configuration:

Part. #     Size           Partition Type                    Partition Name
----------------------------------------------------------------------------------------------

            3.0 Kib        free space
    1       200.0 Mib      EFI System               
    2       371.6 GiB      Apple HFS/HFS+                    Customer
    3       200.0 Mib      BIOS boot partition               boot
    4       93.8 GiB       Linux filesystem                  arch

2] After that I've initialized the partitions:

mkfs -t ext2 /dev/sda3
mkfs -t ext4 /dev/sda4

3] Now I needed to sync the GPT with the hybrid MBR, Am I right? So I did this (following what explained here: http://www.rodsbooks.com/gdisk/hybrid.html

gisk /dev/sda
GPT fdisk (gdisk) version 0.8.6

Partition table scan:
  MBR: hybrid
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with hybrid MBR; using GPT

Command (? for help): p
Disk /dev/sda: 976773168 sectors, 465.8 GiB
Logical section size: 512 bytes
Disk identifier (GUID): 0002ED9-7E0D-0000-0C11-0000AC500000
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 8-sector boundaries
Total free space is 6 sectors (3.0 KiB)

Number    Start (sector)      End (sector)      Size       Code    Name
  1               40               409639     200.0 MiB    EF00    
  2           409640            779706511     371.6 GiB    AF00    Customer
  3        779706512            780116111     200.0 MiB    EF02    boot
  4        780116112            976773134     93.8  GiB    8300    boot

Command (? for help): r

Recovery/transormation command (? for help): o

Disk size is 976773168 sectors (465.8 GiB)
MBR disk identifier: 0x000054F6
MBR partitions:

Number    Boot      Start Sector     End Sector      Status          Code
  1                            1         409639      primary         0xEE
  2                       409640      779706511      primary         0xAF
  3        *           779706512      780116111      primary         0x83
  4                    780116112      976773134      primary         0x83                  

I hope the codes I put in the MBR and in GPT are right.... I've put 0x83 for the MBR partition number 3 because
it is ext2 formatted. Is it correct? Do I need to use another code?

4] Now I've installed Arch:

mount /dev/sda4 /mnt
mkdir /mnt/boot
mount /dev/sda3 /mnt/boot

pacstrap /mnt base

5] Initial system setup (locale, font, time, genfstab..)

6] Now comes the tricky part, at least for me. I want to install GRUB (bios). Following the suggestions in this thread https://bbs.archlinux.org/viewtopic.php … 9#p1270009, I've done this:

pacman -S grub-bios os-prober
modprobe dm-mod 
grub-install --target=i386-pc --recheck --debug --force /dev/sda3
chattr -i /boot/grub/i386-pc/core.img
mkdir -p /boot/grub/locale
cp /usr/share/locale/en@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
chattr +i /boot/grub/i386-pc/core.img
grub-mkconfig -o /boot/grub/grub.cfg

Now, if I reboot and I press the Alt key, I can see the OSX and "Windows" (I guess this is the default name the mac efi assign to the BIOS bootable partition ?) disks icons, if I select the Windows' disk I see the

GRUB Loading...

text for a few seconds and then the system reboots.
Can someone help me? What did I possibily make wrong?

Fell free to insult me if I did something super wrong!
Thank you in advance!

Last edited by olric86 (2013-05-10 12:42:06)

Offline

Board footer

Powered by FluxBB