HP 6125G HP 6125G & 6125G/XG Blade Switches Fundamentals Configuration - Page 94

Displaying and maintaining the NAND Flash memory, Displaying and repairing bad blocks, Viewing files

Page 94 highlights

Displaying and maintaining 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: Step Command Remarks 1. Display the number and display nandflash badblock-location location of bad blocks in the [ | { begin | exclude | include } Available in any view NAND Flash memory. regular-expression ] 2. Repair bad blocks. fixdisk device Available in user view Viewing files After files are written to the NAND Flash memory, use the following commands together to view the content of these files. To view files, perform one of the following commands in any view: Task Command Display the space distribution of a specific file in the display nandflash file-location filename [ | { begin | NAND Flash memory exclude | include } regular-expression ] Display data on a specific 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 every command in the batch file. If a command has error settings or the conditions for executing the command are not satisfied, the system skips this command. You can edit a batch file on your PC, and then upload or download it to the device. If the extension of the file is not .bat, use the rename command to change it to .bat. To execute a batch file: Step 1. Enter system view. 2. Execute a batch file. Command system-view execute filename 88

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135

88
Displaying and maintaining 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:
Step
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
Viewing files
After files are written to the NAND Flash memory, use the following commands together to view the
content of these files.
To view files, perform one of the following commands in any view:
Task
Command
Display the space distribution of a specific file in the
NAND Flash memory
display nandflash file-location
filename
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Display data on a specific 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
every command in the batch file. If a command has error settings or the conditions for executing the
command are not satisfied, the system skips this command.
You can edit a batch file on your PC, and then upload or download it to the device. If the extension of
the file is not
.bat
, use the
rename
command to change it to
.bat
.
To execute a batch file:
Step
Command
1.
Enter system view.
system-view
2.
Execute a batch file.
execute
filename