Remote installation of FreeBSD: Difference between revisions

From Notes to self
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
: or build it:
: or build it:
<pre>
<pre>
: cd dir
$ cd dir
mkdir DIST
$ mkdir DIST
fetch -o DIST https://download.freebsd.org/releases/amd64/14.2-RELEASE/base.txz
$ fetch -o DIST https://download.freebsd.org/releases/amd64/14.2-RELEASE/base.txz
fetch -o DIST https://download.freebsd.org/releases/amd64/14.2-RELEASE/kernel.txz
$ fetch -o DIST https://download.freebsd.org/releases/amd64/14.2-RELEASE/kernel.txz
git clone --depth 1 https://github.com/mmatuska/mfsbsd
$ git clone --depth 1 https://github.com/mmatuska/mfsbsd
cd mfsbsd
$ cd mfsbsd
as root:
# make BASE=../DIST SE=1 RELEASE=14.2-RELEASE ARCH=amd64
</pre>
</pre>
* <code># dd if=mfsbsd-se-14.1-RELEASE-amd64.img of=/dev/sda bs=1M</code>
* <code># dd if=mfsbsd-se-14.1-RELEASE-amd64.img of=/dev/sda bs=1M</code>
Line 19: Line 21:
* <code>mount /dev/ada0p3 /mnt/dist</code>
* <code>mount /dev/ada0p3 /mnt/dist</code>
* <code>mkdir /usr/freebsd-dist</code>
* <code>mkdir /usr/freebsd-dist</code>
* <code>cp /mnt/dist/14.1-RELEASE/*.txz /usr/freebsd-dist/</code>
* <code>cp /mnt/dist/14.1-RELEASE*/*.txz /usr/freebsd-dist/</code>
* <code>umount /mnt/dist</code>
* <code>umount /mnt/dist</code>
* <code>bsdinstall</code>
* <code>bsdinstall</code>

Revision as of 20:23, 20 December 2024

  • Download the special edition mfsBSD USB memstick image
https://mfsbsd.vx.sk/files/images/14/amd64/mfsbsd-se-14.1-RELEASE-amd64.img
or build it:
$ cd dir
$ mkdir DIST
$ fetch -o DIST https://download.freebsd.org/releases/amd64/14.2-RELEASE/base.txz
$ fetch -o DIST https://download.freebsd.org/releases/amd64/14.2-RELEASE/kernel.txz
$ git clone --depth 1 https://github.com/mmatuska/mfsbsd
$ cd mfsbsd
as root:
# make BASE=../DIST SE=1 RELEASE=14.2-RELEASE ARCH=amd64
  • # dd if=mfsbsd-se-14.1-RELEASE-amd64.img of=/dev/sda bs=1M
where /dev/sda is the boot drive.
On FreeBSD before running this command GEOM safety features should be disabled:
# sysctl kern.geom.debugflags=16
  • Reboot
  • Login as root, password: mfsroot
  • mkdir /mnt/dist
  • mount /dev/ada0p3 /mnt/dist
  • mkdir /usr/freebsd-dist
  • cp /mnt/dist/14.1-RELEASE*/*.txz /usr/freebsd-dist/
  • umount /mnt/dist
  • bsdinstall