1-6To do… Use the command… RemarksRestore the space of a storagemedium fixdisk device OptionalAvailable in user viewFormat a storage medium format device OptionalAvailable in user viewWhen you format a storage medium, all the files stored on it are erased and cannot be restored. Inparticular, if there is a startup configuration file on the storage medium, formatting the storage mediumresults in loss of the startup configuration file.Displaying and Maintaining the NAND Flash MemoryFeatured with high storage capacity, low cost, and fast write speed, the NAND flash memory hasbecome a preferred memory of new products. The physical space of the NAND flash memory islogically divided into multiple blocks, each of which is subdivided into multiple pages. The NAND flashmemory is erased on a block basis and read on a page basis; the memory spaces are allocated on apage basis.Displaying and repairing bad blocksIt is common to have bad blocks when an NAND flash memory is shipped from the factory. Bad blockratio varies with products of different vendors. The frequently used area of the memory goes bad easily.Bad blocks cannot be used to store data, and the file system has to skip the bad blocks when it allocatesstorage spaces to files. You can get the locations of bad blocks and repair them through command lines.Follow these steps to display and repair bad blocks:To do… Use the command… RemarksDisplay the number andlocation of bad blocks in theNAND flash memorydisplay nandflashbadblock-locationRequiredAvailable in any viewRepair bad blocks fixdisk device RequiredAvailable in user viewChecking filesAfter files are written to the NAND flash memory, you can use the following two commands together tocheck the content of these files.Follow these steps to check files:To do… Use the command… RemarksDisplay the space distributionof the specified file in the NANDflash memorydisplay nandflashfile-location filename Available in any view