Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

bad node only when mounting volume 0 #3

Open
ghost opened this issue Mar 8, 2020 · 7 comments
Open

bad node only when mounting volume 0 #3

ghost opened this issue Mar 8, 2020 · 7 comments

Comments

@ghost
Copy link

ghost commented Mar 8, 2020

Volumes 1-3 work fine to mount and are browsable, but when trying to mount volume 0 I get this error:

bad node in block 0xad22
unable to read catalog root node

apfsck -uw /dev/nvme0n1p2 returns

Container keybag: odd inconsistency (may not be corruption).
Volume superblock: unknown optional feature

I don't find much in udev apart from the previously metioned unable to read catalog root node.

I'm on kernel 5.6.0-rc4-1-mainline on a MBP 2019 16,1 w/ NVMe SSD.

@eafer
Copy link
Member

eafer commented Mar 11, 2020 via email

@eafer
Copy link
Member

eafer commented Mar 14, 2020 via email

@HLFH
Copy link

HLFH commented Jan 11, 2021

I have the same issue.

[243915.516458] APFS (nvme0n1p2): this module is read-only
[243915.538507] APFS (nvme0n1p2): bad node in block 0x6b8
[243915.538719] APFS (nvme0n1p2): unable to read catalog root node

What should I do?

@eafer
Copy link
Member

eafer commented Jan 12, 2021 via email

@HLFH
Copy link

HLFH commented Jan 14, 2021

To start with, I am getting:

apfsck -uw /dev/nvme0n1p2
Container keybag: odd inconsistency (may not be corruption).
Nonempty reaper: not supported.

apfsck -w /dev/nvme0n1p2
Container keybag: odd inconsistency (may not be corruption).
Volume superblock: unknown optional feature.

apfsck -c /dev/nvme0n1p2
Volume superblock: unknown optional feature.

dd if=/dev/nvme0n1p2 of=/root/fscopy bs=4096 count=262144

@eafer
Copy link
Member

eafer commented Jan 14, 2021 via email

@HLFH
Copy link

HLFH commented Jan 20, 2021

Your volume is not encrypted, right?

Right.

dd if=/dev/nvme0n1p2 of=/root/fscopy bs=4096 count=262144

I've sent you today the fscopy file to your email.

And... I will try the patch.

EDIT: I think I applied the patch correctly and... I have quite the same info:

➜ ~ apfsck -uw /dev/nvme0n1p2

Container keybag: odd inconsistency (may not be corruption).
Nonempty reaper: not supported.
Nonempty reaper: not supported.
Volume superblock: unknown optional feature.
➜ ~ apfsck -w /dev/nvme0n1p2

Container keybag: odd inconsistency (may not be corruption).
Volume superblock: unknown optional feature.
➜ ~ apfsck -c /dev/nvme0n1p2

Volume superblock: unknown optional feature.

EDIT2: and dmesg:

[ 307.794835] apfs: loading out-of-tree module taints kernel.
[ 307.794864] apfs: module verification failed: signature and/or required key missing - tainting kernel
[ 307.796157] APFS (nvme0n1p2): this module is read-only
[ 307.814077] APFS (nvme0n1p2): bad node in block 0x6b8
[ 307.814133] APFS (nvme0n1p2): unable to read catalog root node

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants