28 lines · plain
1.. SPDX-License-Identifier: GPL-2.02 3======================================4Linux SCSI Disk Driver (sd) Parameters5======================================6 7cache_type (RW)8---------------9Enable/disable drive write & read cache.10 11=========================== === === =========== ==========12 cache_type string WCE RCD Write cache Read cache13=========================== === === =========== ==========14 write through 0 0 off on15 none 0 1 off off16 write back 1 0 on on17 write back, no read (daft) 1 1 on off18=========================== === === =========== ==========19 20To set cache type to "write back" and save this setting to the drive::21 22 # echo "write back" > cache_type23 24To modify the caching mode without making the change persistent, prepend25"temporary " to the cache type string. E.g.::26 27 # echo "temporary write back" > cache_type28