Skip to header Skip to main navigation Skip to main content Skip to footer

Search form

Site branding

Home
What's up, home?

Main navigation

  • Home
  • Story mode
  • About
  • Features
  • Hardware list
  • Videos
  • GitHub (opens in new tab)
  • Daily AI generated stories (opens in new tab)

My Raspberry Pi is back in good shape

Breadcrumbs

Breadcrumb

  • Home
  • My Raspberry Pi is back in good shape

Main page content

By whatsuphome | 1:13 PM EET, Fri December 01, 2023

TL;DR

My Raspberry Pi's SD card was causing I/O wait times of 8 to 9 seconds on average. I used ddrescue to clone the existing image to a brand-new card, then reinstalled corrupted Python packages with aptitude. The result was a dramatic drop in I/O wait times

This is the difference in I/O wait times after I replaced the faulty Raspberry Pi memory card to brand new one.

I/O wait request time graph

 

So, from about 8-9 seconds AVERAGES to back almost non-existent! Yay!

Steps taken to restore

  • Insert the memory card into my Linux laptops memory card reader
  • Read the image with ddrescue /dev/mmcblk0 whatsuphome-rpi.img
  • Write image to new card with dd if=whatsuphome-rpi.img of=/dev/mmcblk0
  • Boot the system, notice that my Python scripts did not work due some problems in Python installation itself, probably some corrupted files in the image
  • To fix that, reinstall all the packages with sudo aptitude reinstall '-i'

Done! All seems to be good now. My Home Assistant is up, Zabbix is up, Grafana is up, custom scripts are working. It helped that everything critical is on external USB drive, the memory card pretty much has only the OS.

whatsuphome
developmentnews
raspberrypi4
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
My Raspberry Pi's SD card was causing I/O wait times of 8 to 9 seconds on average. I used ddrescue to clone the existing image to a brand-new card, then reinstalled corrupted Python packages with aptitude. The result was a dramatic drop in I/O wait times

Search

Who am I?

  • Janne Pikkarainen from Finland 🇫🇮
  • Began with computers in 1986 with C64
  • Doing IT for living since 1999
  • Principal Site Reliability Engineer at Forcepoint
  • A Zabbix Summit speaker every year since 2022
  • Walking, talking Zabbix commercial

Support my project

Buy me a coffee 

Footer menu

  • Contact

What's up, home? | Janne Pikkarainen | contact(at)whatsuphome.fi | 2022 - 2026

Developed and Designed by Janne Pikkarainen