USB Automount

This chapter describes USB Automount configuration on NCS 1000.

USB Automount

The USB automount feature allows the user to read from or write files and folders onto the USB device without explicitly mounting it. The mounted USB device can be accessed as disk2: file system.

When a USB device is inserted in NCS 1002, 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.

In NCS 1001, the USB device is automatically mounted in both sysadmin-vm and XR.

The user must unmount the USB device from sysadmin-vm or XR before it is removed from NCS 1000. If the USB device must be mounted again after the device is unmounted but before removing the device, it can be done using the mount command.

The user can simultaneously mount the USB device in XR-vm and sysadmin-vm. The user must unmount the USB device from both sysadmin-vm and XR-vm before it is removed from NCS 1000.

Mount USB Device

Mount USB Device in sysadmin-vm

usb device operation mount

Mount USB Device in XR

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 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

Unmount USB Device in sysadmin-vm

usb device operation unmount

Unmount USB Device in XR

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.