file system check on root file system does not work

Moderators: odroid, mdrjr

file system check on root file system does not work

Unread postby fireknall » Tue Jun 05, 2018 3:56 pm

Hi,
after a power loss my root filesystem on a SD card shows EXT-4 errors.
I'm running 16.04 LTS on an Odroid C1+ and the system is up2date (apt update, apt dist-upgrade)

I would think that it's a nice idea when the system runs a fsck on booting... but somehow it won't work.

I tried...
- messing mit tune2fs (force last fsck time back to 19700101, set max mount count to 1)
- touch /forcefsck
- edit /etc/default/rcS.d (FSCKFIX=yes)
- messing with kernel command line in /media/boot/boot.ini (making sure that "ro" is set, adding "fsck.repair=yes fsck.mode=force"
- cursing out loud while repeatedly rebooting ;)

but all to no avail.
tune2fs still shows last fsck on 19700101 and that the fs contains errors.

Any help / ideas would be greatly appreciated.
I know that I still can power down the odroid, plug the SD card into another linux device and fsck the filesystem there.
I also know (assume... I'm not that systemd-aware) that I could go to singleuser modus and fsck the filesystem there.

Anyway, a regular fixing on normal bootup would be really great...

Best regards, yours
Fireknall.
fireknall
 
Posts: 3
Joined: Tue Jun 05, 2018 3:31 pm
languages_spoken: english
ODROIDs: Odroid C1+

Re: file system check on root file system does not work

Unread postby odroid » Tue Jun 05, 2018 5:24 pm

If the rootfs was too much corrupted, the self-fsck might not work properly due to the corrupted system libraries.
Consider using other Linux device to run a fsck command for your SD card.
I hope other users can give you a better idea.
User avatar
odroid
Site Admin
 
Posts: 27958
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: file system check on root file system does not work

Unread postby fireknall » Tue Jun 05, 2018 6:26 pm

Hi odroid, thanks for the input.
regarding corrupted system libraries: I run "debsums -s" and all expected files from the installed packages seem to be there and to have the correct MD5 hash. (Obviously there are changed config files...). This pretty much precludes accidentially damaged files from my understanding.

I plan to use another linux device today in the evening to fsck the sdcard, even though I don't really like this as a solution.

Best regards
Fireknall
fireknall
 
Posts: 3
Joined: Tue Jun 05, 2018 3:31 pm
languages_spoken: english
ODROIDs: Odroid C1+

Re: file system check on root file system does not work

Unread postby fireknall » Thu Jun 07, 2018 4:42 pm

Hi, just to close this:
I did fsck the sd card on another computer. fsck.ext2 -y didn't take any interaction.
Then I did a debsum over all files. Everything is fine now.

Couriously I'm pretty sure that the mount counter for the ext filesystem isn't honored. It just count's up when I reboot the odroid and increases higher than the max-mount-counts.
This shouldn't happen, anyway, I hopefully can ignore it :-)
Best regards.
fireknall
 
Posts: 3
Joined: Tue Jun 05, 2018 3:31 pm
languages_spoken: english
ODROIDs: Odroid C1+


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 0 guests