Tag Archives: openpogo

How to recover ssh access to your pogoplug when hbmgr.sh has been removed from startup

Recently, I was tinkering with my pogoplug running openpogo and decided to comment out the hbmgr.sh line in my rcS startup file. I soon learned that  hbmgr.sh is responsible for starting dropbear and connecting your pogoplug to the my.pogoplug.com service. Because telnet was disabled and dropbear was not starting, I realized I no longer had SSH access to my pogoplug, although I could see my programs like transmission and asterisk were starting up ok.

I freaked out for a moment as I believed there was no way to recover ssh access…until I thought about it some more. Below are the steps to recover SSH access to your pogoplug running openpogo if you somehow disabled hbmgr.sh on startup:

This procedure will work with pogoplugs running openpogo, not sure if it will work for units NOT running openpogo since openpogo searches the opt/etc/init.d directory on startup to start any other scripts on boot.

PREP:
-power off the pogoplug
-download a linux live distro. Any modern live distro will do, knoppix, slitaz, ubuntu, etc.
-burn distro to cd
-boot off linux live cd
-plug in HD from pogoplug into the computer now running linux

ACCESS the HD:

-mount hard drive (you might have to open up gparted to see what device your HD is coming up as)
-start terminal
-access your hd mount
-do an ls -a (this command shows hidden files on the directory you are in. If you do not use the -a command, you will only see the directories you shared out through pogoplug).
-go into the /.opt/etc/init.d directory
-nano or vi a new file called S70ssh with ROOT permissions (otherwise you will not be able to write the file)

Enter in this line in the new file:

/etc/init.d/hbmgr.sh start

-save and exit
-chmod 777 the S70ssh file for good measure

FINISHING:
-Power down the linux system
-Plug the HD back into the Pogoplug and power cycle the unit.

After the unit restarts, the script should have run and started hbmgr.sh. Remember to delete the script S70ssh and make sure the /etc/init.d/hbmgr.sh start line is enabled or entered back into the rcS startup file.

How to fix a broken /sbin/reboot which powers off instead of reboots on openpogo

After getting my Seagate Dockstar, I experimented with installing openpogo and plugbox linux. In my attempt to install plugbox linux after I installed openpogo, and then installing openpogo over the plugbox installation, I succeeded in breaking my reboot command. Instead of a reboot when typing /sbin/reboot, the dockstar would just power off and I would have to unplug and reinsert the power plug back into the dockstar for it to power back on.

After some searching, I found that plugbox linux changes up the boot parameters using blparam. I figured that the /sbin/reboot was indeed working fine, but it would just freak out when trying to check for installed linux kernels on attached USB storage devices upon reboot. Reverting to the original bootload parameter worked for me and fixed /sbin/reboot so I didnt have to power cycle the unit by physically pulling the plug.

I didnt find this command easily by searching how to fix a broken reboot command so I figured I would post it on my blog for others who may run into the same problem.

To fix /sbin/reboot, SSH into your device, enable rw access to the file system and enter in:

/usr/local/cloudengines/bin/./blparam ‘bootcmd=run bootcmd_original’

you should be able to issue an /sbin/reboot and have it reboot like normal!