Figure 75. $ sudo lshw
2. Confirm that the target disk is not frozen. To check:
$ sudo hdparm -I /dev/sdx
Figure 76. Example: target disk is frozen
If the target disk is frozen,
a. Use the following commands to enter the system into standby mode:
$ sudo su -
$ echo -n mem > /sys/power/state
The power button LED blinks when the system is in standby mode.
b. Press the power button once to wake up the system.
c. Use the
hdparm
command a second time, and status is now “not frozen”, as shown in the following figure:
Figure 77. Disk not frozen
3. Set up a security password before executing the security-erase:
$ sudo hdparm --user-master u --security-set-pass <password> /dev/sdx
Figure 78. Set security password
Setting Up the Ubuntu Operating System
77