Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Aug 2015 11:13:17 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: How to minimize the number of writes to CF card?
Message-ID:  <55DC3FBD.8080102@FreeBSD.org>
In-Reply-To: <1440496718919-6034932.post@n5.nabble.com>
References:  <1440496718919-6034932.post@n5.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55DC3FBD.8080102>