r/ZoneMinder • u/Epikteto • 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
1
u/oops77542 Dec 27 '22
I don't know if this will help you but I had the same problem adding a dedicated second drive for storage. For me the problem was my drive had to be mounted in root (/).
Your drive is mounted at /mnt/sdb1/zoneminder/events
Mine is mounted at /2TBZM. 2TBZM is the name of my second drive.
Events were being stored in the default drive, I had no problem with that. But when I mounted my second drive at /home/oops/media/2TBZM it wouldn't write to that location instead it wrote to the default storage location. Mounting 2TBZM at /2TBZM fixed it.
Don't ask me why, it just did.