Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Gqulj-00025T-FR for mharc-grub-devel@gnu.org; Sun, 03 Dec 2006 12:04:47 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gqulh-00024J-QL for grub-devel@gnu.org; Sun, 03 Dec 2006 12:04:45 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gqulf-00023p-Rg for grub-devel@gnu.org; Sun, 03 Dec 2006 12:04:45 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gqulf-00023b-Gw for grub-devel@gnu.org; Sun, 03 Dec 2006 12:04:43 -0500 Received: from [141.76.2.1] (helo=mail.inf.tu-dresden.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gqule-0008T3-HX for grub-devel@gnu.org; Sun, 03 Dec 2006 12:04:43 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.inf.tu-dresden.de (8.13.7/8.13.7) with ESMTP id kB3H4Ynt007674 for ; Sun, 3 Dec 2006 18:04:34 +0100 (CET) Received: from mail.inf.tu-dresden.de ([127.0.0.1]) by localhost (mail.inf.tu-dresden.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06185-08 for ; Sun, 3 Dec 2006 18:04:34 +0100 (CET) Received: from [10.1.11.69] (p54B31DB2.dip0.t-ipconnect.de [84.179.29.178]) (authenticated bits=0) by mail.inf.tu-dresden.de (8.13.7/8.13.7) with ESMTP id kB3H4SEO007633 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 3 Dec 2006 18:04:33 +0100 (CET) Message-ID: <457303C0.6090701@inf.tu-dresden.de> Date: Sun, 03 Dec 2006 18:05:04 +0100 From: Eeri Kask User-Agent: Thunderbird 1.5.0.7 (X11/20061102) MIME-Version: 1.0 To: grub-devel@gnu.org X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at inf.tu-dresden.de Subject: EFI-dualbooting OSX and Linux on iMac with T7400-CPU 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: Sun, 03 Dec 2006 17:04:46 -0000 Hello, After creating 4 partitions with MacOSX installation CD (and installing OSX) I installed Gentoo 2006.1 x86_64 onto the 4th partition (i.e. /dev/sda5; in OSX invisible FAT32 partition counts as /dev/sda1). Now I am kindly looking for help in making linux EFI-bootable using grub2. In short, what I did so far is (following instructions at http://grub.enbug.org/TestingOnEFI as closely as I could): running on CD-booted 64-bit Linux (on /dev/sda5 as root filesystem): 1) cvs -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/grub checkout grub2 2) cd grub2 3) ./configure --with-platform=efi 4) make 5) ./grub-mkimage -d . -o grub.efi gpt hfsplus fat ext2 6) cp grub.efi *.mod fs.lst command.lst /boot/grub/ 7) cp grub.efi *.mod fs.lst command.lst /media/usbdisk/ 8) I compiled 2.6.18.3 kernel as /boot/vmlinuz Then I booted MacOS and as root-user: 9) mkdir /Volumes/something/efi/grub 10) Copied usbstick/* to /Volumes/something/efi/grub/ 11) bless --folder=/Volumes/something --file=/Volumes/something/efi/grub/grub.efi --setBoot 12) Then I created /Volumes/something/efi/grub/grub.cfg as set timeout=10 menuentry "GNU/Linux" { search --set /boot/vmlinuz set root=(hd0,5) linux /boot/vmlinuz root=/dev/sda5 } menuentry "MacOSX" { set root=(hd0,2) chainloader /usr/standalone/i386/boot.efi In fact 'something' is 'Macintosh HD part2', OSX formatted HFS+ journaled partition /dev/disk0s3. Now if holding down the 'alt' key while powering on I can choose between disk0s2 with installed OSX and 'EFI_boot' (disk0s3) which loads and starts grub if selected. Grub comes and gives lots of errors: (line 2-2) syntax error Incorrect command ... (line 12-12) Press any key to continue... Then grub shows command line interface: grub> set root=(hd0,5) grub> linux /boot/vmlinuz root=/dev/sda5 grub> boot grub> _ is what I entered and now nothing happens. However grub reads the ext3-formatted /dev/sda5 partition as typing TAB completes path- and filenames. I am very thankful if someone could point out what is wrong I have done above. I have zero experience in using MacOSX but I think the 'bless' was successful as OSX presents boot device where grub was copied. Second, I suspect I probably can't boot "MacOSX"-entry above because I could not figure out if grub can read files in HFS+ journaled partitions (maybe this is why grub shows syntax errors?); but I can happily live with pressing 'alt' key while turning power on. Greetings (I am sorry for the long post), Eeri Kask