[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: booting Lenny on Intel MacMini with grub-efi WITHOUT OS X partition



Hi,

I think you have a mac intel like me and i experienced problem with grub (not efi version, i have to test it, maybe it works): he can boot anymore Lenny.

You can use lilo for booting (works here).

This is my functionnal partitionned iMac Intel disk:

gui@debian:~$ sudo fdisk -l /dev/sda

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x5a7fe020

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          26      204819+  ee  EFI GPT
Partition 1 does not end on cylinder boundary.
/dev/sda2              26       11663    93478227+  af  Unknown
/dev/sda3   *       11664       22492    86983942+  83  Linux
/dev/sda4           22493       30401    63529042+   7  HPFS/NTFS

Maybe you have to check if gpttable is synchronised with mbr:

gui@debian:~$ sudo gptsync /dev/sda

Current GPT partition table:
 #      Start LBA      End LBA  Type
 1             40       409639  EFI System (FAT)
 2         409640    187366094  Mac OS X HFS+
 3      187366095    361333979  Basic Data
 4      361333980    488392064  MS Reserved

Current MBR partition table:
 # A    Start LBA      End LBA  Type
 1              1       409639  ee  EFI Protective
 2         409640    187366094  af  Mac OS X HFS+
 3 *    187366095    361333979  83  Linux
 4      361333980    488392064  07  NTFS/HPFS

Status: Tables are synchronized, no need to sync.


Hope this help a little.


Brendan Simon wrote:
I have installed Lenny on an Intel Mac Mini, but can't get it to boot from the hard disk :(

I blew away the OS X partition (intentionally). I just want Linux on it and nothing else. I chose the single partition option with LVM during installation.

My net-inst CD is a little old (08-MAR-2008). When installing grub it installed grub-pc, but I need grub-efi. I did that manually by booting in rescue mode and doing "aptitude install grub-efi ; aptitude remove grub-pc".
Does the latest installer have support for grub-efi ???

I also have a boot CD with rEFIt. It said the partition was FAT. The rEFIt FAQ says to use parted to remove the boot flag and then use the partitioner in rEFIt. Now instead of the getting the flashing question-mark folder, I get a console message saying "Missing Operating System".

Running rEFIt partitioning tool gives me the following.

   Starting gptsync.efi

   Current GPT partition table:
    #   Start LBA     End LBA   Type
    1          34   150992221   Basic Data
     2   150992222   156301454   Linux Swap

   Current MBR partition table:
    # A Start LBA     End LBA   Type
     1           1          33   EE  EFI Protective
     2          34   150992221   Linux
     3   150992222   156301454   Linux Swap / Solaris

   Status: Analysis inconclusive, will not touch this disk.
   Error: Not Found returned from gptsync.efi

   * Hit any key to continue *


I'm guessing that the EFI startup code is looking for an EFI application, presumably grub.efi or something like that.
Do I have to generate this image with grub-mkimage ???

Since there is a MBT on the disk, then maybe grub-pc is the way to go ??? It does seem a hack though given that MACs have moved on from MBR and using GPT.

Thanks for any advice on how to boot Lenny using grub-efi.
Cheers, Brendan.







Reply to: