Technical data
ServerIron ADX Administration Guide 23
53-1002434-01
Using the USB port and USB flash drive
1
Creating directories on USB drives
Using the mkdir and md commands You can create up to two directory levels on an internal USB
drive (usb0) or USB drive attached to the external USB port (usb1) and can copy files to or remove
files from these directories. As an example, a first-level directory structure on usb0 would be
usb0/dir1. An example of a second-level directory structure would be usb1/dir1/dir2. Following is
a list of rules for creating directories:
• You cannot create a directory under usb0/sys, as this contains system files. For example, the
system creates the “dpscript” directory under usb0/sys/ to store scripts for the scripting
feature.
• In a dual MP (management processor) environment, files in usb0/sys/dpscript will be
automatically synchronized between MPs.
• You can use both “/” or “\” as directory delimiters.
• Although you can copy files to and from directories, you cannot copy entire directories.
• You can delete or rename files in directories.
Following are examples of using the mkdir or md commands to create directories:
• Use the following commands to create a directory called dir1 on the usb1 drive.
ServerIronADX# mkdir usb1/dir1
ServerIronADX# md usb1/dir1
• Use the following commands to create a first-level directory called “abcd” and a second-level
directory called “dir2” on the usb0 drive.
ServerIronADX# mkdir usb0/abcd/dir2
ServerIronADX# md usb0/abcd/dir2
Syntax: mkdir <dir-full-path>
or
Syntax: md <dir-full-path>
The mkdir or md command creates a directory.
The <dir-full-path> parameter specifies the internal USB drive (usb0) or the external USB port
(usb1) on the ServerIron ADX connected to a USB drive and full path of the directory. For example,
the full path for a second-level directory “dir2” on usb0 could be usb0/dir1/dir2. You must use the
full path when creating a directory using “/” or “\” as directory delimiters.
Removing directories on USB drives
Using the rmdir command, you can remove empty directories only, and you must specify the full
path for these directories.
Following are examples of using this command:
• Use the following command to remove the empty first-level directory “dir1” from the usb1
drive.
ServerIronADX# rmdir usb1/dir1
• Use the following command to remove the empty second-level directory “dir2” from the usb0
drive.
ServerIronADX# rmdir usb0/dir1/dir2










