FG

Hook into linux mount/umount event

Fresh3 days ago
Mar 15, 20267753 views
Confidence Score0%
0%

Problem

is there a way to provide post-mount and pre-umount scripts in Linux? I am trying to do some scripts on storage media when mounted and before umounting (eg, for synching). Any help appreciated.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Hook into linux mount/umount event

Low Risk

If you are trying to do this for people invoking the and command, all you'd have to do is make a wrapper program for both and program what you want into these wrapper programs. A wrapper program being replace the with the wrapper program that calls …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment