Skip to contentSkip to conversation

Restoring/Disabling bcache

DISCUSSION Greg Michalec 1 participant 1 message Apr 5, 2014 bcache (block layer cache)

lore
Share & tools
lore
#0 lore raw

Hi -
Apologies in advance for asking a noob question, but I couldn't find this information anywhere.

0 down vote favorite

I have a 20 gb SSD device on my laptop that i decided to try bcache on. I followed the instructions to convert my /home (ext4) to use bacache, and it worked fine. It seemed to work, but for some time now, I've been getting an error on boot:

error on 0f3bbb55-6839-4ed6-8127-7976a969f726: corrupted btree at bucket 17571, block 483, 61 keys, disabling caching

I figure I could try and repair this, but I've decided I'm probably better off just disabling bcache - I don't know enough about this to risk losing data/hair if something breaks, and I think I'd be better off using the partition as root/swap.

My question is, is there a way to safely stop using bcache without reformatting the backing device? Is it as simple as restoring the ext4 superblock and unregistering the device? (Note, the filesystem on /home seems to be fine - i think it's just disabling the caching)

I am using /dev/sda7 as my backing device, and /dev/sdb2 as the caching device (/dev/sdb1 is root).

If it matters, I'm running Ubuntu 14.04 with kernel 3.13.0-21-generic. Here's a link to this question on stackoverflow, if you'd like to answer there for posterity - otherwise I'll post what ever info you respond with.
http://stackoverflow.com/questions/22820492/how-to-disable-bcache-on-device

Thank you!

--greg michalec