덤프된 ext4 파티션 이미지가 있습니다: mmcblk0p5 이미지를 마운트할 수 있지만 항상 읽기 전용입니다. 그래서 dmesg를 확인해 보니 다음과 같은 내용이 있었습니다.
EXT4-fs error (device loop0): ext4_init_inode_table:1340: comm ext4lazyinit: Something is wrong with group 0: used itable blocks: 467; itable unused count: 0
그래서 나는e2fsck -ccy mmcblk0p5
e2fsck 1.42.9 (4-Feb-2014)
mmcblk0p5: recovering journal
Checking for bad blocks (non-destructive read-write test)
Testing with random pattern: done
mmcblk0p5: Updating bad block inode.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
mmcblk0p5: ***** FILE SYSTEM WAS MODIFIED *****
mmcblk0p5: 1623/44802 files (0.0% non-contiguous), 138293/179194 blocks
오류를 찾을 수 없는 것 같으며 오류 로그만 지울 수 있습니다. 다시 설치해도 같은 오류가 발생합니다. 이 파일 시스템을 어떻게 복구할 수 있나요? 이미지 파일을 마운트/마운트 해제한 후의 tune2fs 결과입니다.
tune2fs 1.42.9 (4-Feb-2014)
Filesystem volume name: <none>
Last mounted on: /system
Filesystem UUID: 57f8f4bc-abf4-0000-675f-946fc0f9f25b
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal resize_inode filetype needs_recovery extent sparse_super large_file
Filesystem flags: unsigned_directory_hash
Default mount options: (none)
Filesystem state: clean with errors
Errors behavior: Remount read-only
Filesystem OS type: Linux
Inode count: 44802
Block count: 179194
Reserved block count: 0
Free blocks: 40901
Free inodes: 43179
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 47
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 7467
Inode blocks per group: 467
Last mount time: Tue Oct 25 18:13:08 2016
Last write time: Tue Oct 25 18:13:10 2016
Mount count: 1
Maximum mount count: -1
Last checked: Tue Oct 25 18:09:34 2016
Check interval: 0 (<none>)
Lifetime writes: 94 MB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
Default directory hash: tea
Journal backup: inode blocks
FS Error count: 2
First error time: Tue Oct 25 18:13:10 2016
First error function: ext4_init_inode_table
First error line #: 1340
First error inode #: 0
First error block #: 0
Last error time: Tue Oct 25 18:13:10 2016
Last error function: ext4_init_inode_table
Last error line #: 1383
Last error inode #: 0
Last error block #: 0
만약 내가한다면 tune2fs -e continue mmcblk0p5
. 그런 다음 설치하고 그 위에 폴더를 만듭니다. e2fsck에서는 몇 가지 오류가 발생합니다.
e2fsck -ccky mmcblk0p5
e2fsck 1.42.9 (4-Feb-2014)
Checking for bad blocks (non-destructive read-write test)
Testing with random pattern: done
mmcblk0p5: Updating bad block inode.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Inode bitmap differences: -29845 +29869
Fix? yes
mmcblk0p5: ***** FILE SYSTEM WAS MODIFIED *****
mmcblk0p5: 1624/44802 files (0.0% non-contiguous), 138294/179194 blocks
하지만 이 오류는 수정할 수 없으며 항상 존재합니다. 이 문제를 해결하는 방법을 아시나요?