Find out OS version and plattform?

Yuri Pankov yuripv at yuripv.dev
Fri Jun 12 09:21:30 UTC 2020


Ede Wolf wrote:
> Hi,
> 
> is there a way to find out which version of FreeBSD was installed - and 
> for what architecture, simply by  mounting the disk?
> 
> 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?
> 
> linux has something like /etc/os-release, which is a textfile, is there 
> an equivalent [method] in FreeBSD?
> 
> grep -ir freebsd /mnt/etc did not reveal anthing, that might give a 
> hint. Or I have overlooked this.
> 
> Plattform would be more important than version, as latter one may at 
> least be guessed by date.

Try e.g. `file /mnt/sbin/init`:

/sbin/init: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), 
statically linked, for FreeBSD 12.1, FreeBSD-style, stripped

That should provide the information you are looking for.


More information about the freebsd-questions mailing list