From owner-freebsd-amd64@FreeBSD.ORG Tue Dec 6 07:37:16 2011 Return-Path: Delivered-To: freebsd-amd64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5574B1065740 for ; Tue, 6 Dec 2011 07:37:16 +0000 (UTC) (envelope-from tomdean@speakeasy.org) Received: from asbnvacz-mailrelay01.megapath.net (asbnvacz-mailrelay01.megapath.net [207.145.128.243]) by mx1.freebsd.org (Postfix) with ESMTP id 12FC08FC16 for ; Tue, 6 Dec 2011 07:37:15 +0000 (UTC) Received: from mail1.sea5.speakeasy.net (mail1.sea5.speakeasy.net [69.17.117.39]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id 29E9AA70A83 for ; Tue, 6 Dec 2011 02:37:15 -0500 (EST) Received: (qmail 4774 invoked from network); 6 Dec 2011 07:37:14 -0000 Received: by simscan 1.4.0 ppid: 13241, pid: 799, t: 0.3501s scanners: clamav: m: Received: from 24-113-112-30.wavecable.com (HELO [192.168.2.2]) (tomdean@[24.113.112.30]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 6 Dec 2011 07:37:14 -0000 From: "Thomas D. Dean" To: freebsd-amd64@FreeBSD.org In-Reply-To: <1323072034.14453.16.camel@asus> References: <1323072034.14453.16.camel@asus> Content-Type: text/plain; charset="UTF-8" Organization: Home Date: Mon, 05 Dec 2011 23:37:13 -0800 Message-ID: <1323157033.14453.29.camel@asus> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail1.sea5 X-Spam-Level: * X-Spam-Status: No, score=1.6 required=8.0 tests=BAYES_50 autolearn=disabled version=3.0.4 Cc: Subject: Re: Install Problems on ASUS P9X79 GPT - SOLVED X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: tomdean@speakeasy.org List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2011 07:37:16 -0000 On Mon, 2011-12-05 at 00:00 -0800, Thomas D. Dean wrote: I think I have it... Maybe this should get in a FAQ somewhere... I did: 1. Install windows 7 on disk 0, 200G partition - windows corrupted the GPT partition because microsoft does not understand GPT tables. 2. Install Ubuntu 11.10 on disk 1, using some 110G Update-grub finds the windows installation and I can boot either from the grub menu. 3. Install FreeBSD 9.0 (RC2) on disk 1 after Ubuntu, using the remainder of the disk. 4. Reboot and at the grub menu, enter 'c' to escape to the command prompt. Enter the commands: insmod part_gpt insmod ufs2 set root='(hd1,gpt4)' echo Loading kernel of FreeBSD kernel ... kfreebsd /boot/kernel/kernel kfreebsd_loadenv /boot/device.hints set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ad1p4 set kFreeBSD.vfs.root.mountfrom.options=rw boot This can be included in grub by booting Ubuntu, in my case, and creating a file /etc/grub.d/11_freebsd: #!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. menuentry "FreeBSD 9.0 (RC2)" { insmod part_gpt insmod ufs2 set root='(hd1,gpt4)' echo Loading kernel of FreeBSD kernel ... kfreebsd /boot/kernel/kernel kfreebsd_loadenv /boot/device.hints set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ad1p4 set kFreeBSD.vfs.root.mountfrom.options=rw } >From Ubuntu, gathered information: $ sudo parted /dev/sdb print Model: ATA WDC WD5000AAKX-6 (scsi) Disk /dev/sdb: 500GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 17.4kB 100GB 100GB ext4 2 100GB 132GB 32.0GB linux-swap(v1) 3 132GB 132GB 65.5kB 4 132GB 495GB 363GB freebsd-ufs 5 495GB 499GB 4295MB $ sudo mount -t ufs -o ufstype=ufs2 -r /dev/sdb4 /mnt tomdean@P9X79:~$ ls /mnt bin COPYRIGHT etc libexec mnt rescue sbin tmp var boot dev lib media proc root sys usr tomdean@P9X79:~$ ls /mnt/boot beastie.4th check-password.4th gptzfsboot menu-commands.4th userboot.so boot color.4th kernel menu.rc version.4th boot0 defaults loader modules zfs boot0sio delay.4th loader.4th pmbr zfsboot boot1 device.hints loader.help pxeboot zfsloader boot2 firmware loader.rc screen.4th brand.4th frames.4th mbr shortcuts.4th cdboot gptboot menu.4th support.4th