Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: BTRFS reports errors but does not fix them

  1. #1

    Default BTRFS reports errors but does not fix them

    Code:
    brtrfs check --repair /dev/sda1
    Reports a list of errors that mostly contain "no inode item, link count wrong".

    But it does not fix the errors.

    What should be done next?

  2. #2
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,704

    Default Re: BTRFS reports errors but does not fix them

    Run fsck with the partition NOT mounted. You can not fix a mounted file system

  3. #3

    Default Re: BTRFS reports errors but does not fix them

    Quote Originally Posted by gogalthorp View Post
    Run fsck with the partition NOT mounted. You can not fix a mounted file system
    There may be a great risk in using fsck with a btrfs filesystem. There shod be an equivalent in btrfsprogs.

  4. #4
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,704

    Default Re: BTRFS reports errors but does not fix them

    fsck is just a shell the calls the appropriate fix program for the file system in question

  5. #5

    Default Re: BTRFS reports errors but does not fix them

    Quote Originally Posted by gogalthorp View Post
    Run fsck with the partition NOT mounted. You can not fix a mounted file system
    No where did I say that the drive was mounted.

    FSCK says, specifically, to use the BTRFS tool on a BTRFS file system.

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,674
    Blog Entries
    15

    Default Re: BTRFS reports errors but does not fix them

    On Thu 06 Oct 2016 12:16:01 PM CDT, SUSEtoad wrote:

    Code:
    --------------------
    brtrfs check --repair /dev/sda1
    --------------------


    Reports a list of errors that mostly contain "no inode item, link count
    wrong".

    But it does not fix the errors.

    What should be done next?


    Hi
    Have a read here;
    https://btrfs.wiki.kernel.org/index.php/Btrfsck

    The option you tried appears to be a last resort option...

    Is this on the disk you used dd to copy to?

    --
    Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE Leap 42.1|GNOME 3.16.2|4.1.31-30-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,004

    Default Re: BTRFS reports errors but does not fix them

    Quote Originally Posted by SUSEtoad View Post
    No where did I say that the drive was mounted.
    Nor did you say it was not mounted, so we simply do not know.
    It is a common error to try to fix a broken file system when mounted, thus gogalthorpe's remark is very valid.
    Also, while Btrfs is mostly only used on the root file system (it is the installation default on the root file system only) and because many people will probably forget that they have to unmount the root file system, which means that the system must be down and another system (life, rescue, multi-boot or whatever) must be booted, it is also very valid to remind people that this is a must.

    And that is of course valid for fsck and the btrfs tool.
    Henk van Velden

  8. #8

    Default Re: BTRFS reports errors but does not fix them

    Quote Originally Posted by malcolmlewis View Post
    Is this on the disk you used dd to copy to?
    No. This is a physically separate drive where I keep /home. I reasoned that it was a good idea to scan the drive for errors after dealing with the previous re-install. It seems that I was right - the drive does need repair.

  9. #9

    Default Re: BTRFS reports errors but does not fix them

    Quote Originally Posted by hcvv View Post
    Also, while Btrfs is mostly only used on the root file system (it is the installation default on the root file system only)
    If BTRFS is not suitable for /home should I erase and re-build from backups?

    What file system is more suited for /home?

  10. #10
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,674
    Blog Entries
    15

    Default Re: BTRFS reports errors but does not fix them

    On Thu 06 Oct 2016 01:46:01 PM CDT, SUSEtoad wrote:

    hcvv;2795012 Wrote:
    > Also, while Btrfs is mostly only used on the root file system (it is
    > the installation default on the root file system only)

    If BTRFS is not suitable for /home should I erase and re-build from
    backups?

    What file system is more suited for /home?


    Hi
    Depends an what you consider /home. I use /home on btrfs as a subvolume
    so it's excluded from snapshots. I use xfs (which is the default for
    openSUSE /home) on a data partition (/data) which has symlinks to the
    files I want to use in /home/username. I just have a script the setups
    my desired user config.

    I have no interest in system backups (apart from a few config files), if
    snapper rollback doesn't work (which I haven't struck yet), simpler and
    less time consuming for a re-install.

    --
    Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE Leap 42.1|GNOME 3.16.2|4.1.31-30-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •