NOTE: Deleted my previous posts #5, #7, #8 to improve and to consolidate in one post.
Steps to create a Live system from a official installer
*-memstick.img image on USB:
Option 1: The easy and fast way:
Take two USB sticks, install from the FreeBSD installer USB stick on the target USB stick, add packages to the system.
Option 2: In case there is no second USB stick at hand:
1 - Increase the size of FreeBSD's file system partition on the installer USB to allow the installation of addition files. Assuming the USB sticks capacity is larger than the
*-memstick.img copied over, boot into single user mode, execute:
Code:
# gpart resize -i 2 da0
# gpart resize -i 1 da0s2
# service growfs onestart
Eventually adapt
da0.
2 - Mount file system read/write
3 - To set the systems file system from read only to read/write edit the mount option in
/etc/fstab
Code:
/dev/ufs/FreeBSD_Install / ufs rw,noatime 1 1
4 - Continue boot into multi user mode
5 - At the FreeBSD Installer "Welcome" dialog drop to "Shell"
6 - Configure a DNS name server
Code:
# echo "nameserver 8.8.8.8" > /tmp/bsdinstall_etc/resolv.conf
7 - Acquire IP address
(replace em0 with what interface name the network card was assigned to)
7 - Bootstrap
ports-mgmt/pkg
8 - Install
sysutils/fusefs-ntfs
Code:
# pkg install sysutils/fusefs-ntfs
9 - Optional install additional packages
10 - Optional disable FreeBSD installer dialog
Code:
# mv /etc/rc.local /etc/rc.local.0
11 - Edit
/etc/rc.conf
Code:
hostname=LiveSystem.stick
ifconfig_DEFAULT="DHCP"
keymap="uk"
kld_list="fusefs"
Add additional needed kernel modules or services, i.e. sshd, zfs, change keymap, etc.
12 - Optional change file system back to read only in
/etc/fstab
Live system ready. Login name is "root" if
/etc/rc.local is disabled, no password. Optional set "root" password, add users.
Option 3+: One of the other suggested methods in the thread.