moving FreeBSD installation disk1 to an USB stick

Ed Schouten ed at
Thu Jun 19 09:14:33 UTC 2008

Hello Matthias,

* Matthias Apitz <guru at> wrote:
> Hello,
> I'm preparing the installation of FreeBSD 7.0 on an Asus eeePC which has
> no CD/DVD drive for the installation (and I have no external CD driver
> with USB):
> My idea is to 'copy' somehow the FreeBSD 7.0 installation disk1 to an
> USB stick of 1 GByte; there is some kind of recipe how to put a boot-able
> system onto such an USB stick, like;
> but this is not what I want; I want to boot the stick (of course) and
> run the 'sysinstall' having the complete disk1 on the stick;
> maybe it is an option making only the file system on the stick and the
> boot sector and fill in a dump of the file system of disk1, with some
> minor changes that after booting it uses the USB as CD device?
> any other ideas?

You could consider installing FreeBSD by hand. Just make sure you
get a bootable FreeBSD system on that USB stick and do this:

	bsdlabel -w -B /dev/ad0 # assuming ad0 is the eeepc flash
	# just do bsdlabel -e /dev/ad0 if you want to add multiple slices
	for i in a d e f g ... # any partitions you have
		newfs -U -O 2 /dev/ad0$i
	# mount all your partitions in /new
	mkdir /new
	mount /dev/ad0a /new
	mkdir /new/var
	mount /dev/ad0d /var

	# make sure you have the `base' and `kernels' directories on
	# your USB stick and do this:
	cd /X.Y-RELEASE/base
	DESTDIR=/new sh
	cd ../kernels
	DESTDIR=/new sh generic
	mv /boot/GENERIC/* /boot/kernel/

	# create a /etc/fstab file
	vi /etc/fstab

Good luck!

 Ed Schouten <ed at>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url :

More information about the freebsd-hackers mailing list