EPC-R5710 SATA hard disk interface

From ESS-WIKI
Jump to: navigation, search

1. Insert SATA disk before boot
2. After installing the SATA hard disk, we can perform read and write tests
3. According to the above content, we can know sda is our SATA disk Generate random file

 # dd if=/dev/urandom of=data bs=1 count=1024

Back up

# dd if=/dev/sda of=backup bs=1 count=1024 skip=4096

Write to SATA disk

# dd if=data of=/dev/sda bs=1 seek=4096

Read and Verify

# dd if=/dev/sda of=data1 bs=1 count=1024 skip=4096
# diff data data1

If fails, it will show as below:

Binary files data1 and data differ

Restore

# dd if=backup of=/dev/sda bs=1 seek=4096