About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / scsi / sd-parameters.txt


Based on kernel version 5.6.13. Page generated on 2020-05-15 16:46 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Linux SCSI Disk Driver (sd) Parameters
======================================

cache_type (RW)
---------------
Enable/disable drive write & read cache.

 cache_type string          | WCE RCD | Write cache | Read cache
----------------------------+---------+-------------+------------
 write through              | 0   0   | off         | on
 none                       | 0   1   | off         | off
 write back                 | 1   0   | on          | on
 write back, no read (daft) | 1   1   | on          | off

To set cache type to "write back" and save this setting to the drive:

  # echo "write back" > cache_type

To modify the caching mode without making the change persistent, prepend
"temporary " to the cache type string. E.g.:

  # echo "temporary write back" > cache_type
About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog