Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Spontaneous reboots come back

    Reply
    Page 2 of 2 | Prev |   1   2 |
    wicket | # 11 | 2015-05-15, 19:41 | Report

    SD cards, like all removable media and fixed storage devices, will eventually fail. There isn't necessarily a fixed "cycle limit" that you can simply check as various factors could affect a storage device's lifetime. Put it down to wear and tear.

    Surely the obvious (possibly simplest) test if you don't have a spare SD card is to go back to eMMC swap or to disable swap for now and see if the problem persists.

    marmistrz, you seem to be running a FAT32 fsck on your swap partition. fsck won't help you to analyse a swap device. The I/O errors in dmesg do indeed suggest device failure.

    For future reference, if you want to test the SD card itself, then usual tests are to read and write to every block and see if they produce errors. I recommend doing these on a PC rather than on the N900 itself as it's normally faster and you don't have to worry about the N900's lifeguard timer resetting the device.

    Read test:

    Code:
    dd if=<device name> of=/dev/null bs=<block size>
    Write test (WARNING: This test is obviously data destructive!):

    Code:
    dd if=/dev/zero of=<device name> bs=<block size>
    A more thorough test would be to write a specific image to the SD card and then diff it with the original.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to wicket For This Useful Post:
    marmistrz, peterleinchen, reinob

     
    marmistrz | # 12 | 2015-05-16, 11:56 | Report

    So,

    Code:
    $ sudo dd if=/dev/sdb of=/dev/null bs=1M
    [sudo] password for marcin: 
    dd: error reading ‘/dev/sdb’: Input/output error
    101+1 records in
    101+1 records out
    106168320 bytes (106 MB) copied, 31,6567 s, 3,4 MB/s
    marcin@marcin ~ $ sudo dd if=/dev/sdb of=/dev/null bs=4K
    dd: error reading ‘/dev/sdb’: Input/output error
    25936+0 records in
    25936+0 records out
    106233856 bytes (106 MB) copied, 18,3356 s, 5,8 MB/s
    The test was done using an SD adapter & a uSD adapter (both at the same time)

    Is there now any need to perform the write test?

    I'm going to use my warranty now. Is such test a sufficient proof?

    /edit: or maybe I should try reformatting the whole card first?

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by marmistrz; 2015-05-16 at 12:03.

     
    Page 2 of 2 | Prev |   1   2 |
vBulletin® Version 3.8.8
Normal Logout