Using External USB Hotplug

Plug in the External USB to begin using the External USB Hotplug commands. Use the show files disk0 command to check if the external USB is mounted and ready to use.

You can use the commands in the following table as part of the External USB Hotplug functionality.

Table 5 External USB Hotplug commands
Command Description
show files disk0 Displays the files in the external USB drive.
format disk0 Formats the external USB.
mount disk0 Mounts the filesystem in the external USB drive.
unmount disk0 Unmounts the filesystem of the external USB drive. This command is required to safely plug out the USB, so that files are not lost or corrupted.
copy flash disk0 primary \ secondary Copies the image binary stored in the primary or secondary partition of the flash to a destination file in the external USB.
copy flash disk0 file Copies any file from a source file in the system flash to an external USB destination file.
copy disk0 license Copies the license file present in the external USB drive to the system.
copy disk0 running-config Copies the configuration file present on the external USB drive to the system's running configuration.
copy disk0 startup-config Copies the configuration file present on the external USB drive to the system's startup configuration file.

Refer to the command reference for details on using the External USB Hotplug commands.