mount-tracker
is a simple utility that allows you to track mount changes in real-time.
glib
gcc
To build mount-tracker
, run the following command:
make
This will compile and link the source files and create the mount-tracker
executable.
./mount-tracker -d <device> -t <timeout>
-d
: A mandatory option that specifies the list of devices to monitor. Multiple devices can be passed as arguments.-t
: An optional parameter that configures the timeout in milliseconds used by thepoll
system call.
./mount-tracker -d sda -d sdb
Note: Make sure that the devices passed in -d
are already mounted before running the application.
mount-tracker
is licensed under the MIT License.
For questions, suggestions, or other inquiries, please contact Deva T at [email protected].