Step 2 Open the CLI.
Step 3 Query information about drive letters.
lsscsi
Figure 12-26 Querying drive letters
Step 4 Query drive information.
fdisk -l
NOTE
l The drive with the * symbol in the Boot column is the system drive. As shown in Figure 12-27, sda
is the system drive.
l Do not directly clear system drive data. Before clearing system drive data, clear data from other
storage media.
Figure 12-27 Querying drive information
Step 5 Write all 0s to the drive to be cleared.
Command: badblocks -swft 0 Drive letter
Example: badblocks -swft 0 /dev/sdb
Figure 12-28 Clearing data (example)
FusionServer Pro CH121 V5 Compute Node
User Guide
12 Common Operations
Issue 06 (2019-08-10) Copyright © Huawei Technologies Co., Ltd. 165