How to create img file installer

Matthew Seaman matthew at FreeBSD.org
Mon Jul 17 08:56:11 UTC 2017


On 2017/07/17 08:44, Willsz.net wrote:

> I'am looking for, how to make img file for USB FreeBSD installer? Like
> FreeBSD-10.3-RELEASE-i386-memstick.img from
> http://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/10.3/ for example. My
> goal is I wanna make FreeBSD img installer file from my FreeBSD server
> (already configure & all data) is't possible? So if my HDD broken, just
> installing from that's img file to new HDD.

All of the tooling used to create FreeBSD releases is held somewhere in
the directory tree below:

https://svnweb.freebsd.org/base/head/release/

This script does the 'checking out sources and building the system' part:

https://svnweb.freebsd.org/base/head/release/release.sh?view=log

and converting that into a memstick image is handled by the top-level
Makefile:

https://svnweb.freebsd.org/base/head/release/Makefile?view=log

which calls the make-memstick.sh script for each of the different
supported architectures.

However, if what you really want to do is just clone your existing
harddrive onto a new one, creating a custom installer is a lot more work
than you really need to do.

Basically if you can mount both old and new disks in your machine at
once, then you can simply copy the content of your old drive onto your
new one.  Methods of copying the content of drives wholesale has been a
popular topic on this list in the past, but I'd start by trying rsync(8).

	Cheers,

	Matthew


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 972 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20170717/fd18972d/attachment.sig>


More information about the freebsd-questions mailing list