[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian on Read Only root fs: what files are opened rw?



On Mon, Mar 07, 2005 at 03:39:34PM +0000, Chris Boot wrote:
> Hi all,
> 
> I've got a running debian system on an embedded server. It currently 
> runs off a 2.5" HD, but I'd like to move it off that and onto a 
> CompactFlash disk. So that the drive doesn't burn out, I'd like to use 
> SquashFS to store the root FS read-only and link certain parts of the fs 
> to /dev/shm.
> 
> How can I find out what files are opened read/write? Obviously I'll keep 
> /var/log, /var/run, and /tmp on there, but what other portions of the FS 
> are likely to be written to? What changes to the standard startup 
> scripts are necessary to prevent them from remount the root FS read/write?
> 
> I've tried using lsof for this, but I'm not sure I can get an easy list 
> from it, including just files and directories, and only those that are 
> opened rw...
> 
> Many thanks,
> Chris
> 
> PS: I'm trying to use Debian Sarge with a custom-built 2.6.10/2.6.11 
> kernel with grsec and other hardware-specific patches.
> 
Hi Chris,
you may want to google for 'pebble linux', it was designed for running
debian on a cf card for a soekris board.
-Kev



-- 
counter.li.org #238656 -- goto counter.li.org and be counted!

        (__)
        (oo)
  /------\/
 / |    ||
*  /\---/\
   ~~   ~~
...."Have you mooed today?"...



Reply to: