Learn how to mount a USB storage device in both sysadmin-vm and XR-vm environments and transfer files to the device.
Use this task to mount a USB device so you can access, copy, and manage files within your virtual machine environment.
Mounting a USB device integrates external storage into your virtual machine, allowing you to move essential files between systems or for backup purposes. Procedures differ slightly between sysadmin-vm and XR-vm.
Procedure
-
Use the command usb device operation mount to mount the USB device in sysadmin-vm.
Example:
sysadmin-vm:0_RP0#usb device operation mount
Fri Jul 13 09:26:00.821 UTC success usb mounted
-
Use the command unmount disk2: undo to mount the USB device in XR-vm.
Example:
RP/0/RP0/CPU0:ios#unmount disk2: undo
Fri Jul 13 14:56:34.326 IST
disk2: mounted successfully.
-
Use the command scp to copy the file to the USB device.
Example:
[sysadmin-vm:0_RP0:~/showtech]$scp showtech-envmon-admin-2018-Jul-04.171400.IST.tgz /disk2\:
[sysadmin-vm:0_RP0:~/showtech]$cd /disk2\:
[sysadmin-vm:0_RP0:/disk2:]$ls -lrt
total 122424
drwxr-xr-x 2 root root 8192 Jul 12 2017 System Volume Information
drwxr-xr-x 2 root root 8192 Jun 11 16:16 boot
drwxr-xr-x 3 root root 8192 Jun 11 16:17 EFI
-rwxr-xr-x 1 root root 125306880 Jul 10 13:50 calvVarLog.tar
-rwxr-xr-x 1 root root 23023 Jul 13 05:23 showtech-envmon-admin-2018-Jul-04.171400.IST.tgz
The USB device is mounted successfully in the target environment, and files can be copied and managed as needed.