FreeBSD UEFI MultiBoot

DTD doug at safeport.com
Tue Jul 18 19:25:57 UTC 2017


Apparently as of 10.3 this works. Two links:
   http://ximalas.info/2015/03/19/uefi-gpt-windows-10-freebsd-10-and-refind/
   https://www.robertcina.com

The one I am leaning toward is the first that just uses gpart. His setup:

    gpart delete -i 5 ada0
    gpart delete -i 6 ada0
    gpart delete -i 7 ada0
    gpart add -a 4K -l root0 -s 30G -t freebsd-ufs  ada0
    gpart add -a 4K -l swap0        -t freebsd-swap ada0
    newfs /dev/gpt/root0
    mount /dev/gpt/root0 /mnt
    cd /mnt
    tar xvvf /usr/freebsd-dist/base.txz
    tar xvvf /usr/freebsd-dist/kernel.txz
    tar xvvf /usr/freebsd-dist/lib32.txz
    # create and/or edit all relevant files in /mnt/boot and /mnt/etc
    cd /
    umount /mnt
    reboot

Both use rEFInd and EasyUEFI. The Robert Cina method leaves an extra UFI 
partition. Both put the swap as a partition external to the FreeBSD 
partition. What are the pros and cons with this?

My preference would be to use gpart to get the partitions right and then run 
the regular install. This, it seems to me takes care of the steps after the 
tar. I guess after all this time I know or can figure out "all relevant 
files", but I rather like IBM's "computers should work so people can think".

Thanks for any corrections, additions and/or thoughts. My disk setup is on an 
ideapad 900.

DISKPART> list volume

   Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
   ----------  ---  -----------  -----  ----------  -------  ---------  --------
   Volume 0     E                       DVD-ROM         0 B  No Media
   Volume 1     C   Windows      NTFS   Partition    446 GB  Healthy    Boot
   Volume 2     D   LENOVO       NTFS   Partition     25 GB  Healthy
   Volume 3         SYSTEM_DRV   FAT32  Partition    260 MB  Healthy    System
   Volume 4         WINRE_DRV    NTFS   Partition   1000 MB  Healthy    Hidden
   Volume 5         LENOVO_PART  NTFS   Partition     14 GB  Healthy    Hidden

In addition there is a 430GB partition made by shrinking C to the max. My plan 
is to add swap and then the FreeBSD UFI boot code to volume 3, reboot and do the 
install in the reuglar way, and then use rEFInd and EasyUEFI following the links 
above.

_____
Douglas Denault
http://www.safeport.com
doug at safeport.com
Voice: 301-217-9220
   Fax: 301-217-9277


More information about the freebsd-questions mailing list