4. Run the security-erase command with the password:
$ sudo hdparm --user-master u --security-erase <password> /dev/sdx
Figure 79. Security erase
Results
When the security-erase is finished, all data on the /dev/sdx disk is swiped (0x00).
Connect to the serial port
Steps
1. Connect suitable DB9 cables to the device COM ports.
●
Map COM1 port to /dev/ttyS0.
●
Map COM2 port to /dev/ttyS1.
2. Set the control mode as RS232/RS422/RS485 from the BIOS menu. Map the pins according to the following table:
Table 13. DB9 connector pin definitions
Pin
Signal name
RS-232
RS-422
RS-485
1
DCD
TXD422–
485DATA–
2
RXD
3
TXD
N/S
4
DTR
RXD422-
N/S
5
GND
N/S
N/S
6
DSR
N/S
N/S
7
RTS
N/S
N/S
8
CTS
N/S
N/S
9
RI
N/S
N/S
3. Execute the following command on two systems, where # is the port number corresponding to the port being used:
$ sudo chmod 777 /dev/ttyS#
4. To test COM port loopback, use the following commands.
a. Data receive command:
$ cat < /dev/ttyS#
b. Data transmit command:
$ echo "test" > /dev/ttyS#
NOTE:
The port number (
#
) must be different between data receive and data transmit.
78
Setting Up the Ubuntu Operating System