Page 1 of 1

recording on external HDD

PostPosted: Sat Dec 10, 2016 3:06 pm
by lukas22
Hi,

I have RaspberryPi2 with USB camera. Recording videos into my external HDD works just fine until I make reboot. After reboot it starts to record videos to memory card instead HDD.
How can I make Pi to record videos automatically into HDD after reboot?

Lukas

Re: recording on external HDD

PostPosted: Mon Dec 12, 2016 9:52 am
by Admin_P
Hello, Lukas! It seems that Xeoma starts working before the external HDD is recognized by your system. You can create a delay for Xeoma using this command: -startdelay [seconds]
You can find a full list of supported commands here.

Re: recording on external HDD

PostPosted: Mon Dec 12, 2016 7:13 pm
by lukas22
Hello :) ,
I tried but core is still working and can't change the delay. We also tried kill the proces but still can't change delay. :-/

Re: recording on external HDD

PostPosted: Mon Dec 12, 2016 7:40 pm
by lukas22
I tried command service XeomaCoreService stop
Output:
Xeoma server is started in foreground.

Core: Starting ...

Core: starting services ...
Core: Started.

Re: recording on external HDD

PostPosted: Tue Dec 13, 2016 12:38 pm
by Admin_N
Hi there Lukas,

Could you temporarily uninstall Xeoma with the -removeexe command? You'll stop the core AND save your settings and archives (if yours is a commercial edition). A bit hardsh decision, I know, but a quick one as well. :D
Then edit the startdelay thing, and then turn Xeoma back on & install it again.

Did it help?

Re: recording on external HDD

PostPosted: Tue Dec 13, 2016 8:14 pm
by lukas22
./xeoma.app -install -removeexe
Remove programm files (leave Archive) ... * Ok > popClientFromAutorun
* Ok > unInstallClientShortcut
* Ok > unInstallCoreShortcut
* Ok > unRegisterInSystem
* Ok > unRegisterCoreAsService
grep: grep: No such file or directory
grep: xeoma.prerm: No such file or directory
* Ok > removeExeOnly
* Ok > uninstallExe
Ok

pi@raspberrypi:~ $ ./xeoma.app -core -startdelay 15
Xeoma server is started in foreground.
Core: Starting ...
Core: starting services ...
Core: Started.

Also when I rebooted raspberryPi2, it`s the same result.

Re: recording on external HDD

PostPosted: Wed Dec 14, 2016 9:00 am
by Admin_N
Oh I'm sorry. You should edit the autostart script to save this change after reboot. The command alone won't help after reboot.

Here's where the autoscript resides: http://felenasoft.com/xeoma/en/articles/linux-video-surveillance/#autostart

The order of actions is as follows:
Stop Xeoma
Find the autoscript
Edit the startdelay line with root rights
Save it
Turn Xeoma back on and install it
Restart your machine

If done correctly, this should work. Did it work for you?

Re: recording on external HDD

PostPosted: Wed Dec 14, 2016 8:38 pm
by lukas22
Hi,

what is the name of the autoscript?
I should the autoscript create?
In all these paths have same files:
/etc/init.d
/etc/init
/etc/systemd/system

Re: recording on external HDD

PostPosted: Thu Dec 15, 2016 10:05 am
by Admin_N
The name of autoscript you're looking for is XeomaCoreService

No, it must be in one of those folders - which one depends onwhat initialization system you have. Please check all paths if you have doubts.

If it isn't there, please install Xeoma once more and check again. If you find it then, please change the startdelay string with Xeoma installed. Does it work now? It must work this time.

Re: recording on external HDD

PostPosted: Sat Dec 17, 2016 3:16 pm
by lukas22
Hi, :)

yes it works.
Thanks very much for your help.
XeomaCoreService was in /etc/systemd/system.
And now I used this guide for the mounting HDD:
https://www.modmypi.com/blog/how-to-mount-an-external-hard-drive-on-the-raspberry-pi-raspian
Have a nice day and thanks. :)

Lukas

Re: recording on external HDD

PostPosted: Tue Dec 20, 2016 11:40 am
by Admin_N
Hi Lukas,

Thanks for sharing the guide. Have a great day and feel free to let us know if you have any further questions!