sd-parameters.txt 786 B

12345678910111213141516171819202122
  1. Linux SCSI Disk Driver (sd) Parameters
  2. ======================================
  3. cache_type (RW)
  4. ---------------
  5. Enable/disable drive write & read cache.
  6. cache_type string | WCE RCD | Write cache | Read cache
  7. ----------------------------+---------+-------------+------------
  8. write through | 0 0 | off | on
  9. none | 0 1 | off | off
  10. write back | 1 0 | on | on
  11. write back, no read (daft) | 1 1 | on | off
  12. To set cache type to "write back" and save this setting to the drive:
  13. # echo "write back" > cache_type
  14. To modify the caching mode without making the change persistent, prepend
  15. "temporary " to the cache type string. E.g.:
  16. # echo "temporary write back" > cache_type