I did this procedure a few days ago. How add more space in a Btrfs Filesystem, How add a new partition, How add a new disk, Linux
I did the last step, the balance.
Hello pals problem in the disk, I was working in the pc then suddenly was not able to save files in the disk. When i wanted to save files the editor showed a message about the disk was on read mode.
I had to reboot the PC.
The pc when boot only show me Minimal BASH-like.
Now, I am at a boot usb with fedora 34.
part of the dmesg output.
les CT target to attach helpers instead.
[ 162.717286] BTRFS info (device sdc2): disk space caching is enabled
[ 162.717291] BTRFS info (device sdc2): has skinny extents
[ 162.718685] BTRFS error (device sdc2): parent transid verify failed on 225366736896 wanted 293780 found 293201
[ 162.718690] BTRFS warning (device sdc2): couldn't read tree root
[ 162.718885] BTRFS error (device sdc2): open_ctree failed
[ 199.477356] BTRFS info (device sdc2): disk space caching is enabled
[ 199.477361] BTRFS info (device sdc2): has skinny extents
[ 199.478675] BTRFS error (device sdc2): parent transid verify failed on 225366736896 wanted 293780 found 293201
[ 199.478692] BTRFS warning (device sdc2): couldn't read tree root
[ 199.479291] BTRFS error (device sdc2): open_ctree failed
[liveuser@localhost-live ~]$
BTRFS check
[liveuser@localhost-live ~]$ sudo btrfs check --clear-space-cache v1 /dev/sdc2
Opening filesystem to check...
parent transid verify failed on 225366736896 wanted 293780 found 293201
parent transid verify failed on 225366736896 wanted 293780 found 293201
Ignoring transid failure
ERROR: could not setup extent tree
ERROR: cannot open file system
[liveuser@localhost-live ~]$
I can mount sdc2
in /run/media/liveuser/f34-sdc2/
, shows message about wrong fs type
[liveuser@localhost-live ~]$ mkdir /run/media/liveuser/f34-sdc2
mkdir: cannot create directory â/run/media/liveuser/f34-sdc2â: Permission denied
[liveuser@localhost-live ~]$ sudo mkdir /run/media/liveuser/f34-sdc2
[liveuser@localhost-live ~]$ mount /dev/sdc2 /run/media/liveuser/f34-sdc2/
mount: /run/media/liveuser/f34-sdc2: must be superuser to use mount.
[liveuser@localhost-live ~]$ sudo mount /dev/sdc2 /run/media/liveuser/f34-sdc2/
mount: /run/media/liveuser/f34-sdc2: wrong fs type, bad option, bad superblock on /dev/sdc2, missing codepage or helper program, or other error.
then run the command btrfs balance -v -dusage=50 <mounted-partition>
[liveuser@localhost-live ~]$ btrfs balance -v -dusage=50 /run/media/liveuser/f34-sdc2/
btrfs balance: unknown token '-v'
usage: btrfs balance <command> [options] <path>
or: btrfs balance <path>
btrfs balance start [options] <path>
Balance chunks across the devices
btrfs balance pause <path>
Pause running balance
btrfs balance cancel <path>
Cancel running or paused balance
btrfs balance resume <path>
Resume interrupted balance
btrfs balance status [-v] <path>
Show status of running or paused balance
balance data across devices, or change block groups using filters
[liveuser@localhost-live ~]$
command : btrfs filesistem show
[liveuser@localhost-live ~]$ sudo btrfs filesystem show
Label: 'f34_lv_btrfs' uuid: ff8bfa82-86d7-4170-9e0a-858bf735ed77
Total devices 2 FS bytes used 106.75GiB
devid 1 size 135.03GiB used 72.03GiB path /dev/sdc2
devid 2 size 100.00GiB used 37.00GiB path /dev/sdb5
[liveuser@localhost-live ~]$
How can we resolve the problem and get access to the system?.