Page 1 of 1
(Solved) Dedicated Hard Drive
Posted: Thu Feb 02, 2012 3:02 pm
by camsystem
Running ZM 1.24.4 on Ubuntu 10.04 server with a single disk drive. Working great but worried about running out of disk space. Need to add a new hard drive for the images. Checked out the WIKI link
http://www.zoneminder.com/wiki/index.ph ... Hard_Drive
Step 4. Locate Zoneminder's "events" and "images" directories. In Debian, these are usually in /usr/share/zoneminder
Unable to find these directories. Tried using locate command from root with no success.
Any ides or help would be appreciated
Re: Dedicated Hard Drive
Posted: Thu Feb 02, 2012 4:02 pm
by Mad Professor
One of my old posts might be of some help to you.
Here is the link:
Recording outside of working directory
Best Regards.
Re: Dedicated Hard Drive
Posted: Thu Feb 02, 2012 4:24 pm
by camsystem
your previous post replies seem to give same file locations as wiki
mv /usr/share/zoneminder/events /usr/share/zoneminder/eventsbackup
My ubuntu server does not have the /usr/share/zoneminder directory
Are you running desktop or server?
Re: Dedicated Hard Drive
Posted: Thu Feb 02, 2012 4:29 pm
by Mad Professor
I am running x64 server.
If you read my 1st post in the link above, you would see that my servers folders are "/var/cache/zoneminder/events" not "/usr/share/zoneminder/events".
Best Regards.
Re: Dedicated Hard Drive
Posted: Thu Feb 02, 2012 5:06 pm
by camsystem
Unfortunately, I do not have a /var/cache/zoneminder/ directory either. Here is my what I have in /var/cache/.
ronnie@fred:/var/cache$ ls -a
. apache2 apt-show-versions fontconfig ldconfig munin
.. apt debconf git man pppconfig
ronnie@fred:/var/cache$
Re: Dedicated Hard Drive
Posted: Thu Feb 02, 2012 5:08 pm
by camsystem
How did you determine where your files were being stored?
Re: Dedicated Hard Drive
Posted: Fri Feb 03, 2012 3:49 pm
by zSeries
I run on Ubuntu LTS 10.04. In /etc/fstab I have
LABEL=HOST_Data /HOST/HOST_Data ext4 errors=remount-ro 0 1
/HOST/HOST_Data/events /usr/share/zoneminder/events none defaults,bind 0 0
/HOST/HOST_Data/images /usr/share/zoneminder/images none defaults,bind 0 0
/HOST/HOST_Data/temp /usr/share/zoneminder/temp none defaults,bind 0 0
Note I apply strict naming conventions for my partitions which makes it easier to maintain /etc/fstab when you run many machines. HOST_Data is the label for the partition I want to contain my events/images and temp folders. HOST is the machines hostname and I have a folder in the root partition called the HOST which has the same subfolders. I am not sure if this is the best way to do it but it works.
(Solved) Re: Dedicated Hard Drive
Posted: Wed Feb 15, 2012 3:21 pm
by camsystem
Found the events and images in this folder. /var/www/zm/
edited fstab as follows:
Code: Select all
/dev/sdb1 /media/newdrive ext4 defaults 0 2
/media/newdrive/zm/images /var/www/zm/images none defaults,bind 0 2
/media/newdrive/zm/events /var/www/zm/events none defaults,bind 0 2