I'm using a USB drive in my Raspberry to store my website. Now I want also save my videos made with motion.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/sda1Size 3.6GUsed 1.3MAvail 3.6GUse% 1%Mounted On /home/pi/usbdrv$ sudo chmod 777 /home/pi/usbdrvBut didn't work.Some info:So$ sudo service motion startmotion 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 stopI get [....] Stopping motion detection demon: motionNo /usr/bin/motion found running; none killed.. okelse 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 motionI get[0] Processing thread 0 - config file /etc/motion/motion.conf[0] Processing config file /etc/motion/thread1.conf[0] Processing config file /etc/motion/thread2.conf[0] Motion 3.2.12 Started[0] Exit motion, cannot create process id file (pid file) /var/run/motion/motion.pid: No such file or directory[0] Motion going to daemon mode$PS: I have two thread file, because I have two webcamsMy USB:/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)More info:http://www.raspberrypi.org/forums/viewtopic.php?f=28&t=75136
Save motion output videos in USB Drive
permissions;usb;usb drive;chmod;motion