Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MtNtu-0004qT-0O for mharc-grub-devel@gnu.org; Thu, 01 Oct 2009 11:49:02 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtNts-0004q3-Ty for grub-devel@gnu.org; Thu, 01 Oct 2009 11:49:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtNto-0004ow-CY for grub-devel@gnu.org; Thu, 01 Oct 2009 11:49:00 -0400 Received: from [199.232.76.173] (port=56503 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtNto-0004ot-6W for grub-devel@gnu.org; Thu, 01 Oct 2009 11:48:56 -0400 Received: from mail-pz0-f181.google.com ([209.85.222.181]:35584) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MtNtn-0003GJ-PN for grub-devel@gnu.org; Thu, 01 Oct 2009 11:48:55 -0400 Received: by pzk11 with SMTP id 11so270151pzk.14 for ; Thu, 01 Oct 2009 08:48:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=uBjzUHwYEOD5re6Oa3w8zMAayDb9azEaXV4ZF5n050U=; b=bHeGNGWojPfQ8mHJjdRYVgJTx9funRByL3zDKqiXHqqGo8UmflFGwbTVR5O5LU01CY UFpKT2CHbWsZKux36ltTMH3l07WJca3+VAor1ZNUcrXIhZrGZ081Nk03ZrMN5dr/AuQV IGpJeJbnVlgC9ghbmffGEI8aJzq52v1a2fBBw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ZdvO3JWl1JpmoS65Y/7VZes7I2/v4i3v4+TSXd0jYI6dHOPWbqfewkovluJ4v7nPRZ sRqIf+vA80RjTlhH9Vne35P1NedQfqMVM5JIyKoI7HDO6QhT6sEl88cOeoHAm0bLMW5l kwwY9QYb0RKFRwyBAWpQzynb8Xd1W4Kcx89eA= MIME-Version: 1.0 Received: by 10.140.127.20 with SMTP id z20mr335409rvc.186.1254412133739; Thu, 01 Oct 2009 08:48:53 -0700 (PDT) In-Reply-To: References: Date: Thu, 1 Oct 2009 23:48:53 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Creating an (Apple) EFI bootable media X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Oct 2009 15:49:01 -0000 On Thu, Oct 1, 2009 at 11:17 PM, Michal Suchanek wrote: > Hello > > Is there a way to reproducibly create Grub bootable media (CD, USB > stick) that can be used with Apple efi? > > I tried some ways of blessing the boot loader which I found on the net > but none works. Hi, You should format it as GPT, MBR may not work. The fs of choice is hfsplus, although I heard someone have successful boot with FAT. To bless the disk, use something like this: (only available for hfsplus) sudo bless --folder=/Volumes/USBDISK --file=/Volumes/USBDISK/efi/grub/grub.efi bless writes the location of boot file to the hfsplus header. bless doesn't work on FAT. At startup, you need to press the Option key to show startup disk, and select the usb disk. The following command writes the boot device to nvram so that it's used by default: sudo bless --folder=/Volumes/USBDISK --file=/Volumes/USBDISK/efi/grub/grub.efi --setBoot > > Also the default core image probably lacks some essential parts. I > managed to load it as rEFIt shell command by placing it in the tools > directory but it complained about "prefix" not being defined and I > seemingly had no commands - the help command was not available, and > pressing tab did not show anything. You can add the command to the generated EFI image with grub-mkimage, here are the list of modules I usually use: ./grub-mkimage -d . -o grub64.efi minicmd part_gpt part_msdos part_apple fat ext2 hfsplus hfs ntfs reiserfs xfs iso9660 udf ls search loopback linux chain reboot halt appleldr help configfile hexdump loadbios memrw fixvideo crc sh video efi_fb gfxterm font png coreui loadcfg menutest gfxmenu textmenu > > For some reason I cannot boot rEFIt from external media either but I > can bless rEIFt on the built-in HDD. > > I don't know what the Apple bless commnad is supposed to do so I have > no idea if whatever it did was correct. > I suspect different arguments than those advised on the various web > pages are needed when blessing a boot loader on an external medium (as > opposed to the root volume). -- Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/