1. Bicom Systems
  2. Solution home
  3. PBXware
  4. HOWTOs

General :: Mounting External Hard Drive for call recordings

HOWTO Mounting External Hard Drive for call recordings


In order to save your call recordings to external hard drive you will need to perform following procedure while in PBXware shell.

To verify your external drive ID exectute:

'cat /proc/partitions' 

In most cases external USB drives are 'sdb' or 'hdb'.Its name will contain additional number showing partition(s) on it.

WARNING: In our example drive shows up as sdb1 but please be aware that in your scenario this might not be the case, and any mistakes in drive selection might lead to data loss.

Before we mount our drive, we need to format it to ext3 file system:

mkfs.ext3 /dev/sdb1

After format is complete we need to create a directory on our system:

mkdir /mnt/sdb1

And mount our device in it:

mount /dev/sdb1 /mnt/sdb1

After device is mounted, enter directory /mnt/sdb1 and create new directory, named monitor inside:

cd /mnt/sdb1
mkdir monitor

Change its permisions:

chown 555:555 monitor

NOTE: In order to keep your previous call recordings available from CDR page, you will need to copy all recordings files to external drive and now it's time do do that.

To copy all recording files to external drive we just mounted, enter directory /opt/pbxware/pw/var/spool/asterisk/monitor

cd /opt/pbxware/pw/var/spool/asterisk/monitor

And copy all the files from it to /mnt/sdb1/monitor:

cp * /mnt/sdb1/monitor


Now we need to mount our external drive to our recording location using this command:

mount -o bind /mnt/sdb1/monitor /opt/pbxware/pw/var/spool/asterisk/monitor

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article