Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd_to_bcache: overdetecting a partition #35

Open
etbuira opened this issue Jan 19, 2017 · 2 comments
Open

cmd_to_bcache: overdetecting a partition #35

etbuira opened this issue Jan 19, 2017 · 2 comments

Comments

@etbuira
Copy link

etbuira commented Jan 19, 2017

My setup:
/dev/sdx1 is EFI boot partition (hence vfat)
/dev/sdx2 is luks holding my filesystems

If i read correct, it will be considered a partition in cmd_to_bcache (around line 1743) instead of luks. Moving code around to detect luks first, then partition, i could get rid of the (rather strange) following symptom.

blocks to-bcache /dev/sdx2

Unsupported superblock type: vfat

(remember, sdx2 is luks, the vfat holder is sdx1)

@mincrmatt12
Copy link

I'm pretty sure this happens because to-bcache shifts the partition to the left a bit, and would usually shrink the partition to the left to allow this. If you were to move sdx2 a couple megabytes to the right (which annoyingly takes hours), this would not occur.

@ohmstance
Copy link

If anybody gets Unsupported superblock type: vfat, shrink the EFI partition a wee bit using fatresize, go through the bcache conversion process, then expand it back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants