112
Using the emergency shell
At startup, the device tries to locate and load the Comware startup software images. These images
can include a boot image, a system image, and feature images. If the following requirements are met,
the device enters emergency shell mode:
• The boot image exists and can be used.
• The system image,or a feature image is missing or corrupt.
After the device enters emergency shell mode, you can log in through the console port to obtain and
load a system image to start the Comware system. After the Comware system is started, you can
load feature images images. This chapter describes how to obtain and load the system image in
emergency shell mode. For information about software images and how to load feature images, see
"Upgrading software."
If more than
one member exists on the device, each member starts up independently. If one member
enters emergency shell mode, log in to that member through its console port to load a system image
for it. For more information about how to log in through the console port, see "Logging in through the
con
sole port for the first device access."
Managing the file system
The emergency shell provides some basic file system management commands for managing the
files on the device's storage media.
You can use these commands to manage the file system.
IMPORTANT:
•
A file deleted by using the delete command cannot be restored.
• The format command permanently deletes all files and folders from a storage medium, and the deleted files
and folders cannot be restored.
To manage the file system, execute the following commands in user view:
Task Command Remarks
Display files or folders.
dir
[
/all
] [ file-url
] N/A
Create a folder on a
storage medium.
mkdir
directory
The parent folder must already exist. For example,
to create folder
flash:/test/mytest
, the parent folder
test
must already exist on the Flash.
The name for the new folder must be unique in the
parent folder.
Display the current
path.
pwd
N/A
Copy a file.
copy
fileurl-source
fileurl-dest
N/A
Move a file.
move
fileurl-source
fileurl-dest
The destination folder must have enough space for
the file.
Display the contents of
a file.
more
file-url
N/A
Permanently delete a
file.
delete
file-url
N/A
Delete a folder.
rmdir
directory
To delete a folder, first delete all files and child
folders in the folder.