1 .. SPDX-License-Identifier: GPL-2.0
3 ======================================
4 Linux SCSI Disk Driver (sd) Parameters
5 ======================================
9 Enable/disable drive write & read cache.
11 =========================== === === =========== ==========
12 cache_type string WCE RCD Write cache Read cache
13 =========================== === === =========== ==========
14 write through 0 0 off on
17 write back, no read (daft) 1 1 on off
18 =========================== === === =========== ==========
20 To set cache type to "write back" and save this setting to the drive::
22 # echo "write back" > cache_type
24 To modify the caching mode without making the change persistent, prepend
25 "temporary " to the cache type string. E.g.::
27 # echo "temporary write back" > cache_type