ð§ blkcache
Userspace transparent block device cache.
â¬ï¸ Deps
sudo apt install libnbd-bin nbdkit-plugin-python nbdfuse fuse3
â¹ï¸ Usage
uvx blkcache /dev/sr0 file.iso
Then point tools at file.iso instead of /dev/sr0.
Why?
Copying some CDs and needed a way to do mount in FUSE, dump the filesystem, and
then ddrescue /dev/sr0 to get the image if possible. This means it doesnât
read the disk twice, even if you have a ton of drives attached
How?
It uses nbdkit to create a Network Block Storage device in Python, mounts it
using fuse, then creates a mmapped disk cache of sectors as theyâre read.