Reply
Thread Tools
wicket's Avatar
Posts: 634 | Thanked: 3,266 times | Joined on May 2010 @ Colombia
#11
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.
__________________
DebiaN900 - Native Debian on the N900. Deprecated in favour of Maemo Leste.

Maemo Leste for N950 and N9 (currently broken).
Devuan for N950 and N9.

Mobile devices with mainline Linux support - Help needed with documentation.

"Those who do not understand Unix are condemned to reinvent it, poorly." - Henry Spencer
 

The Following 3 Users Say Thank You to wicket For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#12
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?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

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


 
Forum Jump


All times are GMT. The time now is 07:43.