How to Mount Your Pogoplug on Linux Automatically
I recently received a Pogoplug as a birthday gift. If you're not familiar with the Pogoplug, it is a small Linux based plug computer that allows you to share personal files over the web. You can think of it as your own personal cloud storage server. While you can always access your Pogoplug files through the web interface, it's nice to have local access to the files straight from your file manager. In this tutorial I'll show you how to mount the Pogoplug on Linux and how to get it to mount automatically when your computer boots. I'll be writing these directions for Ubuntu Linux 12.04, (I'm using Kubuntu 12.04 actually), but it should work similarly for other versions and distributions. I'm assuming that you've already plugged your Pogoplug into your router, activated it, and you can access your files through the web interface at http://my.pogoplug.com.
Finally, a word of warning. If you mess this up you could end up using all of your RAM and crashing your system. So if you're not comfortable with rescuing a broken system you may want to stop after learning to mount the Pogoplug manually.
pogoplugfs is the driver software you'll need to mount your Pogoplug as a local file system on Linux. There are two different versions of the software based on whether you're using a 32 bit or 64 bit version of Linux. If you're not sure whether you're using 32 bit or 64 bit Linux, open a terminal window and enter the command:
If you're on 64 bit, you should see something like x86_64 as a result. If you're on 32 bit Linux, you should see something like i386 or i686 as a result.
OK, now that you know your architecture, let's get started. Go to your terminal window and create a directory to work in temporarily.
Now we'll download the needed software from pogoplug.com.
For 32 bit:
For 64 bit:
Now that you've downloaded the Pogoplug file system driver, you need to put it somewhere in your executable path. You could put it somewhere under your Home directory, but I prefer to put it in a place more generic to the system. I'm going to put it under /usr/local/bin. You need to do this as root, so for Ubuntu I'll use sudo.
Create a mount point for the Pogoplug
Now you need to create a mount point for the Pogoplug. This is the location in your file system where the Pogoplug's files and folders will show up. Since Ubuntu normally mounts USB drives under /media, that seems like a good place for the Pogoplug as well.
Now make sure that the mount point is owned by the user root and the group fuse.
And finally, we need to change the permissions of the mount point.
Add your ID to the fuse group
In order to mount your Pogoplug, your ID needs to be a member of the fuse group. You can check to see if you're already a member with the groups command.
My output looks like this:
As you can see, the fuse group isn't listed, so I'll need to add myself to the fuse group.
You'll have to log out and log back in before the change takes place. (Make sure to bookmark this page so you can get back to it.) After you log back in, you can use the groups command again to verify that you're now part of the fuse group.
Mount the Pogoplug
Now that you've made the change to your group membership, you should be able to mount the Pogoplug.
Of course, make the appropriate substitutions using the email address and password you used to register your Pogoplug. If you open your file manager and navigate to /media/pogoplug, you should now see some folders. There will probably be a folder called Team Folders that will be empty. This is used if you've registered for Pogoplug's team collaboration service. If you haven't registered for that service it will just be an empty folder. The other folder will be named however you named your Pogoplug device on the Pogoplug web interface.
Mount the Pogoplug on Linux Automatically
If all you want to do is occasionally mount your Pogoplug, then you already know the command and you can just use that when you need it. I prefer to have the Pogoplug mount automatically every time I start up my computer so it's just like another hard drive on my machine.
The first thing you need to do is create a configuration file under /etc that will hold your login credentials for the Pogoplug. Create and edit the file as root using your preferred text editor. I'll use nano.
Enter the following into the file, again making the appropriate substitutions.
Use [CTRL-O] to save the file and then [CTRL-X] to exit. Now it's kind of scary having your login credentials stored in plain text, so we'll change the permissions on that file so that regular users can't read the file. Unfortunately, we'll still need the file readable by the fuse group, so it's still a bit of a security risk for your pogoplug account if someone were able to gain access to your machine. You've been warned.
sudo chown root:fuse /etc/pogoplugfs.conf
Next we're going to make a script to mount the Pogoplug. Again, use your favorite text editor.
Paste the following content into the file.
#! /bin/sh ### BEGIN INIT INFO # Provides: # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Should-Start: $named # Default-Start: 2 3 4 5 # Default-Stop: 1 # Short-Description: Mount pogoplug # Description: Mount Pogoplug with pogoplugfs ### END INIT INFO sleep 10 sudo -u YourID /usr/local/bin/pogoplugfs --mountpoint /media/pogoplug exit 0
Make sure to replace YourID with your Linux login ID. Save the file with [CTRL-O] and exit with [CTRL-X]. Now change the permissions of the script to make it executable.
Finally, we will edit /etc/rc.local to call the pogomount script during the boot process.
Now paste the following lines above the exit 0 line.
Save the file with [CTRL-O] and exit with [CTRL-X].
That's it. Your Pogoplug should automatically mount when you reboot your computer. This of course assumes that your computer is able to access the network during the boot process. If you can't get Internet access until you join a wireless network after logging in, then this won't work for you.
The sleep command in the pogomount script is there because I was having a problem on my computer where the script was trying to mount the Pogoplug before the network connection was fully up. I'm sure there's a more elegant way to handle this, but the sleep command works for me. If you find that your Pogoplug isn't mounting at boot time, try increasing the sleep time.
If you want to unmount the Pogoplug, use the following command.
To manually mount it again, use:
The nohup command will make sure that the Pogoplug stays mounted even after you close the terminal window.
To see all of the options for pogoplugfs, use
If your system is crashing, then reboot into recovery and get a root login prompt. By default you will then be in your system with read only permissions. You will need to remount the root file system with read write permission to make changes to the boot scripts. You can remount read write with
The following page was helpful in figuring this all out: http://brianhiggins.com/?p=5915
The Pogoplug is a really neat device and if you search the net you can even find them for under $30 sometimes. It's hackable and there are versions of Arch Linux and Fedora you can run on this ARM based computer. I just got another Pogoplug so I can use one unmodified and hack the other to try turning it into a media server. Have you hacked a Pogoplug or do you have plans to? What special purpose do you have in mind for it?
This content originally appeared at http://tuxtweaks.com/2013/06/mount-your-pogoplug-on-linux/