{"id":14300,"date":"2025-11-23T17:55:19","date_gmt":"2025-11-23T16:55:19","guid":{"rendered":"https:\/\/monodes.com\/predaelli\/?p=14300"},"modified":"2025-11-23T17:55:22","modified_gmt":"2025-11-23T16:55:22","slug":"fried-again","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2025\/11\/23\/fried-again\/","title":{"rendered":"Fried\u2026 again"},"content":{"rendered":"\n<p>So my aging Raspberry 3 fried yet another secure digital card. Luckily this time I was able to power it off when it was still readable but not writable so I haven&#8217;t lost data. <\/p>\n\n\n\n<p>This time I won&#8217;t buy a cheap secure digital card, I&#8217;ll go for the Western Digital Purple, which are explicitly designed for constant writes and offers wear levelling. <\/p>\n\n\n\n<p>But I  also asked <a href=\"https:\/\/search.brave.com\/search?q=linux+log+to+ram&amp;summary=1&amp;conversation=9acf53b043ac70a0655891\">Brave to search for &#8220;Linux log to ram&#8221;<\/a> and it&#8217;s AI suggested me <a href=\"https:\/\/github.com\/azlux\/log2ram\">azlux\/log2ram:<\/a><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Moving Linux system log files to RAM can significantly extend the lifespan of storage devices, particularly microSD cards used in systems like Raspberry Pi, by reducing write cycles to the physical disk. This is achieved using tools such as <a href=\"https:\/\/github.com\/azlux\/log2ram\">log2ram<\/a>, which redirects the \/var\/log directory to a RAM-based tmpfs or zram device, storing logs in memory during system operation.<\/p>\n\n\n\n<p>The <a href=\"https:\/\/github.com\/azlux\/log2ram\">log2ram<\/a> utility works by creating a mount point in RAM for \/var\/log, so log entries are written directly to RAM instead of the physical disk. This setup helps prevent excessive wear on solid-state drives (SSDs) or microSD cards, which have limited write endurance. The tool synchronizes the contents of the RAM-based log directory back to the physical disk periodically\u2014by default, once daily via a cron job\u2014and also during system shutdown to ensure logs are preserved. If a power failure occurs, logs in RAM are lost, but the system will restore the previous day&#8217;s logs from the disk upon reboot<\/p>\n<\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<!--more-->\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h1 class=\"wp-block-heading\" id=\"post-title-t3_ex7dvo\">Quick reminder that SD cards with wear-leveling are now fairly common (i.e. WD Purple microSD)<\/h1>\n\n\n\n<p><a href=\"https:\/\/www.westerndigital.com\/products\/embedded-removable-flash\/surveillance-sd-microsd-cards\">https:\/\/www.westerndigital.com\/products\/embedded-removable-flash\/surveillance-sd-microsd-cards<\/a><\/p>\n\n\n\n<p>Vast majority of SD cards do not have wear-leveling, and might keep on writing to the same blocks over and over. In the end you wear out the card, and it becomes defective.<\/p>\n\n\n\n<p>When using SD cards in servers\/computers this might become a major issue, especially if you have software running that performs large amount of write operations and\/or generates a lot of written data.<\/p>\n\n\n\n<p>SD cards with wear-leveling used to be expensive, and small in size, and were usually reserved for specialized use (i.e. industrial applications). Today, you can get a 64GB SD card with WL for as low as 15 EUR.<\/p>\n\n\n\n<p>\u2026<\/p>\n\n\n\n<p>Got the answer today (12 Feb 2020):<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>This is the statement I got back from Engineering regarding the wear leveling inquiry:<\/p>\n<\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Our WD Purple MicroSD&#8217;s do both static and dynamic wear-leveling. Meaning <strong>all blocks across whole address space are considered for wear leveling regardless<\/strong> of if and how the blocks are used. This keeps the number of program erase cycles <strong>consistent on all blocks<\/strong>.<\/p>\n<\/blockquote>\n\n\n\n<p>So yes, these cards have proper wear-leveling according to WD. Which is nice to have confirmed directly from the manufacturer.<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">So my aging Raspberry 3 fried yet another secure digital card. Luckily this time I was able to power it off when it was still readable but not writable so I haven&#8217;t lost data. This time I won&#8217;t buy a cheap secure digital card, I&#8217;ll go for the Western Digital Purple, which are explicitly designed&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2025\/11\/23\/fried-again\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":14321,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"federated","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-14300","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-senza-categoria"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2025\/11\/wd-purple-64gb.webp?fit=600%2C600&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6daft-3IE","jetpack-related-posts":[{"id":5160,"url":"https:\/\/monodes.com\/predaelli\/2019\/01\/30\/pinebook-pro-hackable-arm64-linux-laptop-for-200-bald-nerd\/","url_meta":{"origin":14300,"position":0},"title":"Pinebook Pro \u2013 Hackable ARM64 Linux Laptop for $200 | Bald Nerd","author":"Paolo Redaelli","date":"2019-01-30","format":false,"excerpt":": Pinebook Pro \u2013 Hackable ARM64 Linux Laptop for $200 | Bald Nerd It looks quite promising! Pinebook Pro\u00a0System\u00a0Specifications 14\u2033 1080p IPS LCD panel 64GB of eMMC storage Black magnesium alloy body MicroSD card slot Digital video output via USB-C Audio aux out \/ UART USB 3.0 and USB 2.0\u2026","rel":"","context":"In &quot;Hardware&quot;","block_context":{"text":"Hardware","link":"https:\/\/monodes.com\/predaelli\/category\/hardware\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2019\/01\/Pinebook-Pro-System-Board-v1-1024x768.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2019\/01\/Pinebook-Pro-System-Board-v1-1024x768.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2019\/01\/Pinebook-Pro-System-Board-v1-1024x768.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2019\/01\/Pinebook-Pro-System-Board-v1-1024x768.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":3196,"url":"https:\/\/monodes.com\/predaelli\/2017\/07\/02\/usb-flash-drive-and-wear-leveling\/","url_meta":{"origin":14300,"position":1},"title":"Usb flash drive and wear leveling","author":"Paolo Redaelli","date":"2017-07-02","format":false,"excerpt":"From: linux - How to correctly partition usb flash drive and which filesystem to choose considering wear leveling? - Super User an useful little change to fstab for usb sticks or SD attached to your ARM boards, like Raspberries or Inforce 6410: Also, in your fstab, be sure to use\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2017\/07\/wp-1462654662786-150x150.jpeg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":12136,"url":"https:\/\/monodes.com\/predaelli\/2024\/12\/19\/fuss-the-gnu-linux-distribution-for-a-digitally-sustainable-school\/","url_meta":{"origin":14300,"position":2},"title":"FUSS &#8211; The GNU\/Linux Distribution for a Digitally Sustainable School","author":"Paolo Redaelli","date":"2024-12-19","format":false,"excerpt":"FUSS The GNU\/Linux Distribution for a Digitally Sustainable School FUSS is a complete GNU\/Linux solution (server, client and desktop\/standalone) based on Debian for managing an educational network. It is at the same time also a digital sustainability project that since 2005 allows students and teachers to use at home the\u2026","rel":"","context":"In &quot;Software&quot;","block_context":{"text":"Software","link":"https:\/\/monodes.com\/predaelli\/category\/software\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2024\/12\/logo-FUSS-circle.png?fit=980%2C980&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2024\/12\/logo-FUSS-circle.png?fit=980%2C980&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2024\/12\/logo-FUSS-circle.png?fit=980%2C980&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2024\/12\/logo-FUSS-circle.png?fit=980%2C980&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":9782,"url":"https:\/\/monodes.com\/predaelli\/2022\/11\/05\/digitize-books-searchable-ocr-pdf-with-text-overlay-from-scanned-or-photographed-books-on-linux-michael-franzl\/","url_meta":{"origin":14300,"position":3},"title":"Digitize books: Searchable OCR PDF with text overlay from scanned or photographed books on Linux &#8211; Michael Franzl","author":"Paolo Redaelli","date":"2022-11-05","format":false,"excerpt":"Step-by-step tutorial to digitize books. Produce searchable OCR PDFs with a selectable text overlay from a hardcopy book using Linux free software. Source: Digitize books: Searchable OCR PDF with text overlay from scanned or photographed books on Linux - Michael Franzl","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6322,"url":"https:\/\/monodes.com\/predaelli\/2019\/12\/25\/now-even-your-business-card-can-run-linux\/","url_meta":{"origin":14300,"position":4},"title":"Now Even Your Business Card Can Run Linux","author":"Paolo Redaelli","date":"2019-12-25","format":false,"excerpt":"https:\/\/hackaday.com\/2019\/12\/24\/now-even-your-business-card-can-run-linux\/","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3266,"url":"https:\/\/monodes.com\/predaelli\/2017\/08\/11\/linux-surprises-me-linux\/","url_meta":{"origin":14300,"position":5},"title":"Linux surprises me &#8211; linux","author":"Paolo Redaelli","date":"2017-08-11","format":"link","excerpt":"https:\/\/www.reddit.com\/r\/linux\/comments\/6ssm33\/linux_surprises_me\/?st=j66o5uma&sh=0cf94ffe Today, Linux surprised me, and in itself, that's surprising. I've been using it since 1998, and switched to Linux as my primary OS around 2005, so I'm pretty familiar with its capabilities. Today though, I was working on my main desktop PC, an aging \"woodsman's axe\" box running an\u2026","rel":"","context":"In &quot;GNU\/Linux&quot;","block_context":{"text":"GNU\/Linux","link":"https:\/\/monodes.com\/predaelli\/category\/gnulinux\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/14300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=14300"}],"version-history":[{"count":2,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/14300\/revisions"}],"predecessor-version":[{"id":14322,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/14300\/revisions\/14322"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media\/14321"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=14300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=14300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=14300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}