-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to start File System Check on Root Device #176
Comments
Are you trying to update a filesystem in place? I.e., are you booted and using the root filesystem and then running fwup to upgrade it? |
I think the answer is yes. After booting up the system, there is an application will call fwup via system command to execute the upgrade. After upgrading, the application will restart the system to make the new root file system become the new one. However, an A/B system update mechanism is configured on the disk. FYI. |
Hmm. I'm not sure if I'm understanding. You'll need to make sure that the filesystem that you're upgrading is unmounted. That's why I asked. If the filesystem isn't unmounted, it is really easy to corrupt the upgrade since almost any write that the OS does will corrupt it. For example, when you reboot and the OS unmounts everything, it will write anything that's still in case. What you're describing really sounds like you're either writing to a mounted partition or your A/B partitions overlap. If you really think that it's |
@fhunleth, Thank you very much for helping me. I am sorry about the confusion here. I actually just reused the example of I thought I could run fwup in the active filesystem (such as a root filesystem in A partition) and have Please correct me if my understanding of the ping-pong method is wrong. |
Oh, I have not updated that project in far too long. Are you running Another thing to mention is that My last thought is for you to look at |
I am using I was thinking since the B partition has been unmounted so it is safe and unnecessary to have I will check the new reference you posted here and compare my configuration. I will try it and share my observation with you later. |
fwup: v1.8.3 / v1.8.4
Platform: RPI 3B+
Linux kernel: 4.19.66-v7+
Problem
Every time, after using fwup to upgrade the system, error messages are shown and the system will shut down by itself. At the 2nd time to restart the system, it works as normal again.
In /boot/cmdline.txt,
fsck.mode=auto fsck.repair=yes
is used. If set it tofsck.mode=skip fsck.repair=no
, since fsck won't be executed, the message won't be shown. However, after using fsck, the message shows again once.I wonder if it may be related to an issue found and fixed in v1.8.4 as one of the bug fixes notes states that "... fsck.fat checks in dosfstools ..."
P.S. The way to create root file image is:
dcfldd
to freeze the root file system partitione2fsck
&resize2fs
to reduce the root file system image sizeThe text was updated successfully, but these errors were encountered: