In this case, migrate the storage medium to an idle server, mount the Toolkit to the
idle server, and erase data from the storage medium.
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.
For details, see 9.4 Logging In to a Server Using the Independent Remote Console.
Step 2 Open the CLI and run the lsscsi command to query drive letters.
Figure 9-34 shows an example.
Figure 9-34 Querying drive letters
Step 3 Run the fdisk -l command to query disk information.
As shown in Figure 9-35, 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-35 Querying hard disk information
5288 V3 Server
User Guide
9 Common Operations
Issue 26 (2018-11-19) Copyright © Huawei Technologies Co., Ltd. 273