When using e.g. OpenELEC with Raspberry Pi, SD cards often get corrupted after some days.
You get error messages like
Error in mount_storage: mount_common: could not mount /dev/mmcblk0p2
- Removing power or resetting when system writes to SD card (without shutdown before). This should be avoided; it might work 100 times or more without a problem but can also damage the file system after 1-2 times.
- Updating OpenELEC sometimes leads to this problem, especially on RPis.
- In OE forum there are also discussions that OE 5.x leads to more corrupted SD cards than older versions.
- SD card itself is damaged, either inside controller or physically.
If you have a quite new SD card, in most cases only a part of the file system is corrupted.
If you get access to shell, try this command:
fsck -fy /dev/mmcblk0p2
Or for check on next reboot:
An alternative to above ways could be to create a Gparted USB stick like described here. Boot from stick, then run all available checks on every partition.
Thank you very much. This solved my problem with a corrupted file system under openelec.
It works! Thank you so much!
Many thanks for the tip, my Kodi is working again.
I FUCKING LOVE U!
I thought I will have to go through everything again, Kodi, addons, libraries ….
THANKS A LOT
Me too! Thanks for your post. While I lost all my Kodi customizations, the commands helped me recover the base Kodi system. I used “Fresh Start” to get up and running quickly.
Thanks a lot you saved my time
Works! Let it do it’s thing, be patient and reboot. Thanks very much.
interesting. I got that message on my first boot after installing OpenElec.
I’ve this exact error in the rasp boot.
How can I connect via putty to the rasp to type this command lines?
It seems rasp is not listen to any commands. I’ve a black screen without prompt…
I’ve finally decided for reformatting the sd card and reinstall openelec and now I’ve the rasp working again but I’ve lost all the addons and the watched history (that’s very important for me to remember the last watched episodes…)
Thanks in advance.
LESSON LEARNED: Don’t run your raspi on the TV’s USB plug and swith it off without first switching off the Raspi!
Thank you Sir!
LESSON LEARNED: SHUTDOW RASPI BEFORE TV if its powere by the TVs USB plug.
WOW. This fixed it! I’ve been getting this period periodically and have been restoring from backups from scratch everytime. Using a cubox with OpenELEC. Thank you so much.
I just get no such file or directory while trying to open /dev/mmcblk0p2
Possibly non-existent device
you saved my evening (and night probably),
thank you so much!!