Run cleanup command if SD card was not unmounted properly #70
Labels
No Label
OPS TODO
api change
breaking api change
bug
documentation
duplicate
feature
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: eive/eive-obsw#70
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If the OBSW is restarted and the SD card was not unmounted, an error can occur when remounting the SD card. I have issue reproducing the issue right now, but I think the error can be detected by piping the output of
mount /dev/mmcblk<0/1>p1 /mnt/sd<0/1>
to a file and checking whether it is empty or not in the OBSW.The simple solution would be to check whether this error occured and then repair the system with the command
to remove the dirty bit
Run `fsck -a /dev/mmcblk<sd>p2` if SD card was not unmountedto Run cleanup command if SD card was not unmounted properlyAfter performing some research, I found out that the output is produced by the kernel, and can
be queried with
after mounting the SD card.
Now the question remains whether this outout is always checked directly after mounting the SD card or whether the
fsck
command is just run everytime..Also, remember this for #68 , getting the kernel output log requires using
-t
instead of-u
This was solved by using an
ext4
journaling filesystem