Subject: Re: followup to ATA flash newfs problem (WAS: newfs problem: "cg 0: bad magic number")
To: Wojciech Puchar <wojtek@chylonia.3miasto.net>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: tech-kern
Date: 07/11/2002 14:03:56
On Thu, Jul 11, 2002 at 10:49:14PM +0200, Wojciech Puchar wrote:

 > lfs?

It's not clear LFS is necessarily a good fit.

Sure, you could just turn off the cleaner.  But then eventually you
run out of space, and have to do a cleaning cycle.  Which means you've
written the same data twice.

If you're talking about compact flash, which looks like a disk to the OS,
and who's firmware generally does wear-leveling for you already, all you
really need to do is minimize the amount of writes the FS does.  What I
do on things like Soekris machines is enable softdep,noatime,nodevmtime
on the FFS file system, and newfs it with as few cylinder groups as
possible.

(Or, if you are going to partition it anyway, mount things like /usr
read-only.)

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>