12. SATA (hard disk) Test
Insert the hard disk. Ensure it is in the SMARC device list.
Note: This operation may damage the data stored in the hard disk. Before starting
the test, make sure there is no critical data in the hard disk being used.
Reading & writing test
•
HD_DIR="/run/media/mmcblk1p1"
#create data file
dd if=/dev/urandom of=/var/data1 bs=1024k count=100
#write data to hard disk
dd if=/var/data1 of=$ HD_DIR/data2 bs=1024k
count=100
#read data2, and compare with data1
cmp $HD_DIR/data2 /var/data1
Hard disk speed test
•
HD_DIR="/run/media/mmcblk1p1"
# hard disk write speed
dd if=/dev/zero of=$HD_DIR/$i/test bs=1M count=1000
oflag=nocache
# hard disk read speed
dd if=$HD_DIR/$i/test of=/dev/null bs=1M oflag=nocache
90
RP-103-SMC User Manual
Need help?
Do you have a question about the RP-103-SMC and is the answer not in the manual?