Date: Fri, 12 Jun 2020 12:13:31 +0300 From: Yuri Pankov <yuripv@yuripv.dev> To: listac@nebelschwaden.de, freebsd-questions@freebsd.org Subject: Re: Find out OS version and plattform? Message-ID: <ced3874e-f7dc-f15c-e83f-ec576eadeb92@yuripv.dev> In-Reply-To: <16b61b7a-a313-883a-067a-b424b488b2de@nebelschwaden.de> References: <16b61b7a-a313-883a-067a-b424b488b2de@nebelschwaden.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ced3874e-f7dc-f15c-e83f-ec576eadeb92>