i OSMC on Pi2.
Till today everything worked perfectly, but now I can’t make any changes to files.
I edit file with, vim, nano, script, cron script, localy with winscp etc. but after reboot, all changes are gone.
Even when i try to delete file, after reboot file is back here.
files in /home/osmc
Pictures in pictures folder, files in /home/osmc/.kodi/userdata
(Lircmap.xml, remote.xml, keymap.xml.) etc
Your filesystem is probably corrupted enough that it now boots in read only mode.
There is a known kernel issue affecting compatibility with
some SD cards on the Pi 2 that leads to progressive file system corruption. As a quick fix you can try to run fsck on it, as described here:
Well I SSHed in to the system and I’m guessing because of my issue I was SSHing into the recovery shell because all I did was stop the media center then
sudo fsck -y /
and it did it for me. I didn’t have to unmount it or anything.
After attempting to run it fsck again on a now working system I wasn’t able to due to a:
/dev/sda1 is mounted.
e2fsck: Cannot continue, aborting.
error message. When I went to unmount it by:
sudo umount /dev/sda1
sudo umount /
I got a:
umount: /: target…
Long term fix is that you will need to do a fresh install once RC3 is released as RC3 includes a fix for this issue. For more background see:
It’s possible that you are affected by this:
What make and model is your SD card ? If you are affected, it will cause gradual file system corruption which might be subtle at first but eventually will cause problems, especially during an update, since an update overwrites a lot of critical system files.
The good news is that this should be fixed in RC3 with a kernel update, but if there is file system corruption you’d probably want to do a fresh install starting with RC3 as there’s no telling…
Would switching sd cards help?
(create img from this and flash it on new one)?
If you have a different make and model card that is not affected by this issue then yes, a fresh install on a different model of card would also solve the issue, and after RC3 you would be able to safely use the original card again.
It’s no use imaging your existing card and transferring it to the new one as you would copy all the corruption across. A fresh install would be required.
I haven’t had any corruption problems on my Pi 2 using the 8GB noobs card.
Thx, for info and your help.
Any info on RC3 relese date?
Was going to be today but a couple of things not quite ready were noticed so probably tomorrow now.
Oh, you just saved me couple of hours.
Waiting on RC3 then.
Thx and good night