How to change the storage location

Forum for questions and support relating to the 1.29.x releases only.
Locked
nas31320
Posts: 3
Joined: Mon Jun 05, 2017 4:15 pm

How to change the storage location

Post by nas31320 »

hello.

i am french and i'm new on this forum. I need To you

I installed zoneminder and apache on a raspberry and wanting to change the storage location I can no longer connect to web interface and this one tells me "Can not write to content dirs ('events ',' Images'). Check that these are available by the web account user "

To know that I want to put the storage on my hard drive

This is how I got myself

zoneminder is
sudo mv /var/cache/zoneminder /var/cache/zoneminderOLD
sudo mkdir media/zoneminder/hdd/zonemider
sudo cp -R -p -v /var/cache/zoneminderOLD/* /media/zoneminder/hdd/zonemider
sudo ln -s /media/zoneminder/hdd/zonemider /var/cache/zoneminder
sudo chown www-data:root -R /media/zoneminder/hdd/zoneminder/
sudo chmod 770 -R /media/zoneminder/hdd/zoneminder/
sudo service zoneminder restart

on firefox http://192.168.43.250/zm
I see always this message Can not write to content dirs ('events ',' Images'). Check that these are available by the web account user :( :(
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: How to change the storage location

Post by bbunge »

What distro and version of Linux are you using on your pi?
nas31320
Posts: 3
Joined: Mon Jun 05, 2017 4:15 pm

Re: How to change the storage location

Post by nas31320 »

bbunge wrote: Tue Jun 06, 2017 2:47 am What distro and version of Linux are you using on your pi?
I using linux ubuntu mate 16.04
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: How to change the storage location

Post by bbunge »

I recommend you start over with a Ubuntu 16.04 server or minimal version as running a desktop on a pi uses a lot of resources.

https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way

Here are instructions to use systemd to mount another drive to store events/images:

https://wiki.zoneminder.com/Common_Issu ... ive_or_NAS
nas31320
Posts: 3
Joined: Mon Jun 05, 2017 4:15 pm

Re: How to change the storage location

Post by nas31320 »

bbunge wrote: Tue Jun 06, 2017 10:45 pm I recommend you start over with a Ubuntu 16.04 server or minimal version as running a desktop on a pi uses a lot of resources.

https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way

Here are instructions to use systemd to mount another drive to store events/images:

https://wiki.zoneminder.com/Common_Issu ... ive_or_NAS
Thank you for answer it works very well. My problem is resolved :D
Locked