Monday, May 18, 2009

Putting my hard disk to sleep on Pogoplug

Out of the box, pogoplug doesn't spin down my Maxtor OneTouch Plus hard disk. Like most other hard disk drives out there, my disk is used for relatively short period of time every day. This means keeping it running wastes the electricity and produces unnecessary heat.

That situation changed with Spindown - I just installed it using the source. It requires "sg3-utils" but that's already included in Optware, so a quick "ipkg install sg3-utils" took care of that dependency. Once I've installed spindown, and edited /opt/etc/spindown.conf to manage sda and sdb (I have two disks plugged onto pogoplug), my disk stays cool and silent all day. As is, it's almost perfect - all important bases are covered. 

Of course, there's always something more, and in this case, I'd like to get software RAID 1 working - which would be really awesome. It would be even more awesome if somehow there's a way to get ZFS working but I know that won't happen anytime soon, if ever. Probably it will take less time (and work) to get BTRFS working on my pogoplug :)

4 comments:

mercado said...

Did you have to do anything else to get spindown to compile/run on the pogoplug? I've made the following changes so far to spindown-0.4 in an effort to get this working:

Makefile:
- add -shared to CFLAGS
- change 'ln -s' statements for rcX.d to 'ln -s $(ETCDIR)/init.d/spindown ..."

spindown
- comment out line with lsb/init-functions

Thanks...

Spark said...

I used:

CFLAGS =-O1 -Wl,-rpath,/opt/lib

in the Makefile.

Unknown said...

I'm also trying to compile spindown from source on my pogoplug. After installing the openpogo base system, gcc, make, perl, sg3-utils, and the source code for spindown, I modified the CFLAGS variable in the Makefile. When I run "make" I get the following error:

/opt/lib/gcc/arm-none-linux-gnueabi/4.2.3/../../../../arm-none-linux-gnueabi/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
make: *** [main.o] Error 1

Which needed package or packages have I not installed yet?

Thanks,
Bob

Spark said...

I think it's "zlib" package.