How to install freebsd on a ufs partition and booting it with a usb memstick (no grub or boot partition needed)

No separate boot partition or grub is needed.

Get the memstick image from :
and write it to a usb stick

Boot the usb stick and drop into a shell
Create and format the ufs partition on the hdd/sdd.
gpart add -t freebsd-ufs -a /dev/...
newfs /dev/...

mount the root partition of the usb stick i rw mode.
mount -u -o rw /

cd /etc

vi resolv.conf
nameserver 8.8.8.8

Verify internet is working
ping 8.8.8.8
ping ww.google.be

Get the txz's from :
pkg install wget
wget https://download.freebsd.org/ftp/releases/amd64/14.3-RELEASE/kernel.txz
wget https://download.freebsd.org/ftp/releases/amd64/14.3-RELEASE/base.txz

Mount the hdd/sdd ufs partition

mkdir ./dest
mount /dev/... ./dest

Copy the txz's:
cp kernel.txz ./dest
cp base.txz ./dest

Untar them,
cd ./dest
tar xvfz ./kernel.txz
tar xvfz ./base.txz

cd ./etc
vi resolv.conf
nameserver 8.8.8.8

The ufs partition has no all it needs
cd /
umount /tmp/dest

Create the fstab file in the /etc directory
vi /etc/fstab
Add a line the mount the hdd/sdd partition on booting from the memstick.
Eg : /dev/ada0p1 / ufs rw 0 0

Where done.
reboot

When you boot from the usb stick the ufs partition on the hard disk drive is mounted and you can start.
ping 8.8.8.8
ping www.google.be
pkg update
pkg upgrade

That's all folks.
 
Last edited:
Back
Top