From owner-freebsd-stable@freebsd.org Fri Nov 4 14:44:53 2016 Return-Path: Delivered-To: freebsd-stable@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 8E1E5C2FB76 for ; Fri, 4 Nov 2016 14:44:53 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 7F555C49; Fri, 4 Nov 2016 14:44:53 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from FreeBSD.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by freefall.freebsd.org (Postfix) with ESMTP id 3EB0F145B; Fri, 4 Nov 2016 14:44:53 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Date: Fri, 4 Nov 2016 14:44:52 +0000 From: Glen Barber To: Ian Smith Cc: freebsd-stable@freebsd.org Subject: Re: 1MB swap partition on 11.0 memstick Message-ID: <20161104144452.GB79915@FreeBSD.org> References: <20161104183856.U41537@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="V0207lvV8h4k8FAm" Content-Disposition: inline In-Reply-To: <20161104183856.U41537@sola.nimnet.asn.au> X-Operating-System: FreeBSD 11.0-CURRENT amd64 X-SCUD-Definition: Sudden Completely Unexpected Dataloss X-SULE-Definition: Sudden Unexpected Learning Event X-PEKBAC-Definition: Problem Exists, Keyboard Between Admin/Computer X-Spidey-Sense: Uh oh, Peter logged in User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2016 14:44:53 -0000 --V0207lvV8h4k8FAm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 04, 2016 at 06:50:16PM +1100, Ian Smith wrote: > Still wondering .. I have no spare box to install 11.0 on at present but= =20 > want to be sure the memstick mentioned below will be fit for purpose. =20 > I can easily add a 1.0MB swap partition to that, but is it necessary? >=20 > From: > # $FreeBSD: head/release/amd64/make-memstick.sh 293188 2016-01-05 03:20:4= 5Z gjb $ > [..] > mkimg -s gpt -b ${1}/boot/pmbr -p efi:=3D${1}/boot/boot1.efifat \ > -p freebsd-boot:=3D${1}/boot/gptboot -p freebsd-ufs:=3D${2}.part \ > -p freebsd-swap::1M -o ${2} >=20 > =3D=3D=3D reposted: >=20 > Tried in -questions but no takers .. >=20 > root@x200:~ # mdconfig -lv > md0 vnode 700M =20 > /home/smithi/FreeBSD-11.0-RELEASE-amd64-memstick.img > root@x200:~ # gpart show -p md0 > =3D> 3 1433741 md0 GPT (700M) > 3 1600 md0p1 efi (800k) > 1603 125 md0p2 freebsd-boot (62k) > 1728 1429968 md0p3 freebsd-ufs (698M) > 1431696 2048 md0p4 freebsd-swap (1.0M) >=20 > What is the 1.0M swap partition for? Is it needed by bsdinstall? >=20 > I have an MBR-scheme sliced memstick using boot0 with that md0p3 dd'd to= =20 > da0s2a which boots fine, but have only run it as 'Live CD' and have not= =20 > run the installer, but am wondering if a) that swap partition is really= =20 > needed and if so, b) what can usefully be done with 1MB of swap .. >=20 I would need to look through the commit logs to confirm, but if I recall correctly, the memstick images failed to boot properly without the 1MB swap after the freebsd-ufs partition after converting the image build to use mkimg(1). Glen --V0207lvV8h4k8FAm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYHJ7kAAoJEAMUWKVHj+KTWn0QAKGZg7Ugb9f+ySe9B2eaiCZM dibm/ntMHshsQ/I3bRfoLzMzkkHGoMJoefKZqk2zFNeadWDLg9r2rIyuo1o/tKsf 8vjWEdJj0JFBtXMhjo/F1xYkHaRbwaGs+2ccl0s4tyDsQ7JFDdUotCkQmRoZAxJj TrBXhG1G1AxxiYHeJAz3v5rEB59JKoPbhA81CUGV+l2/I/fm9vTTUeent7elr4EX VGT5vn6qyhWgBUcw/5vhXrsSf76JgtMD7epyTxLlbJUVAEVVIw52FslR3xQ70v6D 9hfkPM9uLzSQk+0YfTJ/1wwCQXx25D4fDJS4hovBu317m8VOX5nN0b4bPQ5b4aTT DT8bgcnuAQ5j2Hm3D5WyRV7C7KNw+pp1lQtRl5GSgzMBerai9gyoLBTS087cgppq /6eauJKzHz7tl9u4Zf48qDTJord7Su5WZoJBv/56TW9sdKP8g37QNpfyAlsnmQ7E Mm5e0jAbJYOIknQka7iQGb6EWPB2PprZnSH1G6ZzlMXmWpOX7GPVBUcXCGe9xpnq ujPFBhWex82GASfBm985DH9aTtbYB3/o0ZlV7F+m+PmE83o0PUZ60dUN0La8oxgh 4j2pNTdfbS1KGxjrd/4RKL3o2SmOtPPhFkgQBpzS0ENl/Ap/QHpoTmjJSV0miMqR bqw1Z8x9SyImKSakwOWc =t1Rd -----END PGP SIGNATURE----- --V0207lvV8h4k8FAm--