Sitemap
Jeremy Whitman

Jeremy Whitman

Comic, writer, gun for hire.

4 min readOct 31, 2014

Press enter or click to view image in full size

pain in my ass

(LAW ) || Linux War Journal

The Battle of EDAC MC Zero

Rough day today, got off on a tear attempting to get rid of an EDAC MC0 error that refused to Die Hard With A Vengeance.

ElementaryOS has been bitching for some time that I have a bad bit of RAM by assaulting virtual terminals with this gem…

Oct 27 06:21:27 dt kernel: [20398.956021] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels “-”: NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
Oct 27 06:21:28 dt kernel: [20399.956023] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels “-”: NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
Oct 27 06:21:29 dt kernel: [20400.956017] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels “-”: NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))

I’m actually being a bit gracious, as here in real life there wasn't any white-space, and this error generated about once a second, making even logging in a huge pain.

I Googled to no end to find a way to suppress the error output, but no luck.

There are lots of ways to stop Linux from spamming a long complicated makes no human sense error message to TTY1 through TTY6, but for some reason none of them work on my system at the moment, probably because I’m logged in, or, more likely….due to a systemd implementation somewhere in North Africa practicing black magic….

Having reached the point of seriously considering just removing anything to do with EDAC. Then I thought up a more rational solution and threw chair.

sudo flip --the --fuck --out

The real (arguably horrible) solution ended up being to yank my first stick of RAM. Luckily there was lot of room available for hardware tooling, as my desk chair was across the room.

RAM gone, error gone. Good times, even if I still can’t for the life of me get dmesg -D to work.

Hours later I put the allegedly bad RAM back into a different slot and the error never returned. This is the technological equivelent of jiggling the handle, if that were to take about 8 hours.

Get Jeremy Whitman’s stories in your inbox

Join Medium for free to get updates from this writer.

Once that was done, and the chair back in place got back to what I orignally set down to do and put together a very simple script to get ElementaryOS into a working condition faster on a new install:

#!/bin/bash## upgrade the system
sudo apt-get update ; sudo apt-get upgrade ; sudo apt-get dist-upgrade
## add elementary tweaks
sudo apt-add-repository ppa:versable/elementary-update -y ; sudo apt-get update ; sudo apt-get install elementary-tweaks ; sudo apt-get install elementary-wallpaper-collection ; sudo apt-get install wingpanel-slim super-wingpanel ; sudo apt-get install elementary-.*-theme elementary-.*-icons
## add indicator-synapse search
sudo apt-get install indicator-synapse ;
## add chrome (comment out next line and uncomment next comment for 32 bit)
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb ; sudo gdebi google-chrome-stable_current_amd64.deb
#wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb ; sudo gdebi google-chrome-stable_current_i386.deb
#install VLC
sudo apt-get install vlc
#install more archive formats
sudo apt-get install unace rar unrar p7zip-rar p7zip sharutils uudeview mpack lha arj cabextract lzip lunzip
#install transmission
sudo apt-get install transmission
#show hidden startup applications
sudo sed -i ‘s/NoDisplay=true/NoDisplay=false/g’ /etc/xdg/autostart/*.desktop
#cleanups
sudo apt-get autoremove ; sudo apt-get autoclean ; echo “End of Script, Please Reboot System”

This is based on this questionable list of tasks to preform after installing Elementary. A few of the steps have been skipped because I don’t find them to be useful, but if one wanted to not copy and paste all these commands in after a fresh install here is what I suggest you do after you install ElementaryOS.

First, whack open a terminal window with alt+control+t, and then start typing…

mkdir bin
cd bin
touch elmsteps
chmod u+x elmsteps
sudo reboot

Once that file is in place open it with scratch and paste in the script above and save. Now then, back to the terminal.

elmsteps

Enter your password and then get on with your day as you wait for ElementaryOS to get up to speed.

Once that’s done go ahead and reboot. Now you have and uptodate version of pretty desktop Linux and VLC and some other stuff.

Or don’t do any of that. I don’t care. I’m off to throw a chair.