Well F.. Nothing works. Hmm lets reboot. Nothing. Maybe its issue with external hard drive. Lets take the RPi Sd card and change the fstab file manually from different computer. While trying to open the /etc/ folder I’m greeted with following error:
Boom. Congrats you won broken filesystem. “Structure needs cleaning”.
So here is how you can maybe fix it.
- Unmount the RPi sd card filesystem, for me it’s sdf2:
umount /dev/sdf2
- Next we will run e2fsck with f and y flags. f is for force checking even if the file system seems clean and y is for assumes an answer of `yes’ to all questions.
sudo e2fsck -fy /dev/sdf2
And if everything goes well you should see something like:
/dev/sdf2: ***** FILE SYSTEM WAS MODIFIED ***** /dev/sdf2: 59331/476720 files (0.1% non-contiguous), 395869/1928448 blocks
And after after that the card should boot normally if you are lucky 😉 .
Leave a Reply