I had an issue with some data corruption in within a docker container with no apparent reason for it, deleting and creating it again allegedly fixed that. To be sure that the issue wasn’t something spreading in my ssd, I used dietpi-drive_manager to set to check the system partition on next boot, which now I guess I shouldn’t have… atm it boots, initializes everything, checks the drive and then reboots, again and again… and does it quite efficiently while using very little power to do so I may add.
It’s a RPi 4 4 GB, latest dietpi, booting from an ssd connected to a USB3 enclosure, updated just earlier today, sorry can’t be much more specific, “it doesn’t boot” any more.
Can someone help me get out of this loop?, I’m not a very skilled linux user, but I can follow instructions fairly well.
[…] the /forcefsck file […] is automatically removed by systemd on boot, to be a one time action.
So I’m not sure if the fs check is creating the loop. Do you have a monitor attached and can confirm that the check is done on every reboot?
The /forcefsck file should be located in /, I think.
Are you able to hook up the SSD to another linux system to check if this file is still there? You can also run fsck from this machine for this drive.
Not it’s a 2.5’ powered from USB directly, but I’m not even sure it was data corruption, I assumed it was based on a stack exchange lookup for the error, but I’m not a 100% sure it was.
I do have a monitor attached and I see the booting and the file check, but it’s really fast, so can’t read everything going on. My guess is that it mounts the drive as read only in order to do the check or something and then reboots without removing this file…
I suppose I’ll have to do that, because the only linux pcs I have are “retired” in a self for this low power rpi4.
So now I managed to finally boot by deleting the file, “journalctl -t systemd-fsck” or “cat /run/initramfs/fsck.log” shows nothing, how can I be sure the drive is doing fine?, how should I go about checking the filesystem in order to avoid this happening again?