I'm using a USB drive in my Raspberry to store my website. Now I want also save my videos made with
I wasn't able to save in a folder different from
/tmp/motion so googling I found I had to give permission to the folder where I wanted to use.
$ sudo chmod 777 /path/
I tried in the user directory
/home/pi and it worked, then I tried the same on my USB drive.
- Filesystem /dev/sda1
- Size 3.6G
- Used 1.3M
- Avail 3.6G
- Use% 1%
- Mounted On /home/pi/usbdrv
$ sudo chmod 777 /home/pi/usbdrv
But didn't work.
$ sudo service motion start
motion start working, I can see images via browser, but as soon as the webcam try to save a file (e.g. a photo) the thread of the webcam crash. Trying stop motion in the same way
$ sudo service motion stop
[....] Stopping motion detection demon: motionNo /usr/bin/motion found running; none killed. . ok
else if there are more webcams service still run until when all of them try to save datas.
Another test: While if I try, always from terminal:
$ sudo motion
 Processing thread 0 - config file /etc/motion/motion.conf  Processing config file /etc/motion/thread1.conf  Processing config file /etc/motion/thread2.conf  Motion 3.2.12 Started  Exit motion, cannot create process id file (pid file) /var/run/motion/motion.pid: No such file or directory  Motion going to daemon mode $
PS: I have two thread file, because I have two webcams
/dev/sda1 on /home/pi/usbdrv type vfat (rw,nosuid,relatime,sync,uid=1000,gid=1000,fmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors,remount-ro)