Linux SCSI Disk Driver (sd) Parameters

cache_type (RW)

Enable/disable drive write & read cache.

cache_type stringWCERCDWrite cacheRead cache
write through00offon
none01offoff
write back10onon
write back, no read (daft)11onoff

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