btrfs 파티션의 오류를 수정하는 방법을 알아내려고 합니다. 완전한 작동 중지로 인해 컴퓨터를 몇 번 종료해야 했던 것과 관련된 이유로(그래픽 문제인 것 같습니다) 갑자기 크롬(안정 버전)이 더 이상 작동하지 않는다는 사실을 발견했습니다. 나는 Chrome 안정 버전을 설치할 수 있었고 약간의 조사 끝에 내 ~/.config/google-chrome
디렉토리가 쓰레기라는 것을 알게 되었습니다( ls ~/.config
모든 디렉토리에 해당 줄에 ?s가 표시되었습니다). 디렉터리를 삭제하려고 시도했지만 받은 것은 I/O 오류뿐이었습니다.
btrfs scrub start -Bd /home/alan
완료하지 못했습니다
ERROR: scrubbing /home/alan failed for device id 1: ret=-1, errno=5 (Input/output error)
scrub device /dev/nvme0n1p4 (id 1) canceled
Scrub started: Wed May 27 09:11:37 2020
Status: aborted
Duration: 0:00:51
Total to scrub: 199.02GiB
Rate: 3.24GiB/s
Error summary: csum=1
Corrected: 0
Uncorrectable: 1
Unverified: 0
그러나 실행하면 sudo smartctl -H /dev/nvme0n1
(장치에 이 파티션과 다른 파티션이 포함되어 있음) 완전히 정상인 것으로 보고됩니다.
BTRFS 오류의 출력을 보면 journalctl
특정 조합이 자주 나타납니다 .
BTRFS warning (device nvme0n1p4): checksum error at logical 174610628608 on dev /dev/nvme0n1p4, physical 174610628608: metadata leaf (level 0) in tree 263
BTRFS warning (device nvme0n1p4): checksum error at logical 174610628608 on dev /dev/nvme0n1p4, physical 174610628608: metadata leaf (level 0) in tree 174307803136
BTRFS warning (device nvme0n1p4): checksum error at logical 174610628608 on dev /dev/nvme0n1p4, physical 174610628608: metadata leaf (level 0) in tree 1522483200
BTRFS warning (device nvme0n1p4): checksum error at logical 174610628608 on dev /dev/nvme0n1p4, physical 174610628608: metadata leaf (level 0) in tree 1423638528
BTRFS warning (device nvme0n1p4): checksum error at logical 174610628608 on dev /dev/nvme0n1p4, physical 174610628608: metadata leaf (level 0) in tree 1333559296
BTRFS warning (device nvme0n1p4): checksum error at logical 174610628608 on dev /dev/nvme0n1p4, physical 174610628608: metadata leaf (level 0) in tree 1252245504
BTRFS warning (device nvme0n1p4): checksum error at logical 174610628608 on dev /dev/nvme0n1p4, physical 174610628608: metadata leaf (level 0) in tree 1252245504
BTRFS error (device nvme0n1p4): bdev /dev/nvme0n1p4 errs: wr 0, rd 0, flush 0, corrupt 2, gen 0
BTRFS error (device nvme0n1p4): unable to fixup (regular) error at logical 174610628608 on dev /dev/nvme0n1p4
그것은 시도한다sudo hdparm --read-sector 174610628608 /dev/nvme0n1p4
하지만 이건 실패했어
/dev/nvme0n1p4:
HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device
HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device
Device /dev/nvme0n1p4 has non-zero LBA starting offset of 161134592.
Please use an absolute LBA with the /dev/ entry for the raw device, rather than a partition or raid name.
/dev/nvme0n1p4 is probably a partition of /dev/nvme0n1p (?)
The absolute LBA of sector 174610628608 from /dev/nvme0n1p4 should be 174771763200
Aborting.
또한 기기 전반에 걸쳐 제공되는 다른 번호도 시도했지만 sudo hdparm --read-sector 174771763200 /dev/nvme0n1
더 간단하게 실패했습니다.
/dev/nvme0n1:
HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device
HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device
reading sector 174771763200: FAILED: Inappropriate ioctl for device
난 어디로 가야 해? 전체 파티션을 완전히 다시 포맷하는 것은(또는 전체 장치의 경우 더 나쁜 경우) 큰 혼란이 될 것입니다. 왜냐하면 파티션에도 내 데비안 시스템의 rootfs인 별도의 btrfs 하위 볼륨이 있기 때문입니다. 물론 먼저 다른 장치에 백업이 있는지 확인해야 하지만 다른 방법이 있나요?
댓글 답변 추가...
응답 dmesg -T | tail -n 20
:-
[Wed May 27 10:53:11 2020] docker0: port 2(veth79249a8) entered forwarding state
[Wed May 27 10:53:11 2020] docker0: port 2(veth79249a8) entered disabled state
[Wed May 27 10:53:11 2020] eth0: renamed from veth5edb139
[Wed May 27 10:53:11 2020] IPv6: ADDRCONF(NETDEV_CHANGE): veth79249a8: link becomes ready
[Wed May 27 10:53:11 2020] docker0: port 2(veth79249a8) entered blocking state
[Wed May 27 10:53:11 2020] docker0: port 2(veth79249a8) entered forwarding state
[Wed May 27 10:53:11 2020] eth0: renamed from veth3e5602d
[Wed May 27 10:53:11 2020] IPv6: ADDRCONF(NETDEV_CHANGE): veth91ddda7: link becomes ready
[Wed May 27 10:53:11 2020] docker0: port 1(veth91ddda7) entered blocking state
[Wed May 27 10:53:11 2020] docker0: port 1(veth91ddda7) entered forwarding state
[Wed May 27 10:53:16 2020] rfkill: input handler enabled
[Wed May 27 10:53:16 2020] systemd-journald[405]: File /var/log/journal/e76b13bb9e67491ca8c1ce766232fa75/user-1000.journal corrupted or uncleanly shut down, renaming and replacing.
[Wed May 27 10:53:18 2020] rfkill: input handler disabled
[Wed May 27 15:07:42 2020] BTRFS error (device nvme0n1p4): bad tree block start, want 174610628608 have 0
[Wed May 27 15:49:36 2020] ThreadPoolForeg[57126]: segfault at 312d1a400010 ip 000055daf8b8c542 sp 00007fc0c2cd6f90 error 4 in chrome[55daf6e12000+7a42000]
[Wed May 27 15:49:36 2020] Code: 8b 7c 0a 10 41 f6 c7 01 0f 84 81 00 00 00 4c 8b 54 0a 08 4d 89 fe 49 81 e6 00 00 fc ff 44 89 f9 c0 e9 02 bb 01 00 00 00 d3 e3 <4d> 8b 46 10 44 89 f9 c1 e9 07 81 e1 ff 07 00 00 41 8b 04 88 89 c7
[Wed May 27 15:58:01 2020] chrome[56261]: segfault at 25a517607ac0 ip 000055dafd7fb6ce sp 00007ffcd366ec10 error 4 in chrome[55daf6e12000+7a42000]
[Wed May 27 15:58:01 2020] Code: 0f 0b cc cc cc cc cc cc cc cc cc cc 55 48 89 e5 41 57 41 56 53 50 49 89 fe 48 8b 5f 28 48 c7 47 28 00 00 00 00 48 85 db 74 10 <48> 8b 3b 48 85 ff 75 5d 48 89 df e8 d2 45 92 f9 49 8b 5e 20 48 85
[Wed May 27 17:23:01 2020] Chrome_IOThread[6934]: segfault at 1841cd6f82c8 ip 000055587adb8a5e sp 00007fece6cc7990 error 6 in chrome[55587aa9f000+7a42000]
[Wed May 27 17:23:01 2020] Code: 00 00 4d 39 ee 0f 84 83 03 00 00 4c 89 f8 4c 31 f0 48 f7 d0 49 89 45 00 4d 39 ee 0f 84 d2 03 00 00 4c 89 f8 4c 31 e8 48 f7 d0 <49> 89 46 08 4d 85 ed 0f 85 05 ff ff ff c7 45 c0 03 00 00 00 4c 89