Hi all,
I recently rebuilt my server with Ubuntu 18.04.
I have mounted a dedicated hard drive to /mnt/CCTV using fstab by the drive UUID.
I read and tried to follow these instructions on telling Zoneminder how to find the drive: https://zoneminder.readthedocs.io/en/la ... drive.html
When trying to set the permissions, I found that I don't have a user or group called "apache" so instead (hoping for the best, and after a bit of internet searching) carried out:
sudo chown -R www-data:www-data /mnt/CCTV/events
I then created /etc/zm/drives.conf containing the line: ZM_DIR_EVENTS=/mnt/CCTV/events
After restarting zonmeminder with systemctl, it is not saving to this new directory.
Any ideas please?
Cheers, Scott.
Dedicated drive issue - Ubuntu 18.04
Re: Dedicated drive issue - Ubuntu 18.04
Better to use the systemd mount procedure. See the wiki for the how to.
Re: Dedicated drive issue - Ubuntu 18.04
My situation is similar but not exactly the same (I'm simply using a directory under /home rather than a dedicated disk, and I'm moving the entire /var/lib/zoneminder directory) and I found that I also had to change the Default Storage Path at Options -> Storage in the ZoneMinder console.
I also had success using mount --bind /my/new/data/dir /var/lib/zoneminder and not changing the ZoneMinder paths at all. (In fstab it's /my/new/data/dir /var/lib/zoneminder auto bind,defaults 0 0)
I also had success using mount --bind /my/new/data/dir /var/lib/zoneminder and not changing the ZoneMinder paths at all. (In fstab it's /my/new/data/dir /var/lib/zoneminder auto bind,defaults 0 0)
-
- Posts: 43
- Joined: Sat Oct 26, 2013 2:58 pm
Re: Dedicated drive issue - Ubuntu 18.04
Thanks,
This is now fixed using the systemd method, which was surprisingly straightforward.
Thanks, Scott.
This is now fixed using the systemd method, which was surprisingly straightforward.
Thanks, Scott.