오늘 새 SD 카드에 Ubuntu Mate 설치를 만들어 보았습니다. Raspberry Pi가 부팅되지 않아서(빨간색 LED만 켜짐) 다음을 사용하여 SD 카드를 확인했습니다.
ole:$ sudo fsck -y -b 163840 -B 4096 /dev/mmcblk0p1
fsck from util-linux 2.29
e2fsck 1.43.4 (21-Nov-2017)
fsck.ext2: Bad magic number in super-block while trying to open
/dev/mmcblk0p1
The superblock could not be read or does not describe a valid
ext2/ext3/ext4
filesystem. If the device is valid and it really contains an
ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the
superblock is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
또한 대체 슈퍼블록을 사용하여 e2fsck를 실행해 보았지만 모두 잘못된 것 같습니다. 그러나 실행 중 badblocks
오류가 보고되지 않았습니다.
ole@mki:~/Downloads$ sudo badblocks -o ./badblocks.list -w -s -v -b 4096 -c 16 /dev/mmcblk0p1
Checking for bad blocks in read-write mode
From block 0 to 7817983
Testing with pattern 0xaa: done
Reading and comparing: done
Testing with pattern 0x55: done
Reading and comparing: done
Testing with pattern 0xff: done
Reading and comparing: done
Testing with pattern 0x00: done
Reading and comparing: done
Pass completed, 0 bad blocks found. (0/0/0 errors)
카드를 다시 포맷하면 오류가 해결됩니까? 이미지를 카드에 3번 다시 설치해 보았으나 도움이 되지 않았습니다. 단순히 포맷 문제일 가능성이 있는지 궁금합니다.
업데이트
우분투 디스크 유틸리티를 사용하여 모든 것을 다시 포맷했는데 이제는 괜찮은 것 같습니다.
ole:$ sudo fsck /dev/mmcblk0p1
fsck from util-linux 2.29
fsck.fat 4.0 (2016-05-06)
/dev/mmcblk0p1: 1 files, 1/1953541 clusters
Ubuntu Mate 이미지를 다시 작성하여 Raspberry Pi가 부팅하는지 확인해 보겠습니다.
또 다른 업데이트
Ubuntu Mate를 굽으려고 시도했는데 다 마친 후에도 카드가 노틸러스에 마운트되지 않고 여전히 Raspberry Pi가 부팅되지 않습니다.
ole@$ sudo ddrescue -D --force ubuntu-mate-16.04.2-desktop-armhf-raspberry-pi.img /dev/mmcblk0p1
GNU ddrescue 1.21
Press Ctrl-C to interrupt
ipos: 4999 MB, non-trimmed: 0 B, current rate: 6550 kB/s
opos: 4999 MB, non-scraped: 0 B, average rate: 13192 kB/s
시도하지 않음: 0 B, 오류 크기: 0 B, 실행 시간: 6분 19초 복구됨: 5000MB, 오류: 0, 남은 시간: n/a 복구된 비율: 100.00% 마지막 읽기 성공 이후 시간: 0초 완료됨
답변1
짧은 대답은 '예'입니다. 이 경우 디스크를 다시 포맷하면 효과가 있었습니다. 공식적으로 테스트하기 위해 Ubuntu Mate 대신 Raspbian을 설치했는데 이제 제대로 작동합니다.
여기후속 질문Ubuntu Mate를 설치할 때 발생하는 손상에 대해.