Does anyone know of a method I can use to programmatically detect if a SATA hard drive has been unplugged? Our file system is mounted in READ-ONLY mode when we need to detect the removal of the drive. We noticed the other day that we were able to unplug a hard drive and everything continued to run without a hitch until the next time we attempted to read from a file on disk.
Determine the contents of Linux Cache
Scaling a ruby script by launching multiple processes instead of using threads
dmesgis a bad idea for several reasons, not the least of which it being inefficient and dependent on the format that the
printkin the kernel happens to use..
What is linux equivalent of running a .bat file on windows from PHP using system()
On modern Linux systems, hardware changes are usually handled through udev which, in turn, will propagate change events up through D-BUS.
Newbie: Render RGB to GTK widget — howto?
Is there any way to get the combine two xml into one xml in Linux
You may want to search how the insert and removal of memory sticks is handled; the methods should be fairly similar..
How do I know which illegal address the program access when a segmentation fault happens
Constructing a function call in C