openmptcprouter icon indicating copy to clipboard operation
openmptcprouter copied to clipboard

Raspberrypi filesystem only read after powerloss, can't modify anything

Open simonemessina92 opened this issue 3 years ago • 6 comments

Immagine 2022-09-26 134349 After raspberrypi loose power sometimes this happen, and I can't solve in anyway, have to flash again the sd card with openmptcp .. Is any way to solve this problem ?

simonemessina92 avatar Sep 26 '22 11:09 simonemessina92

Please use template when you open an issue. Filesystem is put as read only after error on FS. This can be due to hard reboot or bad SD card. You need to reinstall RPI, and if it's not already the case check "Check filesystems before mount" in System->Mount Points.

Ysurac avatar Sep 26 '22 16:09 Ysurac

Immagine 2022-09-26 194148 > Please use template when you open an issue. Filesystem is put as read only after error on FS. This can be due to hard reboot or bad SD card. You need to reinstall RPI, and if it's not already the case check "Check filesystems before mount" in System->Mount Points.

Sorry Yusrac, I'm running rpi 4 4gb with omr latest 0.59.1-5.4 This error happen too many times I've tried diffrent sd cards not always with the same, so I wonder if there's something like a bug or other things. The check filesystem before mount is checked since the first installation.

simonemessina92 avatar Sep 26 '22 17:09 simonemessina92

Use an inverter if it's only after power outage. Make sure you don't have any USB devices, this can also use too much power for the RPI. You can also try to flash the RPI4, this can sometimes solve RPI issues: https://github.com/Ysurac/openmptcprouter/wiki/Update-RPI4-firmware

Ysurac avatar Sep 28 '22 06:09 Ysurac

Sorry Yusrac, I'm running rpi 4 4gb with omr latest 0.59.1-5.4 This error happen too many times I've tried diffrent sd cards not always with the same, so I wonder if there's something like a bug or other things. The check filesystem before mount is checked since the first installation.

I'm agree with this comment part.

It's not always a SD CARD faulty, it's an OMR problem only on RPI4, for now it's working great with 0.59.1, but sometimes, the FS is ready only when we have short electrical.

I put the SD CARD on my laptop, execute manually an e2fsck to correct bad inode and fix other issue, then i get file in /etc/config with 0 bytes. So clearly when this problem happen : OMR is writting to the SDCARD, short electrical damage the FS, and after reboot the check FS can't fix automatically the issue.

KaleiRo avatar Sep 28 '22 20:09 KaleiRo

You may try squashfs image, it write less often on SD CARD, but not sure this really change something for power outage.

Ysurac avatar Sep 29 '22 06:09 Ysurac

I solved this problem by doing a full format of the sd card and then installing the squashfs version. Not a quick format but a full format

Silvanskii avatar Oct 11 '22 07:10 Silvanskii

instead of full format , you can try -> e2fsck -y /dev/mmcblk0p2 -> reboot

iamdivyanshverma avatar Dec 23 '22 19:12 iamdivyanshverma

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Mar 24 '23 19:03 github-actions[bot]