TollieCA
Posts: 3
Joined: Wed Apr 20, 2016 5:20 pm

File corruption in OpenElec

Wed Apr 20, 2016 5:42 pm

I've installed OpenElec 6.0.3 (stable) using Win32DiskImager on a uSD card for my Pi2.

Booted the image, configured OpenElec and things work fine (Wifi dongle, HDMI w/ Audio etc).

After i shutdown my Pi using the Kodi interface, I wait and then restart the Pi. This results in a lot of file corruption warnings or even just the 4 pixels and nothing. For test I tried to use CLI to shutdown (sudo shutdown -h) but similar results.

uSD card is a Sandisk Ultra 8Gb HC - new from Amazon
PSU is a Canakit 5V 2.5A charger for RPi - new from Amazon

what is going on?

Goraxium
Posts: 122
Joined: Tue Jan 26, 2016 1:42 pm

Re: File corruption in OpenElec

Wed Apr 20, 2016 10:14 pm

If you shut it down using the power button in the Kodi interface, and you wait for the Pi to shut down (green light flashes a few times), that shouldn't happen... How cheap was the card? Considering that OpenElec uses a read only file as the base of its operations, the amount of possible corruption should be minimal, even given the worst possible shutdown. A fake SD card on thr other hand, would result in a number of issues...

TollieCA
Posts: 3
Joined: Wed Apr 20, 2016 5:20 pm

Re: File corruption in OpenElec

Mon Apr 25, 2016 9:15 pm

I think I paid 6 USD for 8Gb microSD cards (Sandisk Ultra / Kingston Class 4) at the time (a while ago) on Amazon. A common tool like SD Formatter doesn't work on them - probably because of my 4yr old W7 I am using. So i am actually using a Canon camera to force a low level format.

I've used H2testw (heide.de) to check the uSD card :

Code: Select all

Warning: Only 7672 of 7673 MByte tested.
Test finished without errors.
You can now delete the test files *.h2w or verify them again.
Writing speed: 11.7 MByte/s
Reading speed: 18.9 MByte/s
H2testw v1.4
ok, not the fastest card

Goraxium
Posts: 122
Joined: Tue Jan 26, 2016 1:42 pm

Re: File corruption in OpenElec

Tue Apr 26, 2016 6:45 am

Not sure why you can't use the SD Formatter using something that's only 4 years old. My PC is 12-13 years old now, and it works fine (as long as I don't unplug the adapter while it's doing its thing). Using the camera to format the card was a good idea, as was testing the card. The speed shouldn't be a issue.

Have you reflashed the card, and if so, has it solved the problem? If not, the only other thing I can possibly think of is the sd card contacts on the Pi. If you've got access to an air compressor, maybe try blowing it out in case there's dust in there. Or there's the old paper trick if it's a pressure issue (kinda seen here: http://raspberrypi.stackexchange.com/qu ... to-sd-card). Beyond that, I'm not sure what else could be wrong...

TollieCA
Posts: 3
Joined: Wed Apr 20, 2016 5:20 pm

Re: File corruption in OpenElec

Tue Apr 26, 2016 8:04 pm

Attempt X:

I cleaned the uSD slot as suggested, installed OSMC (md5hash confirmed) - same problem on restart. :(

New download OpenElec (MD5hash confirmed) on another uSD card (Kingston this time). So far ok so it seems it was the SD card (tough it passed all the tests :S)


Pi2 is connected to 2.5A 5V PSU, USB keyboard, USB wifi dongle, wired LAN.

vancoonsie
Posts: 5
Joined: Fri Apr 22, 2016 7:57 pm

Re: File corruption in OpenElec

Tue Apr 26, 2016 10:16 pm

Goraxium wrote:If you shut it down using the power button in the Kodi interface, and you wait for the Pi to shut down (green light flashes a few times), that shouldn't happen... How cheap was the card? Considering that OpenElec uses a read only file as the base of its operations, the amount of possible corruption should be minimal, even given the worst possible shutdown. A fake SD card on thr other hand, would result in a number of issues...
I am also a NOOB, trying to decide on how to download OpenElec on a Rasp Pi. I am trying to make this a portable device so my daughter can use it at my house as well as at her mother's, so I have to be able to shut the unit down. Should I use NOOB to install OpenElec or flash OpenElec directly to a clean card. The RPi is being used only for Kodi, and I am looking for the easiest way to turn on and off. Thanks.

Goraxium
Posts: 122
Joined: Tue Jan 26, 2016 1:42 pm

Re: File corruption in OpenElec

Wed Apr 27, 2016 2:07 pm

TollieCA wrote:So far ok so it seems it was the SD card (tough it passed all the tests :S)
Weird, but I'm glad you got it working. Maybe use the dodgy card for storing media files (videos / music) and see if it holds up that way...
vancoonsie wrote:Should I use NOOB to install OpenElec or flash OpenElec directly to a clean card.
That's entirely up to you. There's no advantage to powering it on or off by choosing the Noobs image over the OpenElec image. I should note though, powering the Pi on/off with OpenElec takes just a few seconds, so it's not going to matter too much. As long as you have some type of 5V battery hooked up to make it genuinely portable, it shouldn't cause any issues. If you need to be able to control the shutdown in the event of low power though (recommended, due to possible SD card corruption), you may find OSMC to be a better option (since it gives you complete access to the underlying Linux OS). You may need to look at a few different projects to make a portable media center (Google will help more than I can). Alternatively, you could buy a cheap Android tablet/phone.

Return to “Beginners”