I have a USB stick with a grub2 bootloader installed. Great tool when you want boot an iso without burning CD's.
I now want to boot the FreeBSD installer from the stick and have disc1.iso on an ext2 partition of the stick. I chose to use disc1.iso because I figured FreeBSD memstick.iso would install the FreeBSD bootloader on the stick and remove grub2. My menu entry in grub.cfg is:
Boot process moves along fine until it gets to mounting root (/). Here it drops to the [CMD=""]mountroot>[/CMD] prompt where "? = list valid disk boot devices". In my menu entry I have also tried to change
[CMD=""]set FreeBSD.vfs.root.mountfrom=cd9660:/dev/ad1s1[/CMD]
to
[CMD=""]set FreeBSD.vfs.root.mountfrom=ufs:/dev/ad1s1[/CMD]
with no result (obviously). The ? option at the command line does list available slices on the USB stick!
Question is: Given that grub has completed its job and passed command the FreeBSD bootloader, what would be the correct menu entry for successful boot to the setup menu? Of course, I may also be missing a line in grub like ramdisk= or such...
Unrelated but for the record, grub did not recognize the kfreebsd command but worked alright with the freebsd command. Whereas when booting from my already working hdd, the command grub is using is kfreebsd.
I now want to boot the FreeBSD installer from the stick and have disc1.iso on an ext2 partition of the stick. I chose to use disc1.iso because I figured FreeBSD memstick.iso would install the FreeBSD bootloader on the stick and remove grub2. My menu entry in grub.cfg is:
Code:
insmod loopback
insmod iso9660
insmod ufs2
insmod zfs
search --no-floppy --fs-uuid --015e657c-etc..
menuentry "FreeBSD 8.1 iso" {
set isofile="/boot/FreeBSD-8.1-RELEASE-amd64-disc1.iso"
loopback loop (hd0,1)$isofile
freebsd (loop)/boot/kernel/kernel
freebsd_loadenv (loop)/boot/device.hints
set FreeBSD.vfs.root.mountfrom=cd9660:/dev/ad1s1
set FreeBSD.vfs.root.mountfrom.options=rw
}
[CMD=""]set FreeBSD.vfs.root.mountfrom=cd9660:/dev/ad1s1[/CMD]
to
[CMD=""]set FreeBSD.vfs.root.mountfrom=ufs:/dev/ad1s1[/CMD]
with no result (obviously). The ? option at the command line does list available slices on the USB stick!
Question is: Given that grub has completed its job and passed command the FreeBSD bootloader, what would be the correct menu entry for successful boot to the setup menu? Of course, I may also be missing a line in grub like ramdisk= or such...
Unrelated but for the record, grub did not recognize the kfreebsd command but worked alright with the freebsd command. Whereas when booting from my already working hdd, the command grub is using is kfreebsd.