From owner-freebsd-questions@freebsd.org Tue May 9 08:52:22 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B371CD64C2A for ; Tue, 9 May 2017 08:52:22 +0000 (UTC) (envelope-from mueller6722@twc.com) Received: from dnvrco-oedge-vip.email.rr.com (dnvrco-outbound-snat.email.rr.com [107.14.73.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dnvrco-oedge-vip.email.rr.com", Issuer "dnvrco-oedge-vip.email.rr.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8B8041166 for ; Tue, 9 May 2017 08:52:21 +0000 (UTC) (envelope-from mueller6722@twc.com) Received: from [74.134.208.22] ([74.134.208.22:24561] helo=localhost) by dnvrco-omsmta02 (envelope-from ) (ecelerity 3.6.9.48312 r(Core:3.6.9.0)) with ESMTP id FE/0E-29375-D3381195; Tue, 09 May 2017 08:52:14 +0000 Date: Tue, 09 May 2017 08:50:58 +0000 Message-ID: From: "Thomas Mueller" To: freebsd-questions@freebsd.org Subject: Re: How to identify FreeBSD version on a different partition? References: <55.A0.29375.E7010195@dnvrco-omsmta02> X-RR-Connecting-IP: 107.14.64.7:25 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 May 2017 08:52:22 -0000 > I can get my current booted system with > % strings /boot/kernel/kernel|tail > __page_fault.read > __page_fault.write > amd64 > @(#)FreeBSD 11.0-STABLE #0 r317545: Thu Apr 27 23:54:19 PDT 2017 > FreeBSD 11.0-STABLE #0 r317545: Thu Apr 27 23:54:19 PDT 2017 > jack@upstairs.jack.com:/usr/obj/usr/src/sys/UPSTAIRS > FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on > LLVM 4.0.0) > FreeBSD > 11.0-STABLE > UPSTAIRS Thanks to Jack L., and Matthew Seaman too, that works. It was non-obvious, I wouldn't have thought of it. It works not only from active installation but from any OS installation that can read the FreeBSD partition. I even tried it on a NetBSD kernel, but that did not show the version. Tom