
An idle servers is required in scenario 3.
Note
l
The
badblocks
command erases data by writing all 0s on the storage device based on the
command parameters specified.
l
The methods described in this section are for reference only. You can also use other
methods to erase storage media data.
Exercise caution when performing this operation. The data erased cannot be restored.
Erasing Data from an HDD or SSD by Running the badblocks Command
Step 1
Log in to the server holding the hard disk to be erased.
3.4 Logging In to the Server Using the Independent Remote Console
Step 2
Open the CLI and run the
lsscsi
command to query drive letters.
Figure1 Querying drive letters
shows an example.
Figure 9-22
Querying drive letters
Step 3
Run the
fdisk -l
command to query disk information.
Figure1 Querying drive letters
, the hard disk with the
*
symbol in the
Boot
column is a system disk, and
sda
is the drive letter.
NOTE
Do not directly erase system disk data. Before erasing system disk data, erase data from other storage
media.
Figure 9-23
Querying hard disk information
RH2288 V3 Server
User Guide
9 Common Operations
Issue 32 (2019-03-28)
Copyright © Huawei Technologies Co., Ltd.
288