All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Murphy <lists@colorremedies.com>
To: Peter Chant <pete@petezilla.co.uk>
Cc: Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: Mount issue, mount /dev/sdc2: can't read superblock
Date: Fri, 21 Dec 2018 15:25:24 -0700	[thread overview]
Message-ID: <CAJCQCtRY-=AoHDxu--YOWfrs774QzrYj-AwvwD3H_YpTzDKfZw@mail.gmail.com> (raw)
In-Reply-To: <1aa82e28-3331-bc64-071c-6cf87b08ad94@petezilla.co.uk>

On Thu, Dec 20, 2018 at 3:23 PM Peter Chant <pete@petezilla.co.uk> wrote:
>
> I managed to break my root partition today.  Playing with GPU
> passthrough to a second graphics card, unsuccessfully, I suspect lead to
> some lockups and/or unclean mounts.

Should not matter, in theory.


> I've Googled a bit and tried a number of things stopping just before
> 'btrfs check --repair'.  I'm running kernel 4.19.10.  I now have the
> latest version of btrfs-progs, but I do admit to 'having a go' with
> btrfs-progs 4.4.something from a Mint installation.
>
> I've tried btrfs-find-root - and got the following:
>
> btrfs-find-root /dev/sdc2
> Superblock thinks the generation is 793794
> Superblock thinks the level is 1
> Found tree root at 1113905790976 gen 7937947 level 1

For all supers to be off by nearly 50 generations is really weird.
That's a lot of transactions to happen, and fail, and only for the
most recent super commits to happen successfully.

What do you get for ' btrfs rescue super -v <dev>'? That's a read only
command, I wonder if all the supers are really valid. And if they are,
then I'd like to see 'btrfs insp dump-s -f <dev>' and see if there's a
log tree. And then also the output from 'btrfs check --mode=lowmem
<dev>' which is also read-only, don't use --repair unless a dev
recommends it.


-- 
Chris Murphy

  reply	other threads:[~2018-12-21 22:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-20 21:21 Mount issue, mount /dev/sdc2: can't read superblock Peter Chant
2018-12-21 22:25 ` Chris Murphy [this message]
2018-12-22 12:34   ` Peter Chant
2018-12-24  0:58     ` Chris Murphy
2018-12-24  2:00       ` Qu Wenruo
2018-12-24 11:36         ` Peter Chant
2018-12-24 11:31       ` Peter Chant
2018-12-24 12:02         ` Qu Wenruo
2018-12-24 12:48           ` Tomáš Metelka
2018-12-24 13:02             ` Qu Wenruo
2018-12-24 13:52               ` Tomáš Metelka
2018-12-24 14:19                 ` Qu Wenruo
2018-12-30  0:48                   ` Broken chunk tree - Was: " Tomáš Metelka
2018-12-30  3:59                     ` Duncan
2018-12-30  4:38                     ` Qu Wenruo
2018-12-24 23:20         ` Chris Murphy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJCQCtRY-=AoHDxu--YOWfrs774QzrYj-AwvwD3H_YpTzDKfZw@mail.gmail.com' \
    --to=lists@colorremedies.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=pete@petezilla.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.