From owner-freebsd-questions@freebsd.org Mon Jan 30 15:27:03 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 4886CCC7B60 for ; Mon, 30 Jan 2017 15:27:03 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 287E1D9F for ; Mon, 30 Jan 2017 15:27:03 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id v0UFR2t5089301 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 30 Jan 2017 08:27:02 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id v0UFR1ta089298; Mon, 30 Jan 2017 08:27:02 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 30 Jan 2017 08:27:01 -0700 (MST) From: Warren Block To: David Christensen cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 11.0-RELEASE-p7 i386 system drive imaging and migration In-Reply-To: <3f6c8bfb-70a4-74c2-3879-b328ecd3bb38@holgerdanske.com> Message-ID: References: <516b147d-6faa-b9c0-1d8f-2313a0755211@holgerdanske.com> <3f6c8bfb-70a4-74c2-3879-b328ecd3bb38@holgerdanske.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (wonkity.com [127.0.0.1]); Mon, 30 Jan 2017 08:27:02 -0700 (MST) 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: Mon, 30 Jan 2017 15:27:03 -0000 On Sun, 29 Jan 2017, David Christensen wrote: > On 01/29/17 21:18, Warren Block wrote: >> On Sun, 29 Jan 2017, David Christensen wrote: >> >>> On 01/29/17 05:27, Warren Block wrote: >>>> On Sat, 28 Jan 2017, David Christensen wrote: >>>> >>>>> What is the proper way to clone a FreeBSD system image from one drive >>>>> to another? >>>> >>>> On encrypted ZFS? I'm not sure there is a brute-force way that is >>>> trustworthy. Using higher-level commands to recreate the partitions, >>>> GELI encryption, and then zfs send | recv are certain safer and won't >>>> duplicate supposedly unique IDs. >>> >>> STFW >>> >>> https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/backup-basics.html >>> >>> >>> toor@freebsd:/root # gpart show >>> => 63 31277169 ada0 MBR (15G) >>> 63 1 - free - (512B) >>> 64 31277160 1 freebsd [active] (15G) >>> 31277224 8 - free - (4.0K) >>> >>> => 0 31277160 ada0s1 BSD (15G) >>> 0 4194304 1 freebsd-zfs (2.0G) >>> 4194304 4194304 2 freebsd-swap (2.0G) >>> 8388608 22888544 4 freebsd-zfs (11G) >>> 31277152 8 - free - (4.0K) >>> >>> >>> It appears that my FreeBSD image lives within what Microsoft and Linux >>> would call a single MBR primary partition (FreeBSD "slice"?), and that >>> FreeBSD further subdivides that into boot, swap, and root sections >>> (FreeBSD "partitions"?). >> >> Yes. I think the 11.0 installer made the mistaken assumption that >> machines that boot from BIOS must (or should) use MBR/disklabel. > > I manually selected MBR partitioning scheme in the installer, as I have > machines going back to Pentium 4's and I want something that will work on all > of them. GPT will work on them, that is part of the function of the PMBR. >> setenv PAGER less >> man rc.conf >> Type >> /ifconfig_DEFAULT >> and press Enter. > > Yes, I tried that. Interactive use: > > Pattern not found (press RETURN) It is case sensitive. Otherwise, don't know, it is found here. > grep'ing the man page: > > dpchrist@freebsd:/usr/home/dpchrist $ man rc.conf | grep ifconfig_DEFAULT > Sure, there are control characters mixed in with the output. Easier to search in the pager, but this will work: man rc.conf | col -b | grep ifconfig_DEFAULT >>> The Xfce application issues appeared both when: >>> >>> 1. The FreeBSD system drive image was copied to another drive and >>> then booted in the source machine. >>> >>> 2. The FreeBSD system drive was booted in another machine. >>> >>> >>> What is causing the Xfce issues? >> >> No idea. I have moved hard drives from one machine to another, and in >> fact wrote an installer that sets up FreeBSD to be used on a generic >> machine with Xfce. > > Does it work on FreeBSD 11.0 i386? The last time I tried it was with 10.x, I think. It needs work, but has been very low-priority.