(Solved) Dedicated Hard Drive

Forum for questions and support relating to the 1.24.x releases only.
Locked
camsystem
Posts: 32
Joined: Fri Aug 12, 2011 8:35 pm

(Solved) Dedicated Hard Drive

Post 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
Last edited by camsystem on Wed Feb 15, 2012 3:25 pm, edited 1 time in total.
Mad Professor
Posts: 106
Joined: Wed Dec 15, 2010 11:20 am
Location: Isle Of Wight, UK

Re: Dedicated Hard Drive

Post 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.
camsystem
Posts: 32
Joined: Fri Aug 12, 2011 8:35 pm

Re: Dedicated Hard Drive

Post 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?
Mad Professor
Posts: 106
Joined: Wed Dec 15, 2010 11:20 am
Location: Isle Of Wight, UK

Re: Dedicated Hard Drive

Post 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.
camsystem
Posts: 32
Joined: Fri Aug 12, 2011 8:35 pm

Re: Dedicated Hard Drive

Post 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$
camsystem
Posts: 32
Joined: Fri Aug 12, 2011 8:35 pm

Re: Dedicated Hard Drive

Post by camsystem »

How did you determine where your files were being stored?
zSeries
Posts: 30
Joined: Thu Aug 18, 2011 12:43 pm

Re: Dedicated Hard Drive

Post 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.
camsystem
Posts: 32
Joined: Fri Aug 12, 2011 8:35 pm

(Solved) Re: Dedicated Hard Drive

Post 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
Locked