Any way to check for file system corruption ?

Hi

I know you’re supposed to shut down the Pi (and other boards) with “sudo poweroff” before unplugging them. (that is the right command, right ?)

I forgot to do this this morning when I replugged several things, so at some point both my precious RPi servers have gotten plugged, unplugged in the middle of bootup, plugged again, a few times … :frowning:

They seem to work ok but I’m concerned about lurking issues and long-term stability, especially since I intend to leave these servers running remotely with no physical access for months.

Is there any way I can check for file system / SD card corruption ? If not a DietPi-specific utility, some general Linux SSH commands perhaps ?

Thank you for your help.

Check this:

https://linuxconfig.org/how-to-force-fsck-to-check-filesystem-after-system-reboot-on-linux

Thank you. Interesting to learn about Linux, but I just did a reflash anyway to not have to worry.

Weird: clicking your link reloads the forum page, to read the link I had to copy+paste its actual text.

echable
Also dietpi-drive_manager allows to run file system checks, for root fs on reboot.

johnvick
Hehe jep, links are wrong when you use the “hyperlink=” option and just add the link between the open and close directives: https://dietpi.com
Using this the link must be placed after “=” while the other location can be used to define a custom text, e.g.: DietPi website

Easier is the “url” directive, available by the button/symbol between inserting images and flash content. This does not allow custom text but simply shows the URL it also points to, e.g.: https://dietpi.com

MichaIng

Thanks hadn’t been aware of that.