Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Attempt to Format and Mount bcachefs-formatted USB
- ```shell
- ~
- 4% ❯ lsblk
- NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
- sda 8:0 0 931.5G 0 disk
- ├─sda1 8:1 0 512M 0 part /boot
- └─sda2 8:2 0 931G 0 part
- └─crypted 254:0 0 931G 0 crypt
- ├─vg-swap 254:1 0 16G 0 lvm [SWAP]
- └─vg-nixos 254:2 0 915G 0 lvm /nix/store
- /
- sdb 8:16 0 59.6G 0 disk
- sr0 11:0 1 1024M 0 rom
- ~
- 4% ❯ sudo bcachefs format --label=sandisk64G --compression=lz4 --encrypted --force /dev/sdb
- Enter passphrase:
- Enter same passphrase again:
- External UUID: 5bb000ed-f5fc-468e-93db-492a2fc3b309
- Internal UUID: a06e4777-483b-4d85-829e-2eb0a5dc3b55
- Device index: 0
- Label:
- Version: snapshot_trees
- Oldest version on disk: snapshot_trees
- Created: Fri Sep 8 16:05:17 2023
- Sequence number: 0
- Superblock size: 936
- Clean: 0
- Devices: 1
- Sections: members,crypt,disk_groups
- 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:
- Options:
- block_size: 512 B
- btree_node_size: 256 KiB
- errors: continue [ro] panic
- metadata_replicas: 1
- data_replicas: 1
- metadata_replicas_required: 1
- data_replicas_required: 1
- encoded_extent_max: 64.0 KiB
- metadata_checksum: none [crc32c] crc64 xxhash
- data_checksum: none [crc32c] crc64 xxhash
- compression: none [lz4] gzip zstd
- background_compression: [none] lz4 gzip zstd
- str_hash: crc32c crc64 [siphash]
- metadata_target: none
- foreground_target: none
- background_target: none
- promote_target: none
- erasure_code: 0
- inodes_32bit: 1
- shard_inode_numbers: 1
- inodes_use_key_cache: 1
- gc_reserve_percent: 8
- gc_reserve_bytes: 0 B
- root_reserve_percent: 0
- wide_macs: 0
- acl: 1
- usrquota: 0
- grpquota: 0
- prjquota: 0
- journal_flush_delay: 1000
- journal_flush_disabled: 0
- journal_reclaim_delay: 100
- journal_transaction_names: 1
- nocow: 0
- members (size 64):
- Device: 0
- UUID: 436db131-e7d8-46ac-9210-13be59b6cc52
- Size: 59.6 GiB
- Bucket size: 256 KiB
- First bucket: 0
- Buckets: 244202
- Last mount: (never)
- State: rw
- Label: sandisk64G (0)
- Data allowed: journal,btree,user
- Has data: (none)
- Discard: 0
- Freespace initialized: 0
- ~ took 16s
- 4% ❯ sudo bcachefs unlock /dev/sdb
- Enter passphrase:
- ~ took 6s
- 4% ❯ sudo bcachefs mount -v /dev/sdb ~/USB/
- INFO - bcachefs_rust::key: checking if key exists for filesystem 5bb000ed-f5fc-468e-93db-492a2fc3b309
- Enter passphrase:
- INFO - bcachefs_rust::cmd_mount: mounting with params: device: /dev/sdb, target: /home/r0b0ty/USB/, options:
- DEBUG - bcachefs_rust::cmd_mount: parsing mount options:
- INFO - bcachefs_rust::cmd_mount: mounting bcachefs filesystem, /home/r0b0ty/USB/
- INFO - bcachefs_rust::cmd_mount: mounting filesystem
- ERROR - bcachefs_rust::cmd_mount: Fatal error: No such device
- ~ took 7s
- 4% ❯ sudo mount -t bcachefs /dev/sdb ~/USB/
- ERROR - bcachefs_rust::cmd_mount: Fatal error: No such device
- ~ took 3s
- ```
Advertisement
Add Comment
Please, Sign In to add comment