Announcement

Collapse
No announcement yet.

Repairing a btrfs partition

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Repairing a btrfs partition

    Never had to do it but wanted to find out about the command and how long it took.
    The man page is for btrfs-check.

    I've had my Neon Btrfs system running for since Neon was released. (Three years ago?) and it has and is behaving without a problem.
    So I booted my Kubuntu Bionic persistence LiveUSB and ran the command against /dev/sda1.
    sudo btrfs check --repair /dev/sda1

    This is what it returned after about 3 minutes:
    enabling repair mode
    Checking filesystem on /dev/sda1
    UUID: 12980ae8-4117-4cc5-bbb8-8065e82af93d
    Fixed 0 roots.
    checking extents
    No device size related problem found
    checking free space cache
    cache and super generation don't match, space cache will be invalidated
    checking fs roots
    checking csums
    checking root refs
    found 123396521984 bytes used, no error found
    total csum bytes: 113634432
    total tree bytes: 1129594880
    total fs tree bytes: 904069120
    total extent tree bytes: 88326144
    btree space waste bytes: 246493989
    file data blocks allocated: 2107223277568
    referenced 177630375936
    Mmmm... 24 Mb of "space waste" out of 123GB used.
    No errors found



    Not bad. First check in 3 years.
    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.

    #2
    I still have 3 bad inodes on one of my drives caused by a bad hard drive controller that couldn't be repaired. That was four years ago. Maybe I should go back and see if the updated tools can fix those now?

    Please Read Me

    Comment


      #3
      Worth a try! (Love those snapshots! )
      "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
      – John F. Kennedy, February 26, 1962.

      Comment

      Working...
      X