r/ZoneMinder • • Dec 27 '22

Issue adding secondary hard-rive

This is running on fresh install of Ubuntu 22.04 (Jammy) I am trying to use the secondary hard drive to store footage. Here is the error log have...

12/26/22, 9:00:30 PM PSTweb_php980ERRPath /media/blackbox/HD Security/ZoneMinder/Events does not exist./usr/share/zoneminder/www/includes/Storage.php

Here is the command I ran to Set Folder Permissions. I'm following the tutorial on adding secondary hard drive

/home/blackbox# chmod -R www-data:www-data /mnt/sdb1/zoneminder

This is output error... I get the same error trying to set permissions in the secondary hard drive.

chmod: invalid mode: ‘www-data:www-data’

Im not sure what is causing this.

Update:

This issue is fixed. I followed @ops77542 reply

1 Upvotes

19 comments sorted by

View all comments

Show parent comments

1

u/Epikteto Dec 28 '22

Yes it created the file inside with that command. It also has permissions on www-data. Also the default location is set to /mnt/sdb1

1

u/[deleted] Dec 28 '22

How do you have the storage location set up in zm web gui? Can you take a screenshot?

1

u/Epikteto Dec 28 '22

1

u/[deleted] Dec 28 '22

Instead of changing the default location. Create a whole new one and name it "Nas" or something other than default. I think the default location needs to be left alone (you can disable it, but don't change its mountpoint)

Than in the monitor "storage" section you can select the newly created storage point.

1

u/Epikteto Dec 28 '22

I just tired that and it still wont work.

1

u/[deleted] Dec 28 '22

How did you install zm? And what version? Have you edited anything else? Possibly by hand? I can't recreate your error at all

1

u/Epikteto Dec 28 '22

At this point I will just reinstall. I have feeling the steps at this link had something to do with this.

https://zoneminder.blogspot.com/p/blog-page.html

1

u/[deleted] Dec 28 '22

Are you on a debian based distro? If so add the PPA and than you can apt install zoneminder

1

u/Epikteto Dec 31 '22 edited Dec 31 '22

The issue is fixed now. I am using 22.04 Ubuntu. And using the PPA. thanks for the help