Taking your Pogoplug to the next level

I’ve already posted about the Pogoplug and the fun I’ve had with it. Now I’ll tell you how I did it, hopefully avoid my mistakes, and profit… that last part isn’t a guarantee. YOU can easily brick you pogoplug and turn it into a plastic paperweight if you don’t follow these instructions. With that said, if you shoot yourself in the foot I cannot help you and Pogoplug won’t be able to help you either.

First step is to know enough about Linux to be dangerous. If you don’t know the following commands: ls, vi, rm, chmod, cp, mv, ps, nano, get, ftp, fire up a Ubuntu Virtual Machine (instructions coming soon!), take a snapshot of the VM (kind of a backup), and test. If you blow up your machine just roll back to the previous snapshot. Learn these commands, learn to backup all files before you edit them, and know enough to stop when you are over your head.

::Picture of Pogoplug SSH::

What you’ll need to start: USB drive 4gb or larger formatted ext2 or ext3, pogoplug, our pogoplug’s IP address, the SSH password you set on pogoplug.com, an SSh client (putty for windows, terminal for OS X and Linx), and a free night. I’ve gotten a majority of my information on how to recover and protect myself from this site.

First step: Backup the config as it is right now. We want a virgin copy incase something does hit the fan and we have to rebuild the Pogoplug.

-bash-3.2# mount
rootfs on / type rootfs (rw)
/dev/root on / type jffs2 (ro)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /tmp type tmpfs (rw)
/tmp/.cemnt/sda1 on /tmp/.cemnt/mnt_sda1 type ext2 (rw,nosuid,nodev,noexec,noatime)
/tmp/.cemnt/sda2 on /tmp/.cemnt/mnt_sda2 type ext3 (rw,nosuid,nodev,noexec,noatime,data=ordered)
-bash-3.2# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 “u-boot”
mtd1: 00400000 00020000 “uImage”
mtd2: 02000000 00020000 “root”
mtd3: 0db00000 00020000 “data”
-bash-3.2# cd /tmp/.cemnt/mnt_sda2     <—- This is the mount point of your USB Drive, it may be sdb1, b2, or another. just look above for mnt_sd** line
-bash-3.2# mkdir Backup
-bash-3.2# cd Backup
-bash-3.2# dd if=/dev/mtd0 of=mtd0.img
2048+0 records in
2048+0 records out
-bash-3.2# sha1sum mtd0.img >mtd0.img.sha1
-bash-3.2# dd if=/dev/mtd1 of=mtd1.img
8192+0 records in
8192+0 records out
-bash-3.2# sha1sum mtd1.img >mtd1.img.sha1
-bash-3.2# dd if=/dev/mtd2 of=mtd2.img
65536+0 records in
65536+0 records out
-bash-3.2# sha1sum mtd2.img >mtd2.img.sha1
-bash-3.2# dd if=/dev/mtd3 of=mtd3.img
448512+0 records in
448512+0 records out
-bash-3.2# sha1sum mtd3.img >mtd3.img.sha1
-bash-3.2# /sbin/halt

What have we done? We found out that there are three mount points in our Pogoplug. We just used the “dd” command to copy them to our USB drive and then create a sha1 hash that we can use to make sure the data doesn’t corrupt moving from A to B. And we have just covered ourselves incase we screw up.

Now that we have that done, it’s time to get some new software into the Pogoplug! We’ll start of by installing optware onto the Pogoplug. Check out NSLU2-Linux for the details. Once you have optware installed onto your USB and you get to step 6 come back here… I’ll wait for ya…

So right now you should have a Pogoplug with optware and if you ran ipkg update you’d get a successul message back. next we’ll install a program called Nano. It’s a text editor similar to vi but it’s much easier to use for Linux newbies ipkg install nano . Now if we need to edit a file we’ll just type in nano file.name and this will start use editing file.name, feel free to check it out and get comfortable with the UI.

Next posting we will install transmission torrent client and samba2 for local file shares.

This entry was posted in Uncategorized and tagged , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>