Am 24.06.2020 um 18:08 schrieb Marc Roos:
I can remember reading this before. I was hoping you
maybe had some
setup with systemd scripts or maybe udev.
We use udev to disable write cache once a suitable disk is detected,
base on the MODEL_ID from udev environment:
ACTION=="add", SUBSYSTEM=="block", ENV{DEVTYPE}=="disk",
ENV{ID_MODEL}=="WDC_WUH721414ALE6L4", RUN+="/usr/sbin/smartctl -s
wcache,off $kernel"
HTH,
Michael