
Quick Links:
Empeg FAQ
|
RioCar.Org
|
Hijack
|
BigDisk Builder
|
jEmplode
|
emphatic
Repairs: Repairs
|
#298394 - 14/05/2007 21:43
Re: Running linux off a CF card
[Re: mlord]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14506
Loc: Canada
|
Quote:
Quote: Some good points there, will give them a try.
I'd still like to put some things in a ramdisk, suggestions anyone? Was hoping Mark might have some ideas.
Sure. Remount the root filesystem as read-only, and then wait for programs to complain. Whatever they're writing belongs on a tmpfs (or f/s on top of a ramdisk, for the old-fashioned).
Actually, what I would really do is just add a little bit of code in the kernel to the sys_open() handler, and have it log the process id/name each time that a program opens a file for RDWR/WRONLY access. Then go after the offenders it identifies and ensure those files end up in RAM.
Once all of that is working, just have the root filesystem always mounted R/O by default.
Cheers
|
Top
|
|
|
|
|
|
|