Alternate Folder Location under Linux (Ubuntu)

Forum for questions and support relating to the 1.28.x releases only.
Locked
chadm
Posts: 2
Joined: Tue Jun 09, 2015 4:36 pm

Alternate Folder Location under Linux (Ubuntu)

Post by chadm »

I'm setting up Zoneminder for the first time.

My boot disk is only 240gb.

I have a second drive that is 1.5TB where I would like ZM to store its data.

I'm having a bit of trouble getting ZM to work. Specifically I'm getting errors relating to "Cannot open zone5.jpg" Before this I was getting permission denied, but after reinstalling ZM that error is no longer present in the log.

This drive is already mounted as /mnt/tb in fstab as follows:

Code: Select all

/dev/disk/by-uuid/30a2fad3-2ddd-4be1-9516-1eebf4ee0490 /mnt/tb auto nosuid,nodev,nofail,x-gvfs-show 0 0
I created a folder under /mnt/tb as /mnt/tb/zoneminder

I then added the following to fstab:

Code: Select all

/var/cache/zoneminder /mnt/tb/zoneminder none defaults,bind 0 0
Following this step I did a chown -R www-data:www-data /mnt/tb/zoneminder
Then I did a chmod to: chmod 777 -R /mnt/tb/zoneminder

I've read the step-by-step on using a dedicated drive (this is not a 'Dedicated Drive' I have other things I need to store on it) and that guide doesn't seem to explain what to do when you already have a mount point but just want to move the folder to a different mount point.

Am I missing something here? Any advice on how to get this to work?
Locked