-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
RootFS is Read-only after failed Unbound installation #4191
Comments
Hello, > /forcefsck
reboot
# After reboot, check result
journalctl -t systemd-fsck |
Issuing the command failed with the following output
|
usually this indicated some file system corruption. Can you check following |
The ouput is as follow:
EDIT: I don't understand what a dirty bit is exactly so I am not sure how to proceed |
The dirty bit is set when mounted and unset when unmounted. Since you haven't unmounted the filesystem, it is still there. It is probably safe to remove, but there is no reason to. |
Thank you for elaborating. However, would removing it resolve the Read-only issue I am having or would it have no effect? |
Chances are it would have no effect, so I would recommend skipping it and seeing what |
EDIT: Is it safe to assume my SD card has bitten the dust? It seems to me that it is a hardware issue at this point rather than software. |
Yes looks like physical issues on the SD card. Usually @MichaIng has some good ideas on such issues |
A filesystem error/corruption can be a hint for a dying SD card, but not necessarily. First I'd try to fix it and only if it re-appears without a previous system crash or such, I'd try a new one. Although if R/W remount and fsck both fail in the first place, this indeed looks like a dying SD card: https://unix.stackexchange.com/questions/327863/fsck-wont-fsck-unable-to-set-superblock-flags
Please try to plug the SD card into an external Linux system and run fsck there. |
I had to leave town, won’t be back until Sunday. I will try your suggestion and update you here once I get the opportunity. |
So I attempted running fsck on an external Linux system and got the same error regarding being unable to set the superblocks flag. I guess the SD card is indeed dead. |
There is a procedure to make fsck use and restore an alternative/backup superblock: https://linuxexpresso.wordpress.com/2010/03/31/repair-a-broken-ext4-superblock-in-ubuntu/ Is it enough so that you can follow this? |
Thank you for the link, but I had already bought a new SD card and got rid of the one giving me the read-only issue prior to reading the latest comment. |
means, this can be closed now? Was |
I have not had time to setup DietPi on the new SD due to work and time constraints so I can not comment on Unbound. However, I believe I will be holding off on the Unbound installation until the next DietPi update out of caution. Thank you. |
The Unbound installation surely was not the reason, but the trigger for writes to bad blocks on the old SD card or similar. Means you don't need to worry that the install will corrupt your new SD card or so 😉. And it was not even necessarily a bad block, so the attempt to recover the superblock generally still makes sense, with the possibility to restore all other data untouched. But year, it's all a matter of weighing up whether it's worth the invested time and effort, when not being sure whether the same issue is hit again soon with that SD card. I'll mark the issue as closed, feel free to reopen if required. |
Details:
Steps to reproduce:
Expected behaviour:
Actual behaviour:
Extra details:
Additional logs:
The text was updated successfully, but these errors were encountered: