I would like to find out how many write cycles I can get from my SD card.
I have googled and found good answers like this but its too complicated for a normal person like me.
Say its a 64GB exfat formatted card.
Isn't it possible to just write a large 59GB random file to it. Delete it. Make a count. And repeat the whole cycle, until the card fails (I am assuming something will finally prevent a write operation).
I guess a 59GB random file can be created like this:
dd if=/dev/urandom of=/dev/sdd1/file.txt bs=61865984 count=1024
Delete the file:
I am not sure how to do the count operation or do the loop or whether putting it in a .sh file has other syntax/restrictions. Could you please help me with this?
Is my above idea ok (acceptable). I am not trying to be perfect.
Also is there some ready software/script that does this?
(I understand for this I will need to leave the PC on for several months, but I am ok with that. Or maybe when I run the script after a reboot, it will only add to the previous count.)
Thank You. :-).
PS: Why I am doing this - I find that there are huge capacity microsd cards available from oem/no name brands which are quite cheap compared to good brand cards. People say that these cards are unreliable. I just wanted to see how bad they actually were. Practically what I thought was - In 5 years I might write a total of 1TB to a card. That is just 17 cycles! Which I guess even the worst card might be able to do. :-)............