Skip to content

Instantly share code, notes, and snippets.

View dimasb69's full-sized avatar
🏠
Working from home (Proyectos personales y Encargos)

{MomDontGo.Dev} dimasb69

🏠
Working from home (Proyectos personales y Encargos)
View GitHub Profile
@fellipec
fellipec / 99-usb-sync.rules
Created July 1, 2023 23:42
Disable write cache for USB drives in Linux
#/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"