PINE64

Full Version: Repair corrupt root filesystem on emmc
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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-t...-on-linux/


https://superuser.com/questions/401217/h...-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.
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).