From: mailcimbi <mailcimbi@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: Unable to mount btrfs subvol with a new kernel
Date: Fri, 17 Sep 2021 18:17:34 +0200 [thread overview]
Message-ID: <9c56dfca-2551-22a8-e6eb-86f0614bc5a8@gmail.com> (raw)
Dear List,
I have two btrfs subvol in my fileset. I can mount it with lubuntu 18.04
but unable to mount with a newer version. Also unable to mount it when I
upgrade to the latest 18.04. By the way upgrading to 20.04 (using the
older kernel after upgrading to the latest 18.04) and starting it with
an older kernel it is working.
I can reproduce it. Starting with lubuntu 21.04 live cd: unable to
mount. Starting with lubuntu 18.04.2 live cd: I can mount it.
Here are the results:
lubuntu 18.04
root@lubuntu:~# uname -a
Linux lubuntu 4.18.0-15-generic #16~18.04.1-Ubuntu SMP Thu Feb 7
14:06:04 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
mounted btrfs with live cd
root@lubuntu:~# mount -t btrfs -o rw,subvol=@ /dev/sda3 /mnt
/dev/sda3 28G 14G 12G 55% /mnt
root@lubuntu:~# mount -t btrfs -o rw,subvol=@home /dev/sda3 /mnt/home
/dev/sda3 28G 14G 12G 55% /mnt/home
root@lubuntu:~# btrfs version
btrfs-progs v4.15.1
lubuntu 20.04
root@lubuntu:~# uname -a
Linux lubuntu 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC
2020 x86_64 x86_64 x86_64 GNU/Linux
root@lubuntu:~# mount -t btrfs -o rw,subvol=@ /dev/sda3 /mnt
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sda3,
missing codepage or helper program, or other error.
root@lubuntu:~# btrfs version
btrfs-progs v5.10.1
From the log it seems there is/are corrupt leaf(s)
[ 3231.406914] BTRFS critical (device sda3): corrupt leaf:
block=1045233664 slot=17 extent bytenr=20209664 len=8192 invalid
generation, have 895434752 expect (0, 3790778]
[ 3231.406922] BTRFS error (device sda3): block=1045233664 read time
tree block corruption detected
[ 3231.406971] BTRFS error (device sda3): failed to read block groups: -5
[ 3231.409566] BTRFS error (device sda3): open_ctree failed
Do you have an idea how to solve it. When I try to check the subvols
with btrfs check all seems to be fine in 18.04.
Thank you in advance.
Miklos
next reply other threads:[~2021-09-17 16:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-17 16:17 mailcimbi [this message]
2021-09-17 22:18 ` Unable to mount btrfs subvol with a new kernel Qu Wenruo
[not found] ` <23c6a975-cb16-0fc0-03e4-3be45348ca1c@gmail.com>
2021-09-18 9:19 ` Qu Wenruo
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=9c56dfca-2551-22a8-e6eb-86f0614bc5a8@gmail.com \
--to=mailcimbi@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox