Dedicatd drive

Forum for questions and support relating to the 1.29.x releases only.
Locked
jmcgee
Posts: 27
Joined: Thu Sep 25, 2008 2:22 am

Dedicatd drive

Post by jmcgee »

Now that I have 1.29 on Ubuntu 140.04 running, I thought before I added cameras I would point it towards a internal drive I have dedicated for zoneminder events and images.

I used this guide:
https://wiki.zoneminder.com/Using_a_ded ... Hard_Drive

the drive is mounted at /mnt/data1
This is what I got when I started Zoneminder service:


jmcgee@burn:~$ ls /var/cache/zoneminder
events images temp
jmcgee@burn:~$ ls /var/cache/zoneminder/events
jmcgee@burn:~$ ls /var/cache/zoneminder/images
jmcgee@burn:~$ ls /var/cache/zoneminder/temp
jmcgee@burn:~$ mkdir /mnt/data1/zoneminder
jmcgee@burn:~$ mkdir /mnt/data1/zoneminder/events
jmcgee@burn:~$ sudo nano /etc/fstab
jmcgee@burn:~$ mkdir /mnt/data1/zoneminder/images
jmcgee@burn:~$ chown -R apache:apache /mnt/data1/zoneminder
chown: invalid user: ‘apache:apache’
jmcgee@burn:~$ sudo nano /etc/fstab
jmcgee@burn:~$ sudo mount -a
jmcgee@burn:~$ service zoneminder start
Starting ZoneMinder: chown: changing ownership of ‘/var/run/zm’: Operation not permitted
chown: changing ownership of ‘/tmp/zm’: Operation not permitted
Can't open config file '/etc/zm/zm.conf': Permission denied at /usr/share/perl5/ZoneMinder/Config.pm line 119.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 119.
Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmpkg.pl line 48.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 48.
failure

and this is fstab:

cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=01b53844-6018-40cc-8f64-d3eaaeb40451 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=b196e3d7-44b6-4547-a56e-6a44680bc4bf none swap sw 0 0
#/Mount internal 6tb seagate drive
/dev/sdb1 /mnt/data1 ext4 defaults 0 0
/mnt/data1/zoneminder/images /var/cache/zoneminder/images none defaults,bind 0 2
/mnt/data1/zoneminder/events /var/cache/zoneminder/events none defaults,bind 0 2
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: Dedicatd drive

Post by SteveGilvarry »

Not apache anymore www-data
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
jmcgee
Posts: 27
Joined: Thu Sep 25, 2008 2:22 am

Re: Dedicatd drive

Post by jmcgee »

Thank you.
Locked