bcache 是否需要全新安装?

use*_*561 2 ssd bcache

因为我的笔记本有一个 SSD 和一个 HDD,我想使用 SSD 作为缓存,就像 Windows 中的快速存储一样。我发现 bcache 提供了这个功能,所以我决定尝试一下。

我通过 git 获得了 bcache 和 bcache-tools,然后按照以下指南进行操作:

http://evilpiepirate.org/git/linux-bcache.git/tree/Documentation/bcache.txt

Getting started:
You'll need make-bcache from the bcache-tools repository. Both the cache device
and backing device must be formatted before use.
  make-bcache -B /dev/sdb
  make-bcache -C -w2k -b1M -j64 /dev/sdc
Run Code Online (Sandbox Code Playgroud)

这是否意味着我必须格式化整个硬盘才能启用 bcache?

Gab*_*iel 8

无需全新安装。请参阅块自述文件和bcache 常见问题解答。要在您的根文件系统上启用 bcache,您需要将根设备转换为blocks,无论您是否进行了全新安装。

ObDisclaimer:我编写了转换工具。