Date: Fri, 12 Jun 2020 11:31:03 +0200 From: Ede Wolf <listac@nebelschwaden.de> To: freebsd-questions@freebsd.org Subject: Re: Find out OS version and plattform? Message-ID: <42230a23-4729-e1e4-5e4e-5a43928b733f@nebelschwaden.de> In-Reply-To: <ced3874e-f7dc-f15c-e83f-ec576eadeb92@yuripv.dev> References: <16b61b7a-a313-883a-067a-b424b488b2de@nebelschwaden.de> <ced3874e-f7dc-f15c-e83f-ec576eadeb92@yuripv.dev>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks, good idea. Unfortunately it does not contain the version here, but at least the plattform. In addidion, I've found a /boot/mbr file and a CPUTYPE=i686 stanza in /mnt/etc/make.conf, so I am sure it is intel #file /mnt/sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), statically linked, stripped @steve: Shame on me, but it has been mounted on a linux system. Upate: By chance /var/log/messages had the relieving entry: FreeBSD 5.4-STABLE #0: Thu Oct 6 22:31:38 CEST 2005 Can be so easy sometimes, if you are lucky. Thanks all! Am 12.06.20 um 11:13 schrieb Yuri Pankov: > 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?42230a23-4729-e1e4-5e4e-5a43928b733f>