koverstreet / bcachefs

Other
671 stars 70 forks source link

No bcachefs format of /dev/sdb1 and/or no mount possible on Linux Mint 21. #500

Open Nihon-Ryori opened 1 year ago

Nihon-Ryori commented 1 year ago

Environment:

Kernel from Linux Mint updated to: uname -r Kernel 6.1.0-1004-0em

Used bcachefs-tools version: bcachefs version bcachefs tool version v0.1-nogit

Description of issue:

sudo bcachefs format /dev/sdb1 [sudo] password for user:
External UUID: 6bfd296b-c434-429f-a578-8a443fdb5e34 Internal UUID: 1052708c-892c-440a-95a7-a57cc17a9a17 Device index: 0 Label:
Version: 14 Oldest version on disk: 14 Created: Mon Feb 6 22:33:15 2023 Squence number: 0 Block_size: 512 Btree node size: 128.0K Error action: ro Clean: 0 Features: new_siphash,new_extent_overwrite,btree_ptr_v2,extents_above_btree_updates,btree_updates_journalled,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes Compat features:
Metadata replicas: 1 Data replicas: 1 Metadata checksum type: crc32c (1) Data checksum type: crc32c (1) Compression type: none (0) Foreground write target: none Background write target: none Promote target: none Metadata target: none String hash type: siphash (2) 32 bit inodes: 1 GC reserve percentage: 8% Root reserve percentage: 0% Devices: 1 live, 1 total Sections: members Superblock size: 816

Members (size 64): Device 0: UUID: ce095d27-6e80-421b-8811-78ee0fb95396 Size: 2.0G Bucket size: 128.0K First bucket: 0 Buckets: 16000 Last mount: (never) State: rw Group: (none) Data allowed: journal,btree,user Has data: (none) Replacement policy: lru Discard: 0 initializing new filesystem going read-write mounted with opts: (null)

Now created the follow folder on desktop: /home/user/Schreibtisch/my_moutpoint

Now tryed to mount: sudo mount -t bcachefs /dev/sdb1 /home/user/Schreibtisch/my_moutpoint

I got the follow error message: mount: /home/user/Schreibtisch/my_moutpoint: unknown filesystem type 'bcachefs'.

After than I updated to the follow Kernel, reboot and checked it by uname -r, but the issue above didn't change: uname -r 6.1.0-1006-oem

Question: Any idea what I am doing wrong?

See same question on stackexchange:

marcin-github commented 1 year ago

bcachefs isn't part of mainline kernel, you should compile kernel by your self.

Nihon-Ryori commented 1 year ago

I installed the Kernel above, on follow way: I checked thw old Kernel version by: uname -r Kernel 5.x....

installed the new OEM Kernel by follow: sudo apt-get install linux-oem-22.04c

Reboot

Checked the new Kernel version uname -r Kernel 6.1.0-1004-0em

Ok, thats sounds like, I cant use the follow kernel, how I did it : Kernel 6.1.0-1004-0em

So I guess I should install the follow Kernel on Linux Mint 21, Cinnamon or build by self: Said kernel was released on 2022-12-11 by Linus Torvalds: https://web.archive.org/web/20230205021000/ https://evilpiepirate.org/git/bcachefs.git https://evilpiepirate.org/git/bcachefs.git/tag/?h=v6.1

But I realy dont know, how to do like this ? Does they are a How to for this ?

jpsollie commented 1 year ago

The easiest way