Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't use bcachefs with internal encryption
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
nilreM
n00b
n00b


Joined: 22 Nov 2007
Posts: 22
Location: Voronezh

PostPosted: Wed Oct 09, 2024 12:27 pm    Post subject: Can't use bcachefs with internal encryption Reply with quote

I want to change my very custom structure with dm-crypt, bcache and LVM into bcachefs-based, much simpler (from the operational structure). I plan to go into that all the way when the LTS kernel appears that has bcachefs merged, but for now I just have unmasked 6.11.2.

It works, but I can't use encryption. I created a filesystem with encryption supported but no master key, and want to change a passphrase, but I see `scrypt error: -1`:[/code]

Code:

# bcachefs set-passphrase /dev/merlin_laptop/bcfs
Enter new passphrase:
Enter same passphrase again:
scrypt error: -1


What does that mean? Have I just not merged something? Have I missed something in the kernel? How to fix?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4940
Location: Bavaria

PostPosted: Wed Oct 09, 2024 12:43 pm    Post subject: Reply with quote

Do you have emerged sys-fs/bcachefs-tools ?
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
nilreM
n00b
n00b


Joined: 22 Nov 2007
Posts: 22
Location: Voronezh

PostPosted: Wed Oct 09, 2024 1:29 pm    Post subject: Reply with quote

Yes, I have shown that I am using the program "bcachefs" which is provided by that package. It is what throws the scrypt error.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4940
Location: Bavaria

PostPosted: Wed Oct 09, 2024 2:30 pm    Post subject: Reply with quote

yes ... sorry ... :oops: ... sometimes I get confused :(

First of all: I haven't ‘played’ with bcachefs for a while, so it might be outdated.

I had a problem back then that I had to solve with ‘keyctl link @u @s’. Have a look there: https://wiki.gentoo.org/wiki/User:Pietinger/temp/test
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum