Date: Mon, 05 Dec 2011 23:37:13 -0800 From: "Thomas D. Dean" <tomdean@speakeasy.org> To: freebsd-amd64@FreeBSD.org Subject: Re: Install Problems on ASUS P9X79 GPT - SOLVED Message-ID: <1323157033.14453.29.camel@asus> In-Reply-To: <1323072034.14453.16.camel@asus> References: <1323072034.14453.16.camel@asus>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1323157033.14453.29.camel>