Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What is the specific purpose of "keeping track" as you define it? Should it cover the whole file system or just one application or just some users? Can't you use a file system integrity checker like Aide or Samhain? If it must be real time: why? Ever used inotify, Auditd or FUSE LoggedFS?
What is the specific purpose of "keeping track" as you define it? Should it cover the whole file system or just one application or just some users? Can't you use a file system integrity checker like Aide or Samhain? If it must be real time: why? Ever used inotify, Auditd or FUSE LoggedFS?
I want to monitor the entire filesystem.
Who handles the data being written to the HDD in Linux ?
Does it go through the Linux Kernel ?
Is there an equivalent to Microsoft Volume Shadow Copy Service for Windows ?
How would you 'keep track of' data being written? By writing to some data file(s)? Then you would have to 'keep track of' that data, and then that would result in more data to keep track of, and so on. And how would you monitor the data? Would you have a reader for all types of data files? Would you or anyone actually inspect that data?
Okay, I'm being cynical. But really, your requirements need to be refined a bit more. What is the objective of keeping track of data being written/modified? Are you concerned about the quantity being stored? The content? The origin? Some per-user or per-group concerns?
You could keep disk usage statistics fairly easily using some basic scripting that runs periodically.
--- rod.
Yes, I know that. You've been repeating that endlessly.
"monitoring the entire filesystem" can be done for many reasons: it can be a hard audit requirement, it can aid troubleshooting or it can be used to say watch application or human user behaviour. (It also is invasive, a performance drain and likely in conflict with Privacy laws.) What I need to know is what you need it for exactly. If you can answer that simple question in detail and without repeating yourself then I'm sure leads or solutions can be offered that suit your case best.
I have two reasons:
1) Create a Backup System (I was thinking of doing something similar to R1SOFTs near CDP though its advertised as CDP. I want to learn that and do it for my college)
2) Monitor which user is editing which file. There are many users who access files especially in a college. Hence I want to be able to monitor it as well.
I have read that I can try to do it by making a modified kernel. Or does r1soft do it in another way ?
You can use rsync to make periodic backups that only backup modified files. The utilities 'ps', 'lsof' and 'w' could probably be combined to create some kind of pseudo-realtime monitoring tool for users file activities. You could call it 'BigBrother'.
--- rod.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.