Is it possible to install from a running system?

Would it work If I do the installation manually like creating BSD disklabel/UFS partitions, doing tar -xf base.txz kernel.txz onto new root, running grub-mkconfig and then running bsdconfig once I boot into the new OS?
 
Yes, you can install FreeBSD manually. It will work if you will done the process correctly.
Also you can copy your running system to another HDD.

Assuming MBR and UFS you should do something like this:
fdisk -vBI /dev/newhdd1
bsdlabel -wB /dev/newhdd1s1
Edit (save, edit, restore) a created bsdlabel if you need it.
Run newfs for every data partition (enable softupdates and journalling if you need it)
Extract the kernel, base to new boot partition (or copy existing system to new disk).
Mount new / partition somewhere, edit fstab, rc.conf and some other if you need it.
You can run newly installed system as a jail inside the main system. Using a jail you can install some software or prepare the new system for future use.
 
Yes, you can install FreeBSD manually. It will work if you will done the process correctly.
Also you can copy your running system to another HDD.

Assuming MBR and UFS you should do something like this:
fdisk -vBI /dev/newhdd1
bsdlabel -wB /dev/newhdd1s1
Edit (save, edit, restore) a created bsdlabel if you need it.
Run newfs for every data partition (enable softupdates and journalling if you need it)
Extract the kernel, base to new boot partition (or copy existing system to new disk).
Mount new / partition somewhere, edit fstab, rc.conf and some other if you need it.
You can run newly installed system as a jail inside the main system. Using a jail you can install some software or prepare the new system for future use.
I created a nested BSD disklabel under DOS. Which partition type I have to select here?

screen.png
 
Boot the FreeBSD install media. Pick a 'custom' install and do the partitioning with the shell from the install media. Use gpart(8) to create the slices and partitions you need.
 
I created a nested BSD disklabel under DOS. Which partition type I have to select here?
4.2BSD looks as a correct choice.
I liked DOS but creating FreeBSD partitions and slices under DOS in 2022 may result a lot of previously unknown issues. Please use the native FreeBSD tools to avoid the surprices.
 
Not what the title says it but here's how I did:
Code:
dd if=(freebsd image) of=(dev/sdX) (a temporary partition to write the ISO file)
Code:
set root=(hd0,msdosX)
kfreebsd /boot/loader

After installation (root on 3rd slice):
Code:
set root=(hd0,msdos3)
kfreebsd /boot/loader
 
Back
Top