R3303-HP 6600/HSR6600 Routers Fundamentals Configuration Guide

99
Configuration procedure
Perform one of the following tasks in user view as appropriate:
Task Command
Remarks
Mount a storage medium. mount device
By default, a storage medium is automatically mounted
and in mounted state when connected to the system.
Unmount a storage medium. umount device
By default, a storage medium is automatically mounted
and in mounted state when connected to the system.
Displaying and maintaining the NAND Flash memory
Only HSR6602 routers support the NAND Flash memory.
The physical space of the NAND Flash memory is divided into multiple blocks, each of which is
subdivided into multiple pages. The NAND Flash memory is erased on a block basis and read on a
page basis; the memory spaces are allocated on a page basis.
Displaying and repairing bad blocks
Bad block ratio varies with products of different vendors. Bad blocks cannot be used to store data, and
the system has to skip the bad blocks when it allocates storage spaces to files. You can get the locations
of bad blocks and repair them at the CLI.
To display and repair bad blocks:
Ste
p
Command
Remarks
1. Display the number and
location of bad blocks in the
NAND Flash memory.
display nandflash badblock-location
[ | { begin | exclude | include }
regular-expression ]
Available in any view.
2. Repair bad blocks.
fixdisk device Available in user view.
Checking files
After files are written to the NAND Flash memory, use the following commands together to check the
content of these files.
To check files, perform one of the following commands in any view:
Task Command
Display the space distribution of the specified file in
the NAND Flash memory
display nandflash file-location filename [ | { begin |
exclude | include } regular-expression ]
Display data on the specified physical page.
display nandflash page-data page-value [ | { begin |
exclude | include } regular-expression ]
Performing batch operations
A batch file comprises a set of executable commands. Executing a batch file is the same as executing the
commands one by one. However, execution of a batch file does not guarantee successful execution of