Wednesday, November 6, 2013

How to Install Optware and SAMBA on the Pogoplug

In this tutorial, I'm going to show you how to install optware and samba on your Pogoplug to create a cheap and simple NAS.

Last Updated - 4/22/2015

Why do you want to do this?

I'm a big fan of the my.pogoplug.com service that comes with the Pogoplug. It allows you to easily access your files from the web or your mobile device and even allows you to share your content with friends and family. Not to mention, the great automatic iPhone/Android photostream backup feature and remote mp3 playback.

However, one thing the Pogoplug lacks is a simple and fast way to access your content on your local network; you need to install additional software on your MAC/PC and content can be slow to access and upload because the data go through the Pogoplug cloud.

This tutorial will show you how to extend the functionality of the Pogoplug (existing my.pogoplug.com service is not affected), adding SAMBA (Windows File Sharing) support which doesn't require additional software to be installed on your PC/MAC and faster access to your content.

What is optware?

Optware is a package manager that allows you to install additional software on your embedded linux device such as the Pogoplug (think of it as a free little "App Store"), while maintaining the stock my.pogoplug.com functionality.

Requirements:

1) Pogoplug - V2 such as the E02, V3 (oxnas) such as the Pogoplug P21/P22/Pogoplug Pro or the V4, also known as the Series 4 and Mobile. Pretty much any existing Pogoplug model is supported.
2) USB Hard Drive - 2TB or less recommended.

Outline of Steps:

1) SSH into Pogoplug
2) Partition and Format USB Hard Drive
3) Install Optware
4) Install SAMBA
5) Make sure everything works after a reboot

SSH into Pogoplug

In some cases, you can directly ssh into your Pogoplug. In other cases, you have to activate the Pogoplug on my.pogoplug.com and then enable SSH via their website. For the Pogoplug E02 (and potential other models), if you haven't activated your Pogoplug (new out of the box), you should be able to SSH into it using root/ceadmin as the username/password. If you have activated it, you'll need to enable SSH via my.pogoplug.com and set your own username and password. On the Pogoplug Mobile, I had to activate and then enable SSH. If you don't see the option to enable SSH, try rebooting your Pogoplug.

For the Pogoplug V4 (Mobile and Series 4) and the Pogoplug Pro, you can use the backdoor method documented in my other blog post here versus activating on the my.pogoplug.com site - http://blog.qnology.com/2014/07/hacking-pogoplug-v4-series-4-and-mobile.html.

SSH into Pogoplug using Putty or similar app

Partition and Format USB Hard Drive

Plug in your USB Hard Drive to your Pogoplug.

#stop my.pogoplug.com service
killall hbwd

#partition drive
#create two partitions, a small 4GB partition
#for optware and the rest for your data
busybox fdisk /dev/sda

# Type in the following commands to erase
# and re-partition the USB Hard Drive 
#(WARNING - USB HARD DRIVE WILL BE COMPLETELY WIPED)

# p # list current partitions
# o # to delete all partitions
#
# Create 1st Partition for Optware
#
# n # new partition
# p # primary partition
# 1 (one) # first partition
# <enter> # default start block
# +4G # to create a 4GB partition

# Create 2nd Partition for Data
#
# n       # new partition
# p       # primary partition
# <enter> # default to second partition
# <enter> # default start block
# <enter> # default end block #use the whole flash drive
# w       # write new partition to disk

#download mke2fs to format partition
cd /tmp
chmod +x mke2fs

#format and label partition
./mke2fs -L optware -j /dev/sda1
./mke2fs -L data -j /dev/sda2

#remount root to be writable
mount -o remount,rw /

#create /opt folder
mkdir /opt

#mount usb drive as /opt
mount /dev/sda1 /opt


Install Optware

###########################################
# Install optware ipkg (package manager)
# Assumes /opt is mounted at this point
###########################################

#download ipkg
cd /opt
tar -xzvf plug.tar.gz
rm plug.tar.gz

# Setup profile
cd /etc
chmod 755 profile
source /etc/profile

#update available packages
ipkg update


Install Samba

ipkg install samba36 libnsl nano

#download example smb.conf
cd /opt/etc/samba

#Edit smb.conf (optional)
#to add additional samba shares
#nano /opt/etc/samba/smb.conf

#Start SAMBA
/opt/etc/init.d/S08samba start

You should now be able to access your Pogoplug's USB Hard Drive by \\pogoplug\usb or \\IPAddress\usb


Make sure everything works after a reboot

#backup original rcS startup file
#restore the rcS.original file to revert
cp /etc/init.d/rcS /etc/init.d/rcS.original

#download mount script and make it executable
cd /etc/init.d
chmod +x mount_optext3

#add mount script to rcS file so it 
#runs automatically after a reboot
#this script will mount /opt
#the data partition is automatically mounted by the pogoplug software
echo "/etc/init.d/mount_optext3" >> /etc/init.d/rcS

#start samba on reboot
echo "/opt/etc/init.d/S08samba start" >>  /etc/init.d/rcS

reboot

Adding an Additional/Second USB Hard Drive

1) Attach additional USB Drive to Pogoplug.

2) Partition additional USB Drive. See "Partition and Format USB Hard Drive" section, but just create one partition.

  busybox fdisk /dev/sdb

3) Format and Label additional USB Drive

    ./mke2fs -L data2 -j /dev/sdb1

4) Remount root to be writable

   mount -o remount,rw /

4) Edit the smb.conf file and add an additional section that is similar to the "[usb]" section.

   nano /opt/etc/samba/smb.conf

[usb2]
  path = /tmp/.cemnt/mnt_sdb1/
  read only = no
  public = yes
  writable = yes
  guest ok = yes

5) Reboot. You should now be able to access the additional drive as \\pogoplug\usb2


Miscellaneous Notes

On the Pogoplug V2 (E02) and Pogoplug v4 (Mobile and Series), you can actually use one of the internal flash partition for /opt. Only recommended for more advanced users.

Edit 4/22/2015 - The below instructions for the Pogoplug V4 will also work on the Pogoplug Pro.

Pogoplug V4 - Optware and SAMBA on NAND (Internal Flash)

The below instructions are for the E02.

The E02 has a small partition (~90MB) that isn't used - MTD3, which is just enough for Optware and SAMBA.

####################################
# Pogoplug V2 - Use internal flash partition for /opt
####################################
#remount root to be writable
mount -o remount,rw /

#create /opt folder
mkdir /opt

#erase mtdblock3
cd /tmp
wget http://download.doozan.com/uboot/flash_eraseall
echo "/dev/mtd0 0xc0000 0x20000 0x20000">/etc/fw_env.config
/tmp/flash_eraseall /dev/mtd3


#mount internal flash partition as /opt
mount /dev/mtdblock3 /opt



Changes to above instructions if using internal flash for /opt
- only one partition needed on your USB hard drive
- "Install Optware" and "Install Samba" instructions unchanged
- modify the smb.conf file for correct partition
     path = /tmp/.cemnt/mnt_sda1/
- In the "Make sure everything works after a reboot" section, you don't need the mount_optext3 script
- Add the "mount /dev/mtdblock3 /opt" command before the "/opt/etc/init.d/S08samba start" command in the /etc/init.d/rcS file.

Troubleshooting

/opt not mounting - check the content of the /etc/init.d/rcS file and make sure /etc/init.d/mount_optext3 is called. Also double check that the /etc/init.d/mount_optext3 file exist and is executable. Minimize the number of attached USB drives

samba not working (\\pogoplug\usb not accessible) - double check that /opt is mounted correctly. Make sure that "/opt/etc/init.d/S08samba start" is the last line in the /etc/init.d/rcS file. Verify that the /opt/etc/samba/smb.conf exist.

data partition not mounted - the data partition is automatically mounted by the pogoplug software to something like /tmp/.cemnt/mnt_sda2. Run the "df -h" command to see what's mounted. Check the /etc/init.d/rcS file to make sure the pogoplug software start command ("/etc/init.d/hbmgr.sh start") isn't commented out (begins with #).


Future Updates

I'll be flushing this tutorial with additional howtos in the near future. Please leave a comment and what you would like to see added.


87 comments :

  1. Thanks for the tutorial. I was able to get it working on a 2gb flash drive. Now I would like to attach an external hard drive so that it also shows up under Pogoplug on the network, how would I do that? Thanks

    ReplyDelete
    Replies
    1. My recommendation would be to skip using the 2GB flash drive and following the tutorial.

      Delete
    2. This tutorial for a series 4, optware/samba shows how to install to a flash drive:
      http://www.powerbasic.com/support/pbforums/showthread.php?t=51706
      There's a section that shows his smb.conf file - i was able to use that to make all the harddrives show up through samba after booting from the sdcard.

      Delete
  2. Thanks, I able to install samba, how do I install a web server without formatting the usb drive

    ReplyDelete
    Replies
    1. Hi Danilo,

      Great question. Take a look at the available optware packages here - http://www.nslu2-linux.org/wiki/Optware/Packages?from=Unslung.Packages

      I don't have experience running a webserver installed via optware, so I can not recommend any particular one.

      This link might help you - http://www.nslu2-linux.org/wiki/HowTo/DeployPHPWebAppUsingFastCGI

      Delete
    2. I do not know UNIX, but could you post how to add additional usb drives without formatting the existing ones. Thank you for all your help.

      Delete
  3. Thanks for your tutorial!
    I installed optware on my external hard disk. since it was preformatted for NTFS, I preferred having an extra 100GB Linux native partition for local data, since I didn't know how well this would work out with NTFS for local Unix usage.

    Do you have any experience with using Paragon's NTFS driver for local unix usage, including all the Unix details - case sensitivity, permissions, etc.?

    ReplyDelete
    Replies
    1. Sorry no I don't have any experience with the Paragon's NTFS driver.

      However, I believe the Pogoplug includes the opensource NTFS-3G drivers out of the box.

      Delete
  4. Thanks for this. Followed it and got my pogoplug running. Did it mainly for installing rsync but may consider samba since its available now.

    ReplyDelete
  5. Great tutorial again from Qui Hong! Did anyone try this on a oxnas with the internal SATA already? I am thinking about using a USB stick for the optware and a SATA HDD for data. That´d make a very nice little fileserver. Side question: does anyone know if the stock pogo software recognize the SATA and the files show up on the pogo iphone/android app?

    ReplyDelete
    Replies
    1. Hey Dirk, Thanks! The stock Pogoplug software should have no issues recognizing the SATA attached hard drive.

      Delete
  6. I can see my Pogoplug in my networks on my Windows computer. I click on it and there is a folder called "usb". So far so good, but when I click on the folder "usb" it says "Windows cannot access \\POGOPLUG\usb". Do I need to edit the smb.conf file?

    ReplyDelete
    Replies
    1. Hi Jason,

      No you should not need to modify the smb.conf (it's optional if you want to secure/rename, etc).

      \\pogoplug\usb is mapped to /tmp/.cemnt/mnt_sda2 - second partition on the first hard drive. Did you follow my tutorial exactly? Thanks

      Qui

      Delete
    2. Yeah I followed everything to the "t". I tried to go to the location /tmp/.cemnt/mnt_sda2 and I get
      -bash: /tmp/.cemnt/mnt_sda2: No such file or directory
      How would I mount that again?

      Delete
    3. Hi Jason,

      Sounds like you have an issue with your formatting/partitioning of your USB Hard Drive (you are using a USB HD right?).

      The tutorial instructs you to create two partitions on your HD and format them. The first partition (sda1) is for optware (mounted as /opt by the mount_optext3 script added to the rcS startup file, and also mounted as /tmp/.cemnt/mnt_sda1 by the pogoplug software). We know that this is properly mounted and working because SAMBA is running.

      However, it doesn't sound like the second partition for your data is mounted. The data partition should be automounted by the Pogoplug software.

      My recommendation would be to confirm that you partition your USB Drive correct and that it's formatted correctly.

      Run "fdisk /dev/sda -l" - you should see two partitions listed, /dev/sda1 and /dev/sda2.

      The simple solution here is to re-do "Partition and Format USB Hard Drive" section.

      Delete
    4. I got it all to work. I think since I followed other instructions and removed the pogoplug software the hard drive wasn't mounting to /tmp/.cemnt/mnt_sda1. I was able to edit the smb.conf file and mount the hard drive to a different location and now I can access it. I was even able to map my printers scan folder to the drive and can scan directly to the shared drive.

      Thanks Qui!

      Delete
  7. I have a 3tb drive that I'm trying to use but it only shows 1.96tb in windows. After some searching, it seems the drive needs to be GPT formatted but I have very little Linux experience and cant figure it out. Any help on how to GPT format the drive or using a different way to access the entire drive?

    ReplyDelete
    Replies
    1. Sorry I don't have a 3TB USB drive. I'm sure there are plenty of instructions out there on how to properly format the drive properly.

      Delete
  8. Works great! One question, how do I add an additional external usb (3.0) hard drive? Thank you for the tutorial!

    ReplyDelete
    Replies
    1. I've added instructions on adding an additional drive. I'll flush it out in the near future. Please let me know if it's clear enough for you.

      Delete
    2. Thank you so much, now I have some ideal storage capacity. Thank you for teaching us all and the instructions were great.

      Delete
  9. Hi Qui Hong,
    I am a newbie and feel a bit confused : I plan to use my pogoplug E2 as a simple NAS.
    I see 2 different tutorials to have SAMBA installed :
    - The archlinux install (long way, seems difficult to me)
    - The optware install (easier way, if I understand, that keeps the pogoplug built in "linux")
    What are the pro and cons of these 2 methods?

    ReplyDelete
    Replies
    1. Hi Vincent,

      Great question!

      It really comes down to what you want to do with your Pogoplug, how much effort you want to put into it and if you have a supported Pogoplug model.

      The optware tutorial, as you pointed out is "easier" and meant for people looking for the simplest way to add SAMBA or "simple NAS" support to their Pogoplug and/or for people who don't have a Pogoplug that is supported by Arch Linux (V3/Oxnas).

      Since you have a E02, my recommendation would be to go with Arch Linux. Even though it's a little bit more involved, Arch Linux provides more features and worth the additional effort required. You can always fall back to optware if Arch Linux ends up being too complex.

      Delete
    2. Thank you very much for the quick answer,
      I'll go with ALARM as soon as I receive my 1TB usb hard drive...
      Thanks to your excellent tutorials :)

      Delete
  10. I would like to see a HowTo on how yo add additional USB drives without having to format. Especially 3 TB hard drives. I have a 3TB HD and I want it on a NAS but I do not want to format it and I have no where to move all its data to.

    ReplyDelete
    Replies
    1. Try following the instructions for adding an additional usb drive, but skip the partitioning/formatting part. In theory it should work. Let me know how it goes.

      Delete
    2. I was able to get it working without reformatting (after much trial and error). Thanks for the great tutorial. One other thing I would like to see if to make the USB shares password protected and disable guest access. To disable guest access I think we would just go to the smb.conf file and change the "guest ok =" to "no". But I do not know how to make it password protected so only I could access it.

      Delete
  11. I love the tutorial and it worked great for one HD that I attached. However, when I attempted to add a second drive to the sdc1 slot, updated the smb.conf file appropriately, and rebooted, it cycles through all the attached drives, does not recognize the flash drive that had the /opt and therefore, doesn't recognize and startup samba.

    However, if I remove all HD drives, leave the flash drive in, then reboot, it will load Samba. And only then can I attach the 1st and 2nd hard drives back in which will allow it to be recognized appropriately.

    I have gone so far as to repeat the tutorial several times and reformatting the USB flash drive, but without success. Obviously, I would like to not have to plug and unplug the HD drives when the power goes out and the system has to reboot. (This decreases the wife-acceptability-factor (WAF), especially if she needs to load a movie for the kids and it is non-functioning.)

    I feel that maybe the rCS file may be the culprit. Do you have a link to show me how the rCS file is supposed to look? Any other clues? I admittedly know nothing about Linux, but appreciate any help!

    Thanks!

    ReplyDelete
    Replies
    1. The content of the rCS file is simple. It should have two additional lines, one to mount /opt (mount_optext3) and one start samba.

      If samba isn't starting, then most likely you're having issues mounting the /opt folder which is handled by the "/etc/init.d/mount_optext3" script. I didn't write the script, but it's fairly simple logic.

      My recommendation would be to simplify things by removing your USB flash drive and follow the tutorial to setup the /opt partition on one of your USB Hard Drives.

      Please keep me updated on your progress.

      Delete
    2. Thanks for the advice.

      What I ended up doing is switching around the USB flash drive to a different USB port and playing around with the sda1, sda2, sdb1, etc., distinctions. For whatever reason, it doesn't seem like the pogoplug reads the USB ports in the same order or at the same speed. It seems odd, but by putting the USB flash drive in a certain port, and the USB HD in the other ports, upon reboot, it will mount the sda1 properly as /opt and the SAMBA will load. Change it around, and no such luck.

      Anyway to get it to load consistently the same way through a certain command?

      Delete
    3. Correct, the Pogoplug reads the USB port in different order and that can't be controlled, hence my recommendation to simplify things by removing the USB flash drive.

      The bottom usb port (closest to the Ethernet port) typically is the first port to be scanned, however that is not guaranteed.

      Delete
    4. Hi,

      I hate to rehash an old subject, but I found a tutorial on keeping the USB mounts persistent on the Pogoplug. However, I am by no way an expert around Linux, so I wouldn't even know where to start when it comes to these instructions. Have you seen this tutorial, and if so, are you able to simply or modify the instructions to fit your tutorial? Perhaps this may not even work.

      http://www.leeandcathy.com/2011/10/persistent-usb-mount-locations-on.html

      Also, I have found that after several days of both the Pogoplug and SAMBA working well, the SAMBA will stop working, and I find myself having to go back to "terminal" to restart SAMBA. The problem is not getting the Samba to start or the Opt to mount, but it keeping it working. I don't know if uploading the pogoplug via web or smartphone/iPhone or uploading a large file shuts off or kills the samba program. Is it an indexing function that causes it to kill SAMBA? Any insight would be appreciated! (As it certainly reduces the "wife-acceptability-factor" when it comes to streaming movies to various parts of the house.)

      Thanks.

      Delete
  12. So I had my PogoPlug V4 running Samba and two logitech hard drives attached w/ a total of 5TB of space and the Samba software mounted on the top USB port with the Sandisk USB drive. Everything was going well for about over a month but now all of the sudden I can no longer access the drive on the usual smb://pogoplug location. I can still access it using the my.pogoplug website though. Any idea what the problem might be and how I can fix it?

    ReplyDelete
    Replies
    1. Most likely your /opt partition isn't mounting and hence samba isn't starting.

      Please read my comments above for hints.

      Delete
    2. I've updated the "Miscellaneous Notes" section. You may want to give it a try.

      Delete
  13. i have installed samba n optware.
    i now want to be able to connect my USB printer to pogoplug adn access it over network.
    also, if i wish to use another HDD, cant i just plug and play?

    ReplyDelete
    Replies
    1. Sorry, printing is not covered in this tutorial. I'll consider updating the tutorial to include it in the future.

      For adding an additional hard drive please see the "Adding an Additional/Second USB Hard Drive" section.

      Delete
  14. HI,
    I've pogoplug V4-A1-01 which i've followed this tutorial with 2TB seagate disk. but nothing is happening with my PP. i'm not seeing my USB drive when I do \\pogoplug\usb from my computer. I exactly followed your tutorial.

    ReplyDelete
    Replies
    1. Sorry for the late reply. Please check the Troubleshooting section.

      Delete
  15. Hi Qui, thanks again. I finally found the time to dig out my Oxnas and was following these steps and also have problems with mounting the data partition. Samba is running and Pogoplug shows up. Will investigate more and report here. One thing that came to my mind was, that some users might be interested in how to revert back to stock by deleting all unneccessary stuff on the internal flash and editing the rcS.

    ReplyDelete
    Replies
    1. Hi Dirk,

      I've added a troubleshooting section. Please take a look. Note that the data partition is automatically mounted by the Pogoplug software. Reverting back to stock is a simple procedure, just delete the modified rcS file and rename the rcS.original file to rcS.

      Delete
  16. Hi Qui!

    Do you know is possible to upload files from a Pogoplug Attached USB DISK to Pogoplug's Cloud via ssh? My purpose is to backup some huge video files without needing to have PC turned on all day long.

    ReplyDelete
  17. Hello,
    I keep getting " HTTPS support not compiled in." when I try to download "http://dl.dropbox.com/u/42238/pogoplug/optware/mke2fs
    HTTPS support not compiled in."
    Has something changed recently?

    ReplyDelete
    Replies
    1. Yes something did change. Dropbox is now redirecting http urls to https urls. However, the wget provided by busybox in the default Pogoplug OS doesn't support https. I need to find a new place to host the files that is http only. Will look at using one of my VPS later this week. For now, you can download the files locally and run a http web server like mongoose on your PC and then wget it from your local pc.

      Delete
    2. Qui,
      Thanks for the quick reply, I will try that. I really appreciate all the work you have put in to this. I'm new to Linux and have been looking for something to run a server on that I can just leave hooked up to a router. These plug boxes seem to be just what I'm looking for. I have hooked a couple of them up with usb and it is interesting to see all the processes going on.
      Rob

      Delete
    3. FYI - I've updated all the links which now points to my own webserver versus dropbox.

      Delete
    4. Thank you very much. I'm so new at some of this if something goes wrong I'm not sure if it is me not doing something right or something else. I see my files showing up in a Z drive on a network share. With these devices (at least the mobile one) being so cheap right now, looks like lots of projects in my future with them. I did manage to screw up one of them, so one of those projects is to figure out how to reinstall the boot program.

      Delete
  18. Thank you so much! I was able to get my Pogoplug visible on my network following this tutorial, and I know nothing about SAMBA or optware. My next question is, is it possible to access the drive now attached to the Pogoplug over the internet? Is there anything I have to do besides forward some ports? And if not, how do I figure out what ports need to be forwarded? Thanks again!

    ReplyDelete
    Replies
    1. You're welcome. What this tutorial does is provide you a better way of access your hard drive locally. It has no effect on the functionality of the Pogoplug over the internet. That remains the same. I don't believe forwarding any ports is needed. Just read the Pogoplug manual or whatever documentation they provide. That is outside the scope of this tutorial.

      Delete
  19. Hi Qui,

    thanks for your tutorial.

    I am a newbie but still managed to install Optware and Samba on my Pogo and was able to access the HDD via LAN.
    Yesterday evening I unplugged my Pogo since it is in my sleeping room and LED of my HDD is pretty bright. This morning I plugged it in again and left for work. At work I opened pogoplug.com only to see that my HDD is not recognized by the Pogo even though it is attached.

    Have I done somethiong wrong? Is it neccessary to attach the HDD for booting or could I attach it after booting and still use SAMBA and the LAN access?

    Thx,
    Tim

    ReplyDelete
    Replies
    1. First, I wouldn't recommend randomly powering off the Pogoplug (or any computer) without properly shutting it down so that the hard drive can be unmounted cleanly. I believe the my.pogoplug.com webpage has a "eject" or "unmount" option somewhere. Sorry I never unmount my drive so not totally sure.

      So yes, you did something wrong. You might have corrupted your HD by not correctly powering down your Pogoplug. SAMBA is installed on the hard drive, so yes, the hard drive would need to be attach before booting for SAMBA/LAN access to work.

      Delete
  20. Hi, great tutorial. I was able to get samba. I had following questions/dobuts-

    1. How is samba performance on native OS vs ALARM OS ?
    2. The pogoplug is connected to a Belkin N150 Wireless Router over base 100 ethernet. A laptop connected to same router shows 400 kB/s transfer speeds, when laptop is just 6 feet away. However at the same distance, WiFi Adapter Settings report 150Mbps stable link with full bars. Also if I do an internet speedtest, I get 30 - 50 Mbps for comcast. So despite of 150 Mbps link between Laptop-Router, why samba speeds are in kB/s ?
    3. If I move closer to router, like sit right next to it, speed bumps upto 3 MB/s
    4. If I connect laptop with ethernet, speed goes up to 11.6 MB/s, pleasant maximum of 100 base!

    So what's wrong with wireless, I should at least get 6-8 MB/s, right ? Anything you can suggest to improve ?

    ReplyDelete
    Replies
    1. One more thing I noticed-
      If I get disconnected from network, then connect back and then do a refresh in //pogoplug/samba or //ip_address/samba, takes quite a while to refresh :(

      Delete
    2. ALARM using SAMBA4 which is slightly faster versus SAMBA3 on optware.

      Delete
  21. Help needed with NTP/Date!
    All files I copied over samba had 1999 year date, weird. Google search told me that pogoplug does not have RTC. Tried to follow half a dozen tutorials on setting up ntp / ntpd but could not get it to set date :( please please help.

    At the moment, used date -s to setup manually, but need automatic update !

    ReplyDelete
    Replies
    1. Does your device have internet access. I'm fairly certain time would be set automatically. SAMBA would use the system time, so contact Pogoplug/Cloud Engine Support for you issue.

      Delete
  22. One to make this boot via SD card I have made some suggestions here, right now updating with use of USB hub. This also solves problem around flaky Pogoplug s/w which many times errors out....

    Install Samba on Pogoplug SD card USB hub

    ReplyDelete
    Replies
    1. Not sure what the point would be. If you're install SAMBA, then you're using a hard drive so why not put optware on the hard drive? Otherwise, just install optware on the internal flash.

      Delete
    2. This comment has been removed by the author.

      Delete
    3. This is what i see as benefits:

      1. Keeps packages separate from data, allowing space for further packages such as aria see (internal flash is to less) : Dedicated server for downloading
      2. Allows use of SD card slot
      3. Easy to format / change hard drives without affecting packages(sometimes i need to carry one of the hard drives with me and when I get back i can plug it in)
      4. No need to mess with partitions..

      It's just convenience and separation, technically you don't need to though... i agree

      Delete
  23. Thank you Qui for the post!

    I installed using a PNY 16GB micro thumb drive. I was able to see the PogoPlug device and USB from a Windows PC when I mounted /opt and loaded Samba manually. However, they would not load from the /etc/init.d/rcS file. Being more adventurous than smart, I thought the PogoPlug software may be hindering /opt from mounting and Samba from loading in /etc/init.d/rcS, so I commented out "/etc/init.d/hbmgr.sh start" and rebooted. Now the green light is flashing and I cannot ssh into the PogoPlug. The PogoPlug appears to be up and running at the same IP address on my LAN as before and I can ping it by IP address. Any thoughts on how to regain ssh access so I can uncomment "/etc/init.d/hbmgr.sh start"?

    Thank you in advance for your thoughts, comments, advice and words of wisdom!

    ReplyDelete
    Replies
    1. What Pogoplug model exactly?

      Delete
    2. Hi Scott,

      Try the backdoor method mentioned in my other tutorial - http://blog.qnology.com/2015/04/hacking-pogoplug-v3oxnas-proclassic.html

      Delete
    3. Forgot to mention, otherwise setup a serial connection - http://blog.qnology.com/2013/10/pogoplug-e02-v2-serial-connection.html

      Delete
    4. This comment has been removed by the author.

      Delete
    5. I tried the backdoor method but I got a "could not connect" message, so I am going to try the serial connection. This will make it the system console, correct?

      Delete
    6. Qui, I got my USB Serial device and Soundblaster cable today. I hooked them up to the PogoPlug and the computer and I was able to directly connect using Putty. I uncommented the "/etc/init.d/hbmgr.sh start" line in /etc/init.d/rcS and reooted. My PogoPlug is back up and running! Thank you for your help!

      Delete
  24. Is the announcement by Cloud that they are ending free pogoplug accounts going to impact the operations of these SAMBA servers?

    ReplyDelete
    Replies
    1. Good question. No. The announcement was regarding the free online cloud storage (typically 5GB). We're using our own local storage (USB Hard Drive).

      Saying that, I think the online storage is great for remote backup or for mp3 streaming.

      Delete
  25. This one work great for me on the mobile. No problems. It reboot and still show up. Now if you can just help me add a webserver and a dlna server . Btw kodi.tv has or working on a headless server and another option may be universal http://www.universalmediaserver.com/ which i know runs as a server on windows.
    Thanks
    Nick

    ReplyDelete
    Replies
    1. I know what pogoplug need but didnt know what it was called a http file server. i was looking at the hack for WD my book http://mybookworld.wikidot.com/hacks-and-howto and remember. WIndows has one called HFS (http://www.rejetto.com/hfs/) Basically it a small file server that you give a person your IP address and port and the can log in via the web.
      we can do this now with pogo plug. but the advantage here is pogoplug.com wont be able to see what your sharing you be anonymous and you can remove the device from pogoplug. Also i didnt know pogoplug had a built in dlna client but i would love to be more anonymous on the web.

      Delete
    2. forgot to ask is there a way to add a network drive to pogoplug

      Delete
  26. This comment has been removed by the author.

    ReplyDelete
  27. Thanks a lot for the instructions, I was successfully able to install samba on my pogoplug v2's internal partition. Now, I would like to setup multiple users and groups to secure the samba server, is there a GUI tool to configure the samba server, or do I have to do it with commands through SSH?

    ReplyDelete
  28. So I followed these instructions and got everything so Samba should have worked but now the USB drives do not automount under /tmp/.cemnt/*. Everything was working fine before, and automounting. Then I did the above and now they don't. I tried reverting the changes and moved the changes out from under /etc/init.d/ but still they don't auto mount after reboot. And I don't know how to force them to mount in the original way manually, perhaps I could see what was wrong. And error logs don't seem to show anything.

    ReplyDelete
    Replies
    1. The Pogoplug service mounts the drive to /tmp/.cemnt/. Make sure it's running (hbwd process). Otherwise the issue is most likely with your hard drive.

      Delete
  29. I'm not 100% sure I am understanding everything here ... Do you have to format the drives that you hook up to the P21? ... I mean I have several 2TB drives that already have my files on them ... I am looking to hook them up and be able to access the drives on my local network ... I am not crazy about adding anything else to the drives I already have ... I did notice that the needed software/addons can be installed on the P21 unit and not a connected drive .... If it's done this way do you still have to format the drive connected?

    ReplyDelete
  30. I tried with Arch and Debian but for some reason like the opware path better. I'm running Samba and Transmission which was the main point of getting the Pogoplug Mobile in the first place (after reading your guides). However, now after having everything running from plogoplug's internal I'm wondering if the /opt/ could be moved to an external SD. Will moving the files and mounting the ext3 SD as /opt/ suffice?

    ReplyDelete
  31. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. How to restore /etc/init.d/rcS backup without ssh access?

      Delete
    2. i would like to know this 2

      Delete
    3. Posted question here: http://forum.doozan.com/read.php?8,30929

      Delete
  32. Hi Qui Hong,

    Thanks for the awesome step by step tutorial! I just installed optware ipkg on my pogoplug v4 mobile. I had to jump through some hoops and seems I may have skipped a few steps after rereading. I have only one partition no my USB drive.

    I had to set up a local network file server, webfs (because of the onboard wget not able to https) on my Arch desktop, then find and install the packages you mention that I couldn't download. Everything was working well until I screwed up /etc/init.d/rcS. I can no longer ssh into the pogoplug, and I'm pretty sure it's no longer booting. I did save a backup of original rcS but how do I get in to restore it?

    I have installed systools among many other packages with optware, and they are all installed under /opt.

    I just ordered a USB to Serial TTL cable today. http://www.newegg.com/Product/Product.aspx?Item=9SIA27C3GX9504

    If my only option is picocom / minicom and a USB to serial cable, what will the functionality be? Will I be in a shell like environment and can I navigate the partitions / filesystem? Is there a tutorial on this?

    Thanks, Jeff



    ReplyDelete
  33. Hi-

    Is download.qnology.com still active? I was unable to "wget http://download.qnology.com/pogoplug/optware/mke2fs". The connection attempt timed out. I cannot ping download.qnology.com from the PogoPlug Pro but I can ping blog.qnology.com.

    Thank you,

    Scott

    ReplyDelete
    Replies
    1. 看我下面的回复
      samba可以参考那个帖子里面的方法

      Delete
  34. mke2fs是比较常用的软件,应该有其他镜像网站可以找到

    最主要的文件在这里可以找到,这个可以用
    http://www.teqlog.com/install-samba-pogoplug-sdcard-usb-hub.html
    这个帖子里面有这个optware
    http://www.teqlog.com/wp-content/custom/Optware.tar.gz

    抱歉,英语不行,只好打中文.我看这个教程也是用翻译机一点点看的.....

    ReplyDelete