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

Change label after the fact #246

Open
BlackLotus opened this issue Mar 3, 2024 · 1 comment
Open

Change label after the fact #246

BlackLotus opened this issue Mar 3, 2024 · 1 comment

Comments

@BlackLotus
Copy link

I'm not sure if I'm blind or can't read the documentation, but I can't seem to find a way to change the device name/label after the fact. When formatting you can simply specify it with -l, but bcachefs set-option doesn't have -l, /sys/fs/bcachefs/ doesn't seem to have an option for it and the documentation doesn't mention it either (afaict)

@darkskiez
Copy link

It doesn't seem to be in the tooling yet... but.

echo hdd.hdd2 > /sys/fs/bcachefs/$BLKID/dev-$DEVID/label

if you're not sure on these values but know the linux block device name, you can follow the link from the device itself, eg.

echo hdd.hdd2 > /sys/class/block/sda1/bcachefs/label

you can also change discard and durability options in there.

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

2 participants