Repair corrupt root filesystem on emmc

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:
  • 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 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).

Possibly Related Threads…
Thread Author Replies Views Last Post
  Debian (Vanilla) on Rock64 and eMMC - how ? as365n4 4 4,349 09-21-2020, 04:33 AM
Last Post: as365n4
Question HDD filesystem corruption at reboot / poweroff (DietPi) WrongWorld 1 2,525 02-11-2019, 04:00 PM
Last Post: WrongWorld
  Clone the SD to eMMC tagyro 1 2,903 02-06-2019, 06:55 AM
Last Post: evilbunny
  Migrate Linux from microSD to onboard eMMC elik745i 7 8,389 11-03-2018, 08:23 AM
Last Post: mara
  Tutorial How to write a image in the eMMc card without USB adaptor or serial cable gedas07 2 3,279 08-29-2018, 10:08 AM
Last Post: gedas07
  Rock64: Debian root fs on software RAID1 of eMMC and microSD - is installing it the s jovval 2 3,164 08-03-2018, 12:33 PM
Last Post: jovval
  If you've messed up your eMMC Card - Solved gregb49 11 14,045 07-11-2018, 02:08 PM
Last Post: gregb49
  Xenial Mate + Emmc Guettt 2 2,685 05-31-2018, 02:49 AM
Last Post: pas059
  boot emmc, trying to access SD Drive E.G 0 1,388 04-13-2018, 09:05 PM
Last Post: E.G
  Rock64 Xenial Mate Community Build Image [microSD to eMMC] [0.5.15-136] Guld 6 6,543 03-14-2018, 08:26 PM
Last Post: colgs3b

Forum Jump:

Users browsing this thread: 1 Guest(s)