< Home

format

Function

The format command formats the storage device.

Format

format device-name

Parameters

Parameter Description Value

device-name

Specifies the device name.

hda1:, usb0: or usb1:

Views

User view

Default Level

3: Management level

Usage Guidelines

Before the formatting, you are advised to save useful files in the storage media, such as software packages and configuration files.

In the formatting of storage media hda1, the device is restarted, the software packages and configuration files are backed up to device memory, and formatting is performed. After the device restart completes, the software packages and configuration files backed up earlier are restored to hda1:. If the software packages are damaged, the software packages backed up in the device restart of the last time in hda2: are used to restart the device. If the configuration files are damaged, the default configurations are used.

Example

# Format storage media hda1: of the USG6000E.
<sysname> format hda1:
Info: Formatting will clear the hda1 directory. You are advised to back up key data in this directory. 
Formatting will start after the device reboot. The process takes a comparatively long time, and do not interrupt it. 
The device will reboot. Continue?[Y/N]Y
Info: The device will reboot, and the file system will be formatted.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >