Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jun 2011 08:43:50 +0200
From:      Christer Solskogen <christer.solskogen@gmail.com>
To:        Jeremy Chadwick <freebsd@jdc.parodius.com>
Cc:        freebsd-stable@freebsd.org, nwhitehorn@freebsd.org, kensmith@freebsd.org, mm@freebsd.org
Subject:   Re: Building your own FreeBSD USB memstick image
Message-ID:  <BANLkTi=e6RVc1m=YtVpKWju4UNNhKmH7ew@mail.gmail.com>
In-Reply-To: <20110618012257.GA84652@icarus.home.lan>
References:  <20110618012257.GA84652@icarus.home.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 18, 2011 at 3:22 AM, Jeremy Chadwick
<freebsd@jdc.parodius.com> 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

:-)

-- 
chs,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTi=e6RVc1m=YtVpKWju4UNNhKmH7ew>