I guess it's time to do another step-by-step guide to getting this done:
Partitions
I used a
gparted live CD to create three logical partitions, for /, /usr, and swap. For the lack of a better option I formatted them fat32 - that also makes it possible to check if you've got the right partition later on (it'll mount with mount_msdosfs, be empty, and have the appropriate size and perhaps label).
FreeBSD
I then rebooted into a FreeBSD 7.2-BETA1 livefs CD, and in the fixit shell did this:
Code:
[B]Fixit# [/B]newfs /dev/ad0s7
[B]Fixit# [/B]newfs -U /dev/ad0s9
[B]Fixit# [/B]mkdir /new
[B]Fixit# [/B]mount /dev/ad0s7 /new
[B]Fixit# [/B]mkdir /new/usr
[B]Fixit# [/B]mount /dev/ad0s9 /new/usr
[B]Fixit# [/B]exit
In sysinstall, choose Configure.
In the configure menu, first go to
Options and change
Install Root to /new .
Then go to
Distributions, and select
base and
kernels (picking the GENERIC kernel).
Exiting the Distributions selection will bring up the media selection. Pick whatever works for you, but keep in mind that you can't install off a livefs CD. I used FTP.
When that finishes, exit out to the main menu and start the fixit shell again - it'll complain a bit (about linker cache and mounting /bin, I seem to remember), but that's harmless.
At the shell, do this:
Code:
[B]Fixit# [/B]cd /boot
[B]Fixit# [/B]mv GENERIC kernel
[B]Fixit# [/B]ee /etc/fstab
In the fstab, add something like this:
Code:
/dev/ad0s7 / ufs rw 1 1
/dev/ad0s9 /usr ufs rw 2 2
/dev/ad0s8 none swap sw 0 0
Save, exit, exit the fixit shell, and get ready to mess with grub2 - but first, a small fix.
Partition types
Going back to the gparted live CD, open a shell, start cfdisk, and change the type of the FreeBSD partitions to A5 - the FreeBSD id.
(This could probably have been done straight after the partitioning step. Oh well.)
GRUB 2
To be written - but essentially, "install it and use the commands in the previous post to boot FreeBSD".