On 19/03/2021 22:55, Markus Robert Kessler wrote:
> Hi all,
>
> I have several Raspberries running. One of them is used to collect sensor
> data, and since it is located > 100 miles distant, it is currently only
> accessible via VPN.
>
> Last reboot was end of November and now I have to see that a stat, ls
> etc. to some directories on the ext4 partition return an error alert
> "structure need cleaning".
>
> Reading in some RPi fora it looks like this is a common problem related
> to ext4.
>
> So, some questions (since I don't have the chance to drive to that
> location now and replace the SD card / installation):
You can change your /boot/cmdline.txt to the following:-
dwc_otg.lpm_enable=0 console=tty1 root=/dev/sda1 rootfstype=ext4
elevator=deadline fsck.repair=yes rootwait rootdelay=5
Which will then run fsck to repair the disk everytime when you reboot
it. It might take a good few minutes to come back up again, which is
worrying when doing it remotely.
> - Has someone already installed Raspbian (Buster) on ext3 instead of ext4,
> and if so, will this prevent the card from further problems like this?
ext3 wont stop you getting these problems, but rather they will cause
serious corruption, so stick with ext4.
> - What can be done remotely now to "repair" the FS? -- I can hardly pull
> the card out of it and run an fsck on a second machine via VPN.
> B.t.w., badblocks came back with 0 errors, the SD card seems still ok.
It's just soft corruption, so the above should repair it.
> I assume that the next reboot will be the last one...
> So, any ideas highly appreciated. -- Thanks!
There is always the possibility it wont come back from any remote
reboot, so having someone at the remote location who can put in a backup
SD card is always a good move.
---druck
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|