Skip to content

Instantly share code, notes, and snippets.

@DavesCodeMusings
Last active January 6, 2026 23:51
Show Gist options
  • Select an option

  • Save DavesCodeMusings/52f5001b408fbd3361a75db0e07bfa17 to your computer and use it in GitHub Desktop.

Select an option

Save DavesCodeMusings/52f5001b408fbd3361a75db0e07bfa17 to your computer and use it in GitHub Desktop.
; Prevent recreation of System Volume Information by blocking it with an empty file of the same name.
; Does System Volume Information store presonally identifiable information? I don't know.
; Do I want Windoze automagically creating stuff on my Raspberry Pi microSD? No, I don't.
; Must be run with admin privs
dir /a
cd REMOVEABLE_DRIVE_LETTER (e.g. D:)
rmdir /s "System Volume Information" & copy NUL "System Volume Information"
attrib +h "System Volume Information"
dir
; The name is still there, but it's a file, not a directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment