How to minimize the number of writes to CF card?

Matthew Seaman matthew at FreeBSD.org
Tue Aug 25 10:13:32 UTC 2015


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=no -- otherwise it will attempt to update some file metadata every
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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 972 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20150825/938df325/attachment.bin>


More information about the freebsd-questions mailing list