VirtFoundry Rotating Header Image

Posts Tagged ‘Linux Kernel’

Write a UDEV rule to automatically back up your USB thumb drive when its plugged in

Have you ever wanted to run an external program when your USB thumb drive is plugged in? For example, it could be handy to automatically back up its contents to the local hard drive. This will save your butt in case you do something foolish and delete everything on it. (I’ve done this). So here’s [...]

Patch and Rebuild Redhat Kernel for atop enhanced statistics

I recently saw an example of topas running in a colleague’s putty session, and wondered whether a similar advanced utility existed for Linux. While top is good for the quick and dirty view into Linux goings on, there surely must be a utility that gives a more detailed view into Linux resource usage, like topas does for AIX. So I did some looking around and found atop. In order to get the full benefit of additional per-process statistics from atop, kernel patches are needed that provide the necessary counters. I thought this was a good opportunity to do two things then. Patch a Redhat Enterprise kernel to get full benefit of atop and then recompile the newly patched source into an installable kernel RPM.