This procedure is applicable to replacing the primary hard drive of a Linux-based exacqVision system. It assumes that the operating device is installed to an on-board flash device. Do NOT use this procedure when simply adding a drive to a system.
- Run GParted from System, Administration, GParted. Select the empty hard drive from the drop-down list in the top-right corner. Note that the drive is unallocated, which indicates that you have selected the correct hard drive. Select Create Partition Table from the Device menu.
- Select gpt from the Select New Partition Table Type drop-down list. Click Apply.
- Right-click in the unallocated space and select New to open the Create New Partition window. Select 20000 (or more) in the New Size (MiB) box. Select linux-swap in the File System drop-down list. In the Label field, type swap. Click Add.
- Right-click the unallocated space and select New to open the Create New Partition window. Select 10000 (or more) in the New Size (MiB) box. Select ext4 in the File System drop-down list. In the Label field, type /mnt/export. Click Add.
- Right-click the unallocated space and select New to open the Create New Partition window. Select the highest available number in the Set New Size (MiB) box. Make sure Free Space Preceding and Free Space Following are both zero. Select ext4 in the File System drop-down list. In the Label field, type /mnt/edvr/1. Click Add.
- Click the green checkmark and then click Apply. Wait for the operations to complete.
- Open a Terminal window by selecting Applications, Accessories, and then Terminal. Enter the following command:
sudo gedit /etc/fstab - Add the following lines to the end of the fstab file:
LABEL=swap none swap sw 0 0
tmpfs /tmp tmpfs defaults,size=10g 0 0
tmpfs /var/tmp tmpfs defaults
LABEL=/mnt/export /mnt/export ext4 relatime,errors=remount-ro 0 0
LABEL=/mnt/edvr/1 /mnt/edvr/1 ext4 relatime,errors=remount-ro 0 0 - In the terminal window, enter the following commands.
sudo /etc/init.d/edvrserver stop
sudo udevadm trigger
sudo mount -a
To create your export directories and change ownership:
Note: in the following commands both “admin” and “user” should be changed to the relevant account names for the machine having issues.
sudo mkdir /mnt/export/admin
sudo mkdir /mnt/export/user
sudo chown admin /mnt/export/admin
sudo chown user /mnt/export/user
sudo /etc/init.d/edvrserver start - In a Terminal window, enter the following commands:
Note: in the following commands both “admin” and “user” should be changed to the relevant account names for the machine having issues.
sudo rm -r /home/admin/exacqVision\ Files
sudo rm -r /home/user/exacqVision\ Files
sudo ln -s /mnt/export/admin /home/admin/exacqVision\ Files
sudo ln -s /mnt/export/user /home/user/exacqVision\ Files - Run exacqVision Client and check the Storage configuration. You should see the new drive in the list of attached storage devices