Repair crashed instalation?

  • Hi everybody,

    I recently tried out to update my OpenELEC installation to LibreELEC. I didn't make a backup which was stupid.
    When I downloaded the specific update tarball, I selected the Raspberry 1 in the pulldown menu.
    Unfortunately this didn't had any effect because it was blocked by NoScript.

    You can already guess what happened. I updated the version for Rapsberry Pi 2 and 3 to my Raspberry 1 and now it doesn't boot.

    If the install/config is screwed it isn't a disaster. I will get a Pi 3 on short time and maybe a clean install is a good idea too. But would it be in principle possible to repair this messed up install?

  • The easiest way I can think of...
    Head to the downloads section.
    Follow the instructions to make a new sd card with the usb-sd creator tool - using a different sd card or usb stick.
    When you're done, take your old (non-working) card and wipe the fat partition (the partition you see in windows, about 500MB ish).
    Copy everything from the fat partition of your new card that you've just made onto the old one.
    Boot pi with the old card and it should update to libreelec.

    Making a backup of the old card (if in windows using win32diskimager or usbit) first wouldn't be the worst idea in the world.

    Alternatively...
    Do something similar (ie make a new sd card) but this time do it using the same openelec version as was originally on your card - so from the openelec site, download an image and write to an sd card / usb stick with win32diskimager. After moving stuff across between cards your pi should boot into openelec again on the old card - you can do your backup and try again.

  • Ah, so on the fat partition is solely the system and the complete config is on the bigger ext4 partition.
    I will do it maybe the third way, since I dont have a second SD card by the hand. I copy the folders and also the hidden folders to my pc. Then I create a new fresh install and copy the old files back.

    Will this also work, when I am switsching to RPi3?

  • I guess you mean you're imaging the card, writing a new card, copying everything off the fat partition, writing the image back to the card, then deleting the contents of the fat partition and putting the new files on it. That would work but it's easier - less messing about - if you can find an old usb stick down the back of the sofa.
    In theory it will also work when you're moving to a pi3. I've always started fresh going from pi to pi2 or pi3. But actually what you have now on the card should (I think) boot on a pi2 or pi3.