Hi Moonman,
First I want to thank you for sharing and brigning this topic to the forum.
Here is a modification I made to "pogoplug.service" to make sure all instances of hbwd service are stopped before attempting to unmount storage (reboot, shutdown).
Otherwise you may need to e2fsck or dosfsck (from dosfstools) to repair your drive.
/usr/lib/systemd/system/pogoplug.service
--------------------------------------------------------------------------
[Unit]
Description=my.pogoplug.com service daemon
After=network.target
devmon@root.service[Service]
User=root
Type=oneshot
ExecStart=/bin/sh /usr/local/cloudengines/pogoplug.sh
ExecStop=/sbin/killall hbwd
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
-------------------------------------------------------------------------
As you can find in the "After" directive, i'm using udevil to automount storage.
On my Pogoplug, all drives are mounted under /media.
In the my.pogoplug.com webpage I see all the storage identified by the label of the drive connected to the Pogoplug device.
However there is a drawback of this method: The total/available space indicated in the my.pogoplug.com webpage or in the mobile applet will be the space of the ArchLinux ARM media instead of the storage media.
If you don't want to use udevil simply edit the above pogoplug.service and remove "devmon@root.service" from the After= directive. Then it will become:
After=network.target
If you want to use udevil here is my mini HowTo:
mkdir /media
pacman -Sy udevil
systemctl enable
devmon@root.service vi /etc/udevil/udevil.conf
Search for "allowed_media_dirs" and modify the line this way:
allowed_media_dirs = /media, /run/media/$USER
Save udevil.conf and start the udevil service:
systemctl start
devmon@root.serviceNow to see the changes in my.pogoplug.com, edit the pogoplug.conf file and modify the line containing:
vfsdir0=
for something like this:
vfsdir0=Storage,/media
Example /etc/pogoplug.conf
---------------------------------------------------------------
installdir=/usr/local/cloudengines
datadir=.
nohotplug=1
dropbear.isenabled=1
svcid=MYSERVICEIDNUMBER(taken from the label under the Pogoplug device)
vfsdir0=Storage,/media
---------------------------------------------------------------
Now reboot your Pogoplug and open my.pogoplug.com in your web browser.
You will find your connected medias identified by their label.