Find out OS version and plattform?
steve at sohara.org
Fri Jun 12 09:15:10 UTC 2020
On Fri, 12 Jun 2020 11:03:22 +0200
Ede Wolf <listac at nebelschwaden.de> wrote:
> is there a way to find out which version of FreeBSD was installed - and
> for what architecture, simply by mounting the disk?
If you mount it on FreeBSD then you can do something like this
(taken from man freebsd-version).
mount -rt ufs /dev/ada0p2 /mnt
env ROOT=/mnt /mnt/bin/freebsd-version -ku
You could inspect the sources of freebsd-version to find out how
this is done.
> I am not talking about uname, where you have to be inside the os, but if
> you simply mount the root partition to another computer, where to look
> for these information?
The kernel version is pulled from the kernel, I'm not sure where
the userland version is stored.
Steve O'Hara-Smith <steve at sohara.org>
More information about the freebsd-questions