Find out OS version and plattform?
Ede Wolf
listac at nebelschwaden.de
Fri Jun 12 09:31:09 UTC 2020
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.
More information about the freebsd-questions
mailing list