format

Use format to format a storage medium.

Syntax

format medium-name

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

medium-name: Specifies the name of a storage medium.

Usage guidelines

Formatting a storage medium permanently deletes all files on the storage medium. If a startup configuration file exists on the storage medium, back it up if necessary.

To format a partitioned storage medium, you must format the partitions individually. You cannot use the format usb command to format the medium as a whole.

You can format a storage medium only when no one is accessing the medium.

Examples

# Format the Flash.

<Sysname> format flash:
All data on flash: will be lost, continue? [Y/N]:y
Formatting flash:... Done.

# Format the third partition of the USB disk.

<Sysname> format usb2:
All data on usb2: will be lost, continue? [Y/N]:y
Formatting usb2:... Done.