症状
電源LED赤点灯、緑数回点滅後、消灯。その後は何も言わん。
対策
元気なラズパイで修復コマンド。(だめもとでやってみよ。)
手順
1.SDカードのdevice nameなに?
sudo fdisk -l
Device Boot Start End Sectors Size Id Type
/dev/sda1 8192 93486 85295 41.7M c W95 FAT32
/dev/sda2 94208 30965759 30871552 14.7G 83 Linux
2.SDカードを使って無い状態にする。
わしはsdaじゃったので
sudo umount /dev/sda*
umount: /dev/sda: not mounted.
umount: /dev/sda2: not mounted.
3.だめもとで一気に修復!
sudo fsck.vfat -w -r /dev/sda1
fsck.fat 4.1 (2017-01-24)
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
1) Remove dirty bit
2) No action
? 1
Perform changes ? (y/n) y
/dev/sda1: 148 files, 42659/83951 clusters
sudo fsck /dev/sda2
fsck from util-linux 2.33.1
e2fsck 1.44.5 (15-Dec-2018)
/dev/sda2: recovering journal
Journal checksum error found in /dev/sda2
Checking for bad blocks (non-destructive read-write test)
Testing with random pattern: 0.00% done, 0:00 elapsed. (0 done
/dev/sda2: 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
直すか?!
そのためじゃ。以下繰り返し。
Fix<y>? yes
Free blocks count wrong for group #42 (13379, counted=13250).
Fix<y>? yes …………続く続く
Inode bitmap differences: Group 0 inode bitmap does not match checksum.
FIXED.
Block bitmap differences: Group 40 block bitmap does not match checksum.
FIXED.
/dev/sda2: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sda2: 176702/949664 files (0.3% non-contiguous), 1695071/3858944 blocks
こんな感じで終わり
4.電源入れてお試し
無事起動!ラッキーじゃ。
今のうちにバックアップ!
以上
以上