Query/Concern: 

Is there a way to transfer a file from a USB Drive to the VOS or from the VOS-White Box to a USB Drive?


*This KB is only for transferring files to or from and not for onboarding/Activating a VOS using USB. 


To onboard/Active an appliance using USB please follow this Docs-Link: https://docs.versa-networks.com/Getting_Started/Deployment_and_Initial_Configuration/Branch_Deployment/Initial_Configuration/04_Activate_VOS_Devices#Use_a_USB_Storage_Drive_To_Activate_a_VOS_Device. There is no need to mnt or umnt USB for Device Activation using USB method.


Solution: 


1) Get a FAT32 USB Drive


2) Copy any files or images you would like to transfer to the VOS-White Box.


3) Plug in the USB to the Available Port of the CSG or the White-Box.


4) admin@Branch $ sudo fdisk -l


Here in the below, sample USB is getting identified as sdb12. it can be any sd<x>, so please change the subsequent values accordingly.


Sample Snippet: 


5) Mount the USB using the below command: 


[admin@Branch: ~] $ mkdir /var/tmp/mnt/

[admin@Branch: ~] $ sudo mount /dev/sd<x> /var/tmp/mnt/           >>>In the sample, it is sdb1


Sample Snippets: 


Prior to the mount of the USB: 


After the mount: 


6) To access the files or copy to/from the USB: 


7) You can copy files to and from the USB: 


Example of copying the versa-service.log from VOS to the USB: 


8) How to Umount the USB Safely before removing/Unplugging it from the White-Box/CSG?


sudo umount /var/tmp/mnt


Sample Snippet, where the USB identifies as sdb12


Then use df -kH to confirm if the sd<x> is not listed, which means the USB has been safely unmounted.


PS: You can ignore the tmpfs which may be created.


In case of any further concerns or queries feel free to write us at <support@versa-networks.com>.