From owner-freebsd-questions@freebsd.org Fri Jun 12 09:44:35 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 31A49334EF4 for ; Fri, 12 Jun 2020 09:44:35 +0000 (UTC) (envelope-from listac@nebelschwaden.de) Received: from mail.worldserver.net (mail.worldserver.net [217.13.200.38]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "*.worldserver.net", Issuer "EuropeanSSL Server CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49jwmf215Pz4GC1 for ; Fri, 12 Jun 2020 09:44:33 +0000 (UTC) (envelope-from listac@nebelschwaden.de) Received: from postpony.nebelschwaden.de (v22018114346177759.hotsrv.de [194.55.14.20]) (Authenticated sender: postmaster@nebelschwaden.de) by mail.worldserver.net (Postfix) with ESMTPA id C17612564C for ; Fri, 12 Jun 2020 11:44:32 +0200 (CEST) Received: from [172.16.37.5] (kaperfahrt.nebelschwaden.de [172.16.37.5]) by postpony.nebelschwaden.de (Postfix) with ESMTP id 61D59DA7F0 for ; Fri, 12 Jun 2020 11:44:32 +0200 (CEST) Reply-To: listac@nebelschwaden.de Subject: Re: Find out OS version and plattform? To: freebsd-questions@freebsd.org References: <16b61b7a-a313-883a-067a-b424b488b2de@nebelschwaden.de> <20200612101500.f455a884199613961283ed48@sohara.org> <68061D36-1258-482F-9C10-7888F9DEC9CF@mail.sermon-archive.info> From: Ede Wolf Message-ID: <6652c5a3-d926-f8cc-a441-068f00de30a5@nebelschwaden.de> Date: Fri, 12 Jun 2020 11:44:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <68061D36-1258-482F-9C10-7888F9DEC9CF@mail.sermon-archive.info> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49jwmf215Pz4GC1 X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of listac@nebelschwaden.de has no SPF policy when checking 217.13.200.38) smtp.mailfrom=listac@nebelschwaden.de X-Spamd-Result: default: False [3.96 / 15.00]; HAS_REPLYTO(0.00)[listac@nebelschwaden.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[217.13.200.38:from]; REPLYTO_ADDR_EQ_FROM(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:15657, ipnet:217.13.192.0/20, country:DE]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[217.13.200.38:from]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.49)[0.489]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.93)[0.929]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[nebelschwaden.de]; NEURAL_SPAM_LONG(0.74)[0.740]; SUBJECT_ENDS_QUESTION(1.00)[]; R_SPF_NA(0.00)[no SPF record] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2020 09:44:35 -0000 > Do a more /bin/freebsd-version Just for information, this does not work, freebsd-version seems to be too modern: # find /mnt/ -iname "*freebsd*" /mnt/etc/mail/freebsd.mc /mnt/etc/mail/freebsd.cf /mnt/etc/mail/freebsd.submit.mc /mnt/etc/mail/freebsd.submit.cf Side note, this search does not traverse into /usr, which was a seperate partition (and not mounted here). Same is therefore true for Polytropons ..src/bin/freebsd-version/freebsd-version.sh.in. src/sys/conf/newvers.sh is a bit contradicting to what /var/log/messages is proclaiming: TYPE="FreeBSD" REVISION="6.0" BRANCH="STABLE" if [ "X${BRANCH_OVERRIDE}" != "X" ]; then BRANCH=${BRANCH_OVERRIDE} fi RELEASE="${REVISION}-${BRANCH}" VERSION="${TYPE} ${RELEASE}" So it looks as if the source has been updated, but world not rebuild. Am 12.06.20 um 11:21 schrieb Doug Hardie: >> On 12 June 2020, at 02:15, Steve O'Hara-Smith wrote: >> >> On Fri, 12 Jun 2020 11:03:22 +0200 >> 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? >> >> 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. > > Do a more /bin/freebsd-version > > Right at the end of the initial shell comments is: > > # $FreeBSD: releng/12.1/bin/freebsd-version/freebsd-version.sh.in 325800 2017-11-14 10:15:17Z des $ > set -e > USERLAND_VERSION="12.1-RELEASE-p3" > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >