USB automount
USB automount is a file system feature that mounts a supported USB device automatically so that you can access the device as the disk2: file system.
USB automount behavior
USB automount behavior depends on the device and the virtual machine where the USB device is used.
|
Device |
Behavior |
|---|---|
|
Cisco NCS 1002 |
When you insert a USB device, the device is automatically mounted in sysadmin-vm with read and write permissions and remains unmounted in Cisco IOS XR by default. Automatic mounting in sysadmin-vm is supported only when the USB file system is FAT or FAT32. |
|
Cisco NCS 1001 |
The USB device is automatically mounted in both sysadmin-vm and Cisco IOS XR. |
Mount the USB device in sysadmin-vm
Mount the USB device to restore file access from sysadmin-vm before you read from or write to the device.
The USB device is usually mounted automatically. Use this procedure only when you must mount the device again after an unmount operation.
Procedure
|
Mount the USB device in sysadmin-vm. Use the usb device operation mount command. Example:
The USB device is mounted in sysadmin-vm. |
You can access the USB device as the disk2: file system.
Mount the USB device in Cisco IOS XR
Mount the USB device to restore file access from Cisco IOS XR before you read from or write to the device.
Use this procedure only when you must mount the USB device again after an unmount operation.
Procedure
|
Mount the USB device in Cisco IOS XR. Use the unmount disk2: undo command. Example:
The USB device is mounted in Cisco IOS XR. |
You can access the USB device as the disk2: file system.
Copy files to the USB device
Copy files to the USB device when you must save logs, archives, or other files outside the device storage.
Before you begin
Mount the USB device before you copy files to it.
Procedure
|
Step 1 |
Copy the file to the USB device. Use the scp command and set the destination to /disk2\:. Example:
|
|
Step 2 |
Change to the USB device directory. Use the cd /disk2\: command. Example:
|
|
Step 3 |
List the directory contents. Use the ls -lrt command. Example:
The copied file appears in the USB device directory. |
Unmount the USB device from sysadmin-vm
Unmount the USB device from sysadmin-vm to complete file system operations before you remove the device.
Procedure
|
Unmount the USB device from sysadmin-vm. Use the usb device operation unmount command. Example:
The USB device is unmounted from sysadmin-vm. |
Unmount the USB device from Cisco IOS XR
Unmount the USB device from Cisco IOS XR to complete file system operations before you remove the device.
Procedure
|
Unmount the USB device from Cisco IOS XR. Use the unmount disk2: command. Example:
The USB device is unmounted from Cisco IOS XR. |
Feedback