Categories
Knowledge Support Support Categories Products exacqVision Hardware

Running psmove on Ubuntu Linux

*** INTERNAL USE ***

Description 

The psmove utility was designed to move psfiles to the correct location after a time zone change or if a files time does not match frame times.  It will perform a search on all local storage drives, read the PSI file header for the start time, determine if the PSI file is in the wrong folder and move it to the correct folder on the same drive.  

Product 

  • psmove
  • Ubuntu 18.04.5 LTS (Bionic Beaver) 64-bit

Instructions

The psmove utility was designed to move psfiles to the correct location after a time zone change or if file times do not match frame times.  It will perform a search on all local storage drives, read the PSI file header for the start time, determine if the PSI file is in the wrong folder and move it to the correct folder on the same drive.  

As part of the process, it creates a copy of the directory found on the local sAs part of the process, it creates a copy of the directories found on the local storage drives to the folder  “/mnt/edvr/YYYY” where “YYYY” matches any existing years folders currently located on the local storage drives.   Files are moved here to the correct folder and then will need to be manually moved back to the local storage drive(s).

This will result in a Low Disk Space message if the size of the files being moved is larger than the available space on the root partition.   If this occurs files must be moved back to the local storage drive(s) and then removed from the root partition by deleting the year folder,  “/mnt/edvr/YYYY” before psmove can be run again.  Depending on the size of the files needing correction and available space on the root partition it may be necessary to repeat this cycle several times.   Once psmove returns a result “Moved 0 file” then a final deletion of the folder “/mnt/edvr/YYYY” should be performed before resuming normal operation..

Local Storage Preparation

Since files will need to be moved from the root partition back to the local storage drives some free space will be required.  It is recommended that you check the Used Space on the Storage page and if the drive(s) is full, check the oldest content and then determine the number of days needed then create an at most expiration configuration rule which will remove older content creating free space.  Other options can be used such as coping older data to an external drive the goal is to create free space.

Linux 64-bit Example

Download PSMoveUtil.zip to the admin users Downloads folder

Open Terminal

Change directory to Downloads

Extract psmove

Copy psmove to Downloads

Make psmove Executable

Perform a Dry Run of psmove

Note:  In this example the dry run listed files and showed “Moved 1350 files” indicating that psmove  is needed. 
If it had returned “Moved 0 files” then there would be no need to run psmove.

Run psmove

If the root partition fills up the following “Low Disk Space” message appears

Change Directory to /mnt/edvr

List Contents of /mnt/edvr/

This command shows that the year folder created is 2022

Sync Corrected Files to Local Storage

This command is syncing the corrected files from the root partition back to the local storage drive.

Remove the Year Folder

WARNING make sure that you are in the correct folder /mnt/edvr before running this command it is deleting date

List Contents of /mnt/edvr

Ensure the Year folder, in this example 2022 is no longer listed

Change Directory to Downloads

Repeat the above steps beginning with “Run psmove”  until psmove returns “Moved 0 Files”

Make sure to remove the Year Folder one last time

  • Change Directory to /mnt/edvr
  • List Contents of /mnt/edvr/
  • Remove the Year Folder