SATA Hard Disk Mount and Read&write Speed Test on OKA40i-C Development Board

Forlinx
3 min readNov 29, 2022

--

This article will introduce the way SATA hard disk mount and read&write speed test on Forlinx OKA40i-C SBC.

OKA40i-C Development Board
OKA40i-C Development Board

1, Mount SATA hard disk

Forlinx OKA40i-C development board provides a SATA interface.

Hardware Preparation

1. SSD hard disk, 120GB.

2. Cut out D -type interface to SATA power cable from discarded power supply.

3. One SATA data cable.

4. 12V power supply.

Hardware connection

  1. Connect 12V power to 12V power supply of development board (Note: The digital power supply used here has a clip, which is directly clipped to 12V power cable of SATA power cable);
  2. Insert D -type interface into development board;
  3. Connect hard disk to SATA interface of development board with SATA data cable;
  4. 12V power supply, development board power supply ;
    ( ps: It is recommended to change power supply to 12V input. Thus you don’t need to prepare a 12V power supply. For novices, if power supply is reversed, development board will not work);
  5. Power supply. Everything is normal.

Mount Hard Disk

  1. fdisk -l, system finds SATA hard disk, under /dev/sda:

2. View by df -Th. It’s not automatic mounted:

3. Create a new directory: mkdir /mnt/mydriver, and then try to mount: monut /dev/sda5 /mnt/mydriver, prompting an error: unknown filesystem type ‘ntfs’.

4. This is because ntfs partition format is not recognized under linux. It need to be formatted as ext4 format. Execute #mkfs.ext4 /dev/sda5 and follow prompts to complete format:

5. Mount it to /mnt/mydriver, and then use df -Th to view that SATA hard disk is mounted successfully.

2, Read/write Speed Test

  1. After SATA hard disk mounted, let’s make a disk speed test here:

(1)View disk status through df -h:

# hdparm -tT /dev/sda5/dev/sda5:
Timing buffer-cache reads: 420 MB in 0.51 seconds = 839503 kB/s
Timing buffered disk reads: 478 MB in 3.00 seconds = 163015 kB/s

cahce reads 840MB/s. Disk continues to read 163MB/s.

(2)Then test read speed of OKA40i-C development board:

# hdparm -tT /dev/mmcblk0p7/dev/mmcblk0p7:
Timing buffer-cache reads: 414 MB in 0.50 seconds = 831310 kB/s
Timing buffered disk reads: 126 MB in 3.00 seconds = 42988 kB/s

Write speed SSD: 44MB/s, EMMC: 19.2MB/s.

According to test results, the performance of disk reading and writing of development board is similar to that of desktop computer.

You may find more details and/or request additional information on the product page.

--

--

Forlinx

Established in 2007, Forlinx Embedded Tech Co., Ltd. is a leading developer of embedded systems solutions, focused on powerful and flexible products.