PDA

View Full Version : How to Solve fsck problem on my Raspberry Pi 3?



real0001
2017-01-23, 17:03
I have installed Kali linux on my Raspberry pi 3,after using some time, power failure occurred. Now every time i boot up my Rpi 3 it starts checking disk and gave error that press CTRL+D for default boot and give root password for maintenance?

I have search a lot of this problem but nothing working? :(
All suggestions are highly appreciated.

snapshot also attached.
2133

re4son
2017-01-23, 19:40
Hi real0001,

pop the SD card into a linux machine and run

sudo fdisk -l

pick your sdcard (mmcblk1 in my example) and run

sudo fsck /dev/mmcblk1p1 -y
sudo fsck /dev/mmcblk1p2 -y

That should do the trick

Happy hacking,
Re4son

real0001
2017-01-25, 13:12
I Got following error :(
Device Boot Start End Sectors Size Id Type
/dev/sdb1 1 125000 125000 61M c W95 FAT32 (LBA)
/dev/sdb2 125001 14334047 14209047 6.8G 83 Linux
root@kali:~# sudo fsck /dev/sdb2 -y
fsck from util-linux 2.28.2
e2fsck 1.43.3 (04-Sep-2016)
/dev/sdb2 is mounted.
e2fsck: Cannot continue, aborting.

re4son
2017-01-26, 02:19
Try "umount /dev/sdb2"