[clue-tech] Detecting media change
David L. Willson
DLWillson at TheGeek.NU
Thu May 1 11:58:19 MDT 2008
Anyone have a "best" way to detect the successful swap of a USB disc (or new blank
optical media)?
I want my backup program to automatically detect the attachment of new media, validate a
few things, and then blank that media. Hmmm... I was thinking of doing something fancy
like reading the UUID off the filesystem and keeping track of that locally, but I guess
I could do something simpler, like recording a "last-used" bookmark on the currently
attached disc, and deciding what to do with the currently attached media based on
whether that bookmark is present and what it's mod-date is.
Hmmm... Thoughts?
David L. Willson
Trainer/Engineer/Consultant
MCT, MCSE, Linux+
(720) 333-LANS
More information about the clue-tech
mailing list