Get flash drive to cache disk reads to primary partition

Basically I'm looking for a way to mimic Windows' ReadyBoost.

I asked this question on Unix.SE to get an idea of whether this was even possible and it seems like it is. Appparently there is a cachefs filesystem I can use to do this.

  • Flash drive: /dev/sdc1 (fs: vfat)
  • Main partition: /dev/sda5 (fs: ext4)

How can I configure Ubuntu to do this?


Solution 1:

Unfortunately, this is not currently possible. CacheFiles has only been implemented for NFS so far. Another upcoming possibility is CleanCache. Currently CleanCache only has two backends: one for xen tmem, and one for storing cached pages in compressed ram. Hopefully a third backend will be written to store the cached pages on block devices like flash drives.