From owner-freebsd-hackers@freebsd.org Tue Oct 17 04:13:29 2017 Return-Path: Delivered-To: freebsd-hackers@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 98673E2B3E9 for ; Tue, 17 Oct 2017 04:13:29 +0000 (UTC) (envelope-from crb@chrisbowman.com) Received: from mail-pg0-x22e.google.com (mail-pg0-x22e.google.com [IPv6:2607:f8b0:400e:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 70D1781038 for ; Tue, 17 Oct 2017 04:13:29 +0000 (UTC) (envelope-from crb@chrisbowman.com) Received: by mail-pg0-x22e.google.com with SMTP id r25so434733pgn.4 for ; Mon, 16 Oct 2017 21:13:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisbowman-com.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=SpK/LIypdqTGBomEU28QwHf8bzS2FQK2/NVOoWt6x0E=; b=f66rqutCof0/GieTSD0Q3+bHU1DXZAklJsVfUud37t8B9gDb93f5GQph0mol3TBtWZ QXGT994Ra/iY/bHkF8v1CUNJiJZII0qLGsI2Yj7iX1Lh9NrkOYDyNXRus1V83caNcQjy 1M5LMKe7kIIcYYLdDmG5+HhKbk7ay60GB4Oyf4QrNbosylq7WFBTYGXra7D20EMzzxNx ePiPq/rCpodK35+qTOshbfTOWfe7ULIqILkpDzsZcKUx0s1fqkb19EX4IBld0vqxe4C9 QPoB9b+j3+kx9ubHQg/sqI9rZgATiN+RaPjA1f/LH1MuItJVTkYFlGbqyVoVXIhpZowM 00Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=SpK/LIypdqTGBomEU28QwHf8bzS2FQK2/NVOoWt6x0E=; b=GY856hy2PnoGgxmQbKHVy+mkVmqoolBtaNo2Si78sROLu/t+mUZOmV2qgI5KJ/VhI8 2WdunuCk5dmjaXMCOKejjzE64bevnI/E7xWihuTgzCCFaoVuGljOhdRVAWCpPkgu1wf3 S/WtuLA7xK37ry/fie4V8lfv+G8Qw/ZBU0QySeMVoL8u94e/2AlUj1Ldr9aP7ZevEwKI Q7ODYwb3LvLKV4bW/D45PUBFT5B2lzZwclAb5lyEFgbWBIqeoiS8D9b0fZCvTvAB7g3t jYPMwO7QMda7iJs99OGLwBfvBnAeWXICYuwT3DqM+Q/bUL9yVpgUUIMv0XUQmGVehKba PGfQ== X-Gm-Message-State: AMCzsaWdN7Y4jFKiLwm4QMj064CwK6g4ZT72OYl1WLPMmgvb5eo7x7tq 0AMjD2opPVeX1p/Nvson772jx3yko1u0Pw== X-Google-Smtp-Source: AOwi7QDQBbYIm12jVQP6MU7YKoR9bityhcoXdeEFn75eDs613aKeSK1wmnTB+fr2q0A+smigUpryMA== X-Received: by 10.98.83.5 with SMTP id h5mr10683756pfb.131.1508213608272; Mon, 16 Oct 2017 21:13:28 -0700 (PDT) Received: from ?IPv6:2601:647:4e00:bbb5:5d49:e9e8:ddd7:93cf? ([2601:647:4e00:bbb5:5d49:e9e8:ddd7:93cf]) by smtp.gmail.com with ESMTPSA id x11sm14714970pgq.29.2017.10.16.21.13.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Oct 2017 21:13:27 -0700 (PDT) From: Christopher Bowman Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: apart difficulties Message-Id: Date: Mon, 16 Oct 2017 21:13:26 -0700 To: freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Oct 2017 04:13:29 -0000 I have a home server with a fairly large amount of zfs disk space where = I keep all of my persistent data. As a result when new releases of = FreeBSD come out I tend backup the root images of my machines to the zfs = pool and, starting with the least important box, I blow away all the = local partitions and reinstall from scratch. Then I mount the server = zfspool and restore config files and packages. As a result my machines = stay pretty up to date and clean. Lately rather than burning DVDs = I=E2=80=99ve decided that I will create a usb boot disks containing the = entire DVD contents and simply go down the line and and install on one = machine after the other. My machine can now all boot off USB but = don=E2=80=99t all have DVD drives. I have the following script below which I was using to try configure an = MBR bootable memory stick. The commented out lines are a reminder to = myself of how to copy over the ISO contents to the slice I create (I = only do this when there is a new release so I forget.) gpart create -s MBR da0 gpart add -i 1 -t freebsd da0 gpart set -a active -i 1 da0 gpart bootcode -b /boot/mbr da0 gpart create -s BSD -n 8 da0s1 gpart add -t freebsd-ufs -i 1 da0s1 gpart bootcode -p /boot/boot -i 1 da0s1 # newfs da0s1a # mount /dev/da0s1a /mnt/usb # mdconfig -a -t vnode -f = /u1/ISOs/FreeBSD/11.1/FreeBSD-11.1-RELEASE-amd64-dvd1.iso # mount -t cd9660 /dev/md0 /mnt/dvd # cp -pr /mnt/dvd/* /mnt/usb # umount /mnt/usb What I=E2=80=99ve found that=E2=80=99s interesting is that the slice = creation doesn=E2=80=99t seem to be persistent. By that I mean that if = I run the above script (included the commented stuff.) I can clearly = see the /mnt/usb contents are the same as the DVD. If I then unmount = /mnt/usb and remove the stick when I put it back in gpart show doesn=E2=80= =99t seems to show the BSD label, just the MBR slice If I reinsert and do the following: gpart create -s BSD -n 8 da0s1 gpart add -t freebsd-ufs -i 1 da0s1 gpart bootcode -p /boot/boot -i 1 da0s1 fsck /dev/da0s1a mount /dev/da0s1a /mnt/usb Then the file system is there just as before. The slice creation = doesn=E2=80=99t seem persistent. Am I missing something? Is there = something I have to do to commit the slice? Is this a bug? I appreciate your help. Christopher=