PINE64
Repair corrupt root filesystem on emmc - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85)
+--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88)
+--- Thread: Repair corrupt root filesystem on emmc (/showthread.php?tid=5798)



Repair corrupt root filesystem on emmc - David82 - 03-01-2018

Hi,

I'm struggling to get my Rock64 stable. It runs on the 5V/3A power supply, both USB hub and USB3-HDD have separate power supplies. Power shouldn't be the issue.

I'm quite sure that stability issues are caused by a corrupt fs on emmc ext4 /dev/mmcblk0p7 and fat on /dev/mmcblk0p6.

Basically, the system is usable and I can do most things with, but there strange reboots / system freezes.

How can I do a e2fsck on the root partition?

I tried different options according to note on stackoverflow and other pages:

http://bitsofmymind.com/2014/03/14/how-to-fix-fsck-your-root-file-system-that-you-have-to-boot-into-on-linux/


https://superuser.com/questions/401217/how-to-check-root-partition-with-fsck
  • switch to init 1 and mount fs to ro (-> system freezes)
  • touch /forcefsck
  • /etc/rcS -> FSCKFIX



The only alternative I can think of at the moment is getting a emmc-reader




I use 0.5.15-136-jessie-omv image.



Thank you very much for your help.


RE: Repair corrupt root filesystem on emmc - Tozzi - 01-31-2019

I need to bring this up again, as I find myself in the same situation.
I need to fsck my root partition on emmc (/dev/mmcblk0p7), tried all the recommended methods like:
  • sudo touch /forcefsck
  • adding fsck.mode=force and fsck.repair=yes to kernel cmdline
But none of this worked. tune2fs still reports the last check to have taken place 2 months ago.
File system (ext4) is still dirty and showing 6 gb of free space instead of 56.

Do I really have to open the NAS case, remove the emmc and fsck it on another machine?
Please tell me that's not true...

Using latest stable OMV build (aarch64).