USB Device Automount

This chapter describes the USB automount configuration on NCS 1004.

USB automounts

A USB automount is a system feature that

  • automatically mounts a USB device in the sysadmin-vm with read and write permissions,

  • supports automount only when the USB device file system is FAT or FAT32, and

  • allows you to access files and folders on the mounted USB device through the disk2: file system, without needing to explicitly mount the device.

Operational details

  • When you insert a USB device into NCS 1004, it is automatically mounted in sysadmin-vm with read and write permissions, and, by default, is unmounted in XR-vm.

  • If the USB file system is not FAT or FAT32, the device will not be automounted in sysadmin-vm.

  • To access or transfer files, you can use the disk2: file system reference.

  • You must unmount the USB device from sysadmin-vm before physically removing it from NCS 1004.

  • If you need to remount the USB device after unmounting but before removing it, use the mount command.

  • You can mount the USB device in both XR-vm and sysadmin-vm at the same time. Before physically removing the USB device from NCS 1004, unmount it from both sysadmin-vm and XR-vm

Mount a USB device in virtual machine environments

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


Step 1

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 

Step 2

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.

Step 3

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.

Unmount a USB device

Use this task to safely disconnect a USB device from a sysadmin or XR virtual machine by issuing the appropriate command.

Procedure


Step 1

If you are working in sysadmin-vm, enter the command usb device operation unmount to unmount the USB device.

Example:


sysadmin-vm:0_RP0#usb device operation unmount 
Fri Jul  13 09:25:24.531 UTC success usb unmounted 

Step 2

If you are working in XR-vm, enter the command unmount disk2: to unmount the USB device.

Example:


RP/0/RP0/CPU0:ios#unmount disk2:      
Fri Jul 13 14:56:46.393 IST
disk2: unmounted successfully.

The USB device is safely disconnected from the selected virtual machine and ready for physical removal.