< Home

fixdisk

Function

The fixdisk command restores a storage device in which the file system fails to run properly.

Format

fixdisk drive

Parameters

Parameter Description Value

drive

Specifies the name of the storage device to restore.

-

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The following describes the storage device name.
  • drive is the storage device and is named as flash:.
  • In a stack system, devicename can be set as follows:

    • flash: root directory of the flash memory of the master switch in the stack.
    • chassis ID#flash: root directory of the flash memory on a device in the stack.

    For example, slot2#flash: indicates the flash memory in slot 2.

If the file system does not run properly, the system prompts you to restore it. You can run the fixdisk command to attempt to restore the file system. You can run the fixdisk command to release the space whose usage status is unknown from the storage device.

You can run the dir command to display information about a specified file or directory on the storage device. If the command output contains unknown, for example, 30,000 KB total (672 KB free, 25,560 KB used, 3,616 KB unknown), you can run the fixdisk command to release the space whose usage status is unknown.

Precautions

  • The fixdisk command is not recommended when the system works properly. This command cannot rectify device-level faults.

  • If you are still prompted to restore the storage device after running the fixdisk command, the physical medium may have been damaged.

  • Running the fixdisk command to restore a flash memory requires high CPU usage. Therefore, do not run this command when the CPU usage in the system is high.

Example

# Restore the flash memory when an error message indicating that the flash memory is faulty is displayed.

Lost chains in flash detected, please use fixdisk to recover them!
<HUAWEI> fixdisk flash:
Fix disk flash: will take long time if needed...
% Fix disk flash: completed. 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >