From owner-freebsd-questions@freebsd.org Tue Aug 25 10:13:32 2015 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 C14B899AAF0 for ; Tue, 25 Aug 2015 10:13:32 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F11762A for ; Tue, 25 Aug 2015 10:13:32 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from zero-gravitas.local (no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.2/8.15.2) with ESMTPSA id t7PADO99023869 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Tue, 25 Aug 2015 11:13:24 +0100 (BST) (envelope-from matthew@FreeBSD.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.10.3 smtp.infracaninophile.co.uk t7PADO99023869 Authentication-Results: smtp.infracaninophile.co.uk/t7PADO99023869; dkim=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged) claimed to be zero-gravitas.local Subject: Re: How to minimize the number of writes to CF card? To: freebsd-questions@freebsd.org References: <1440496718919-6034932.post@n5.nabble.com> From: Matthew Seaman X-Enigmail-Draft-Status: N1110 Message-ID: <55DC3FBD.8080102@FreeBSD.org> Date: Tue, 25 Aug 2015 11:13:17 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1440496718919-6034932.post@n5.nabble.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="85pBDQNX6vLta32EJtK3Fa2AfwnN7U2aJ" X-Virus-Scanned: clamav-milter 0.98.7 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2015 10:13:32 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --85pBDQNX6vLta32EJtK3Fa2AfwnN7U2aJ Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2015/08/25 10:58, zhup wrote: > I am going to install Freebsd on CF card and my question is: > how to minimize the number of writes to CF card? Mount it read-only? Less facetiously, make sure you mount any partitions or ZFSes on it with atime=3Dno -- otherwise it will attempt to update some file metadata ever= y time you /read/ a file. Other than that, writing to the filesystem on your compact flash card should only happen when you intentionally write to a file. This includes using various applications that do things creating a temporary save of a work in progress every few minutes so that you don't lose all your work in the event of a crash. Mind you, a good flash drive nowadays should have a lifetime at least comparable to and in some cases better than a spinning hard drive. Cheers, Matthew --85pBDQNX6vLta32EJtK3Fa2AfwnN7U2aJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQJ8BAEBCgBmBQJV3D/EXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnmbIP/jGauC+dQ3sUo9mVmEa4l8Kf 0tdnnOT+zk5Sv1VHNuDK+LdNYixaYpYvfRRl+sTlDq1gAh/TuhQ+2YD9YS0sC9cR MuK0SYFPJC/Aj3BHDAHgG/1pyy+Ua9qlpGTQFVRf/D/nY+dmQIitDizVkQzFYovl qTQRQ2YBn1QuzCsRWuO/lvuEF7tVcbrIF9F17RwXYij9Jt2NuPJ3Rns6HpNRi99p dyYVuXlIlYjt0iUyeZBkPdKXi1Wt0ugzrU129n6AMdqFKY0OFBtWgKSIyj8iKk3d gyHgGYxV0FYruAXJq7Udm3PgOMHunc/rn2Ged39zX8MOS1hIYLns/5wFoC9DJrs3 +sGNcczwjVBbfU3hj7WjbQr611IgnoVPIEuKGTTiyS95Gx7LRv86f3flltTC9nSo ULeuCXe5SKkjzK+ljZS/MsE3GympgtGoTx4Cd+azaZFLUYwYHjGJzZh9BQIANsNV QdnLBQCRh4PJ6I3ebLT6Lmq8IXaDHv9Igxt4guAdJLGTDNBJ72uXbmR8fm5gJBg4 ymFoSd9a9fan8ef2+KR7qpNKHuTi3JO//LO7ZQEm2pEAzc6czG8cd2R0kMfHw06S tIBzEbmFwuIJbBzeyMm6TKfXrnLssNmjNaL7jmkl2xf7nnYtj6WRZeg6fyvNYLJq mfECCfFYMk+JiFbKdBQB =u45a -----END PGP SIGNATURE----- --85pBDQNX6vLta32EJtK3Fa2AfwnN7U2aJ--