From owner-freebsd-questions@freebsd.org Fri Jun 12 09:21:30 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 70D723345B5 for ; Fri, 12 Jun 2020 09:21:30 +0000 (UTC) (envelope-from yuripv@yuripv.dev) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49jwG14dHXz4Cyp for ; Fri, 12 Jun 2020 09:21:29 +0000 (UTC) (envelope-from yuripv@yuripv.dev) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 863135C0116; Fri, 12 Jun 2020 05:13:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 12 Jun 2020 05:13:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yuripv.dev; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=r 1lazG+Eqx0zZfzPQ6g04YD8dCK/6lvKHGiHbztHsAk=; b=hPKnW/6eIOoGznbfM +Gm5L450bFOlGUky4DPHXcR/CYQJGBHL0sPny/pwE3wHitUr207FczBbcdAnSrqZ 6DiZhLINRJJDFc7RIotKeiuFzOxKaWm9BsGremlKpQauxoHm2V6gsd3YRKe21Xb+ mxD6fHXm2XcOVLHJ7NbVEgqLXkqzaaO0UqnUgrT+3ZTZae2kZk5xW60q4B/qYewL PIWVUMNsFZ+wax1fdYYHbW8Ja5t9iMequz2LIATI0Xjn4YgQoQKU3/9OxUL4YX6r kKVxhscGEFbGuyqxZTZ4b9J+9YocAFfIYnRs2Tdiz2foFW6PdfasV/0qs/EdDUzq Ys4zQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=r1lazG+Eqx0zZfzPQ6g04YD8dCK/6lvKHGiHbztHs Ak=; b=d19F8sq6hQwGf8AgiqyfjC8cYBpHjIBM2+4N81cIIMyto2U0QJ8akHKZ8 fpro57VTCKsjFctIMkpVi8fe77htvvsyt2FKnErRVrylrIcFx7wImsQ/6+4CUBq3 BSiazev9omcid72NWpemH/w1Xr1PH0Kf8ezFn2lV99NrpNIr71RHQIvoHUKDT2Va o5MxdMIsmhwZdknB7vJ0uxXPATeceYom3BeQ6BLLT8vuQLT1JANKRmo2+sAgVgiy 7/DdUinCCwkdUTGSayJXniZMyirH2lfh6kcX5y+V7Yxi28xlwzU3sJ+/w4zMHVJ9 2juCD5TOQTSUJ+tbTVR4VAz2EqlkQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeiuddgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpegjuhhrihcurfgrnhhkohhvuceohihurhhiphhvseihuhhr ihhpvhdruggvvheqnecuggftrfgrthhtvghrnhepudeuffegtdehffdtffefkefhgfelie eitefghfeugeelfeduffegtdeufeekgfdvnecukfhppeeluddrvdegtddruddvgedrudef jeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeihuh hrihhpvheshihurhhiphhvrdguvghv X-ME-Proxy: Received: from [192.168.1.6] (unknown [91.240.124.137]) by mail.messagingengine.com (Postfix) with ESMTPA id 9334B328005D; Fri, 12 Jun 2020 05:13:31 -0400 (EDT) Subject: Re: Find out OS version and plattform? To: listac@nebelschwaden.de, freebsd-questions@freebsd.org References: <16b61b7a-a313-883a-067a-b424b488b2de@nebelschwaden.de> From: Yuri Pankov Message-ID: Date: Fri, 12 Jun 2020 12:13:31 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <16b61b7a-a313-883a-067a-b424b488b2de@nebelschwaden.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 49jwG14dHXz4Cyp X-Spamd-Bar: ++++++++++++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yuripv.dev header.s=fm1 header.b=hPKnW/6e; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=d19F8sq6; dmarc=none; spf=pass (mx1.freebsd.org: domain of yuripv@yuripv.dev designates 66.111.4.25 as permitted sender) smtp.mailfrom=yuripv@yuripv.dev X-Spamd-Result: default: False [12.12 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; SEM_URIBL_FRESH15(3.00)[yuripv.dev:dkim]; R_SPF_ALLOW(0.00)[+ip4:66.111.4.25:c]; RWL_MAILSPIKE_GOOD(0.00)[66.111.4.25:from]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[yuripv.dev:+,messagingengine.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.64)[-0.636]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.25:from]; ARC_NA(0.00)[]; RECEIVED_SPAMHAUS_XBL(5.00)[91.240.124.137:received]; R_DKIM_ALLOW(0.00)[yuripv.dev:s=fm1,messagingengine.com:s=fm3]; RECEIVED_SPAMHAUS_CSS(4.00)[91.240.124.137:received]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.78)[-0.780]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[yuripv.dev]; NEURAL_SPAM_MEDIUM(0.64)[0.641]; BAD_REP_POLICIES(0.10)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; GREYLIST(0.00)[pass,body] X-Spam: Yes 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:21:30 -0000 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.