USB Device Automount

This chapter describes the USB automount configuration on NCS 1004.

USB Automount

When you insert a USB device in NCS 1004, it is automatically mounted in sysadmin-vm with Read and Write permissions and unmounted in XR by default. The USB device is automatically mounted in sysadmin-vm only when the file system of the USB device is FAT or FAT32. This feature allows you to read from or write files and folders onto the USB device without explicitly mounting it. You can access the mounted USB device as disk2: file system.

Unmount the USB device from sysadmin-vm before you remove it from NCS 1004. Use the mount command, if you want to mount the USB device again after you unmount the device but before physically removing it.

You can simultaneously mount the USB device in XR-vm and sysadmin-vm. Unmount the USB device from both sysadmin-vm and XR-vm before you remove it from NCS 1004.

Mount USB Device

To mount the USB device in sysadmin-vm, use the following command:

usb device operation mount

To mount the USB device in XR-vm, use the following command:

unmount disk2: undo

Example

The following is an example of USB mount in sysadmin-vm.


sysadmin-vm:0_RP0#usb device operation mount 
Fri Jul  13 09:26:00.821 UTC success usb mounted 

The following is an example of USB mount in XR-vm.


RP/0/RP0/CPU0:ios#unmount disk2: undo 
Fri Jul 13 14:56:34.326 IST
disk2: mounted successfully.

The following is an example of copying the file to the USB device.


[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

Unmount USB Device

To unmount the USB device in sysadmin-vm, use the following command:

usb device operation unmount

To unmount the USB device in XR-vm, use the following command:

unmount disk2:

Example

The following is an example of USB unmount in sysadmin-vm.


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

The following is an example of USB unmount in XR-vm.


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