Created
June 11, 2023 19:10
-
-
Save Chuckame/7a9dfd7b18f9142bd90ed25717d4f4c3 to your computer and use it in GitHub Desktop.
Linux command to prevent writes to an unmounted drive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chattr +i /mountpoint # will prevent writes for /mountpoint, but not prevent mounting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment