Comentários em: Tudo sobre a saúde do cartão SD no Raspberry Pi https://picockpit.com/raspberry-pi/pt/monitor-cartao-saude-de-framboesa-pi/ Mon, 13 Nov 2023 11:42:54 +0000 de hora em hora 1 https://wordpress.org/?v=6.9 Por: Raspberry Pi 5 Micro SD Card Speed | PiCockpit | Monitorize e controle o seu Raspberry Pi: grátis para até 5 Pis! https://picockpit.com/raspberry-pi/pt/monitor-cartao-saude-de-framboesa-pi/#comment-15347 Thu, 05 Oct 2023 15:52:08 +0000 https://picockpit.com/raspberry-pi/?p=504#comment-15347 […] All about SD card / microSD card health on the Raspberry Pi […]

]]>
Por: Porque é que o meu Raspberry Pi é tão lento? | PiCockpit | Monitorize e controle o seu Raspberry Pi: grátis para até 5 Pis! https://picockpit.com/raspberry-pi/pt/monitor-cartao-saude-de-framboesa-pi/#comment-14769 Tue, 15 Aug 2023 10:00:13 +0000 https://picockpit.com/raspberry-pi/?p=504#comment-14769 […] SD card health (includes best practices on taking care of your SD card!) […]

]]>
Por: unintell https://picockpit.com/raspberry-pi/pt/monitor-cartao-saude-de-framboesa-pi/#comment-2985 Qua, 09 Nov 2022 16:03:17 +0000 https://picockpit.com/raspberry-pi/?p=504#comment-2985 Em resposta a unintell.

oh, I forgot to mention that majority(but not all of them, shit.) of the cards gives SMART info via sending CMD56 command to the card w/ a 32bit int argument, you’ll need to find that magic number from the datasheet and respective data format to read the data. If you got the datasheet, then you’re basically done, check out sdmon tool on github for example code.
If the datasheet isn’t out or the magic number is not published, you’ll have to iterate the entire 31bit(the lowest bit is always 1) space of int to crack it by force, and it may take 12hours to half a month depending on your luck. I hope there’s no evil manufacturer that start their magic number with 0xF_______. For now all the magic number i’ve managed to crack/collect starts with 0x1_______.

Some cards requires a more complex routine to read out the SMART info, like Apacer, but good thing they provided necessary info in the datasheet. Apacer makes OEM card for some other brands too so the same routine applies.

]]>
Por: unintell https://picockpit.com/raspberry-pi/pt/monitor-cartao-saude-de-framboesa-pi/#comment-2984 Qua, 09 Nov 2022 15:55:32 +0000 https://picockpit.com/raspberry-pi/?p=504#comment-2984 Em resposta a Pete.

that would be impossible for normal consumer grade SD card unless you have the MP tool for the specific used controller, which is never available.
It would be possible if the card is industrial grade and have SMART info available (specified in their respective datasheet), and then you can write some code to read out the SMART data.
But this is just the beginning of the PITA. There’s no industrial standard for SD card health monitoring so every manufacturer implement the protocol differently and it’s not always published.
Some manufacturer’s SMART report only gives you a percentage number of remaining life time of the card, some provide more detailed information including reserved blocks, initial bad blocks, later bad blocks, max/min/avg erase count, P/E life time, etc.
Currently I’ve been able to read health statistics of cards from Lexar, ADATA, ATP, Sandisk, Apacer, Metorage, Delkindevices, SiliconePower, Swissbit and some more.
My motivation is to crack the SMART info from dirt cheap second hand industrial card produced by Foresee, for now I’ve been able to crack the MPS/M9M/M9H/D7D/X52/X53 series card and I’m still working on some more models.

I hope there’s a industrial standard for SD card smart info soon enough. Also I found it amusing that some SD card have higher TBW life than many SSDs lmao

]]>
Por: Pete https://picockpit.com/raspberry-pi/pt/monitor-cartao-saude-de-framboesa-pi/#comment-140 Qua, 13 Out 2021 20:27:08 +0000 https://picockpit.com/raspberry-pi/?p=504#comment-140 Hi,
is there a way to check the controller in the SD card how many bad plocks are present?
By checking this periodically I would like to build a trend chart.
Thank you for the work.
Regards,
Peter

]]>