Building your own FreeBSD USB memstick image

Christer Solskogen christer.solskogen at
Sun Jun 19 07:15:30 UTC 2011

On Sat, Jun 18, 2011 at 3:22 AM, Jeremy Chadwick
<freebsd at> wrote:
> Is the procedure for creating new FreeBSD memstick images documented
> anywhere?

I'm not sure if its documented but this is how I do it:
(edit /etc/make.conf and /etc/src.conf if necessary)
make buildworld && make buildkernel

Insert usb stick
fdisk -BI /dev/da0
bsdlabel -B -w da0s1
newfs -U /dev/da0s1a
mount /dev/ad0s1a /mnt
make installworld installkernel distribution DESTDIR=/mnt

Edit /mnt/etc/fstab
/dev/da0s1a /      ufs       rw                                           1 1

Edit /mnt/etc/rc.conf for your needs
unmount /mnt



More information about the freebsd-stable mailing list