[root tip] [How To] Disable write cache for USB storage devices

It is.

There has been a lot of topics over time on the subject - just search the forum.

This is meant as a simple - just working - substitution for all the tweaking and fiddling with dirty_bytes and whatnot you will find when searching the forum for the subject.

Example of a solution which likely also works - please read the entire thread - to better understand what happens

SUBSYSTEMS=="usb", SUBSYSTEM=="block", ENV{ID_FS_USAGE}=="filesystem", ENV{UDISKS_MOUNT_OPTIONS_DEFAULTS}+="sync", ENV{UDISKS_MOUNT_OPTIONS_ALLOW}+="sync"

Decrease dirty bytes for more reliable USB transfer - #4 by megavolt

I forgot to create the upstream repo :man_facepalming: