Friday, December 30, 2011

Compiling btrfs-progs on Ubuntu

I needed to compile the newest version of btrfs-progs to fix a broken btrfs filesystem.

First a little background information. I'm running Ubuntu 11.10 on an older i386. I noticed one day that I couldn't ssh into my system so I went to check on it. The caps-lock and scroll-lock keyboard lights were flashing so no Alt-SysRq-REISUB. I was forced to push the reset button.
Mount failed after the reboot with lots of parent transid verify failed messages. Lucky for me (or not) it was my home partition so I could still get some system access.

First I installed the latest mainline Ubuntu kernel available here:
http://kernel.ubuntu.com/~kernel-ppa/mainline/
To actually get btrfs-tools to compile this is what was required.

If you don't already have git installed:
apt-get install git-core


make a directory for the source and cd into it:
mkdir ~/src
cd ~/src

get the source:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git

install some compile dependencies (You may need more. Watch for errors during make.):
apt-get install zlib1g-dev libattr1-dev uuid-dev

maybe run this:
apt-get build-dep btrfs-tools

cd into the btrfs-progs source:
cd btrfs-progs

compile with make:
make && make btrs-select-super && make btrfs-zero-log


sources (sorry if I missed some):
https://btrfs.wiki.kernel.org/articles/b/t/r/Btrfs_source_repositories.html
https://btrfs.wiki.kernel.org/articles/g/e/t/Getting_started.html#Compiling_the_userspace_utilities
http://www.howtoforge.com/using-the-btrfs-filesystem-on-debian-lenny
http://www.funtoo.org/wiki/BTRFS_Fun#Recovering_an_apparent_dead_BTRFS_filesystem

Friday, May 06, 2011

Maytag Atlantis IntelliDry not working

Solution: Check for proper ground.

I recently acquired a used Maytag Atlantis dryer Model Number MDE7600AYW.
The IntelliDry Moisture Monitor "More" light was not blinking and the clothes were not getting dry.
It turned out that the dryer was not grounded. I had a four prong outlet fed by a 3 wire cable and the ground in the outlet was not hooked up. The simple fix was to connect the ground to the neutral inside the dryer. The better and code approved fix is to run a new 4 wire cable from the breaker panel to the dryer.

See here for another user with the same problem.