Created
July 1, 2023 23:42
-
-
Save fellipec/1a79435229d214c5bb6727e95cd40d93 to your computer and use it in GitHub Desktop.
Disable write cache for USB drives in Linux
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
#/etc/udev/rules.d/99-usb-sync.rules | |
# rule to disable write cache for usb storage | |
# requires hdparm to be installed | |
ACTION=="add|change", KERNEL=="sd[a-z]", ENV{ID_USB_TYPE}=="disk", RUN+="/usr/bin/hdparm -W 0 /dev/%k" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Finalmente!!! meses buscando para solucionar la escritura en cache! de los USB que se quedaban eternamente desmontando!