Menu

Corruption issues

Kapnos
2015-10-08
2016-03-15
  • Kapnos

    Kapnos - 2015-10-08

    Hi,

    I'm facing serious file corruption issues using different types of sd cards or usb flash sticks for root partition. After setting up and using raspbx it works fine for some hours and then I get the tampered modules error in dashboard. Raspberry Pi firmware is updated to latest version using rpi-update and rasp-upgrade, all modules updated to latest version, no overclocking.

     
  • Gernot

    Gernot - 2015-10-11

    Can you confirm you are running the latest 4.1.xx kernel? Just call uname -a on the console to see which kernel version is running.

     
  • Gernot

    Gernot - 2015-10-11

    The Pi 2 does seem to have problems with SD card corruption the older Pi 1 models did not have. This thread shows more details:
    https://github.com/raspberrypi/firmware/issues/397

    Unfortunately the thread does not give a final solution, one possible fix is to add dtoverlay=sdhost to /boot/cmdline.txt and update to the latest 4.1 kernels with rpi-update. I did the same here and am now testing with continuously rebooting the Pi 2.

    But it does not seem to really fix all the problems. If anyone has more information regarding this please post it here.

     

    Last edit: Gernot 2015-10-11
  • junglejet

    junglejet - 2015-10-14

    I concur same problem here, has become very problematic. System had worked before until SD card died. I am unable to find an SD card that makes it work again. SIP manager module is marked as corrupt and browser page is badly formatted. Other modules follow within a few minutes, up to 5. PBX is down since 2 days.

    Using 22/02/15 image. Same problem with and without raspbx-upgrade.

    Also, on raspbx-upgrade the 4GB disk runs out of memory, so minimum disk size is 8GB imho, which should be noted on the download page..

     
  • junglejet

    junglejet - 2015-10-14
     

    Last edit: junglejet 2015-10-14
  • Gernot

    Gernot - 2015-10-15

    I have added a note on the download page concerning the data corruption issues. This is unfortunately quite serious, I hope a fix can be found soon.

    Concerning the 4GB disk, I have been running raspbx-upgrade myself on 4GB disks ever since, and never ran out of memory. Eventually you have installed many additional packages, or there is another problem causing this.

     
  • Gernot

    Gernot - 2015-10-17

    A new modified image can be downloaded here:
    www.raspberry-asterisk.org/download/raspbx-17-10-2015.zip.torrent

    I made a few smaller improvements: The /boot/cmdline.txt contains additional kernel parameters:
    elevator=deadline fsck.repair=yes fsck.mode=force

    This also improves I/O performance on SD cards using the "elevator" IO scheduler. Additionally the /etc/fstab uses 1 for the "pass" option on both SD card partitions. With these settings a file system check is forced on every boot.
    On top the kernel is updated to 4.1.10.

    As it has been reported previously, the SD card corruption mainly appeared on frequent reboots. So I flashed this image on a new Transcend 8GB card and rebooted it in a loop about 200 times. Then I've re-run all the upgrades so there are a bunch of writes to the card. Then rebooted again in a loop many times. So far all data still seems to be fine, no curruption appeared.
    I'm also testing this image now on an older 4GB card.

    Could you download and test it as well? It would be great if you could share your results with us here.

     
    • kylix

      kylix - 2015-10-19

      It seems the download link it's not working ...

       
      • Gernot

        Gernot - 2015-10-19

        The website was under attack (again). Now its back online.

         
  • Gernot

    Gernot - 2015-10-31

    I did more tests in the meantime, but unfortunately data corruption still appears also with the latest image. It depends very much on the card being used. I had no luck at all with 2 4GB cards, after 1 or 2 days of operation there was always data corruption when rebooting the Pi. But a newer Transcend 8GB card seems to work fine so far, no problems after about one week.

     
  • ben-Nabiy Derush

    Someone else posted in one of the forums about fake cards flooding the market. I wonder how many of these issues might be related to card quality / fake cards?

     

Log in to post a comment.

MongoDB Logo MongoDB