From owner-freebsd-questions@freebsd.org Tue Aug 25 16:02:38 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 9499799E23F for ; Tue, 25 Aug 2015 16:02:38 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-qg0-f44.google.com (mail-qg0-f44.google.com [209.85.192.44]) (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 5A7A9695 for ; Tue, 25 Aug 2015 16:02:38 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: by qgeg42 with SMTP id g42so109509170qge.1 for ; Tue, 25 Aug 2015 09:02:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=ToyvjJGHrpPWNlri9dGi473DW2WEL16fJnEEHaq8Z34=; b=giJYlryR38g/LxnKgkBTyRYNq8FSc117CjpUzjsrXTvm9lXCakQ9+wGh7MHwPsp04A BAoT573Rw51aIUcfZdqtXL01SIORM3byYVFxZYBh/qQ9UXEq/24P8OlSgDw5DxLckKCz 4qiRtICue6HWPdHJG5N9P/BOeEp0Ayquxdojb0dW1DagFxAGA5Xyo9IiZJm2k7GrkUTv pheJF28EPvxvQWGqv50QtgqWsNop8synOBfFMmcD5+jbqztdBxQNzFD3PsxJWeXOv4fU hbrll2tAydVofv6FpSsrqLXT4f08JIKh63p3O65Spxu51djcxgLCGi+JY3CVJTUNG3K2 UYpA== X-Gm-Message-State: ALoCoQmTESVtcUz/LB8vBuUWvliLLCdL0kRa/q/+Quv2V8q9is/FH/pOHrQHFkjDh+coWfDVDOW7 MIME-Version: 1.0 X-Received: by 10.140.165.198 with SMTP id l189mr66140388qhl.85.1440518555853; Tue, 25 Aug 2015 09:02:35 -0700 (PDT) Received: by 10.140.41.230 with HTTP; Tue, 25 Aug 2015 09:02:35 -0700 (PDT) In-Reply-To: <55DC3FBD.8080102@FreeBSD.org> References: <1440496718919-6034932.post@n5.nabble.com> <55DC3FBD.8080102@FreeBSD.org> Date: Tue, 25 Aug 2015 09:02:35 -0700 Message-ID: Subject: Re: How to minimize the number of writes to CF card? From: Michael Sierchio To: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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 16:02:38 -0000 On Tue, Aug 25, 2015 at 3:13 AM, Matthew Seaman wrote: > 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? > I could have offered that advice without being facetious, Matthew. ;-) If you have adequate RAM and can mount a mfs for /var, symlink /tmp->/var/tmp, that works. I have some rc scripts that periodically mount a partition r/w and save the state of things in /var that I want to persist. And if you can't mount it read-only, mount it rw,noatime. Updating access time causes many, many writes. - M