1.4 Heiqunhui installation: two ways to obtain SataPortMap and DiskIdxMap

Tinycore and installation tool download:

  1. tool:

Link: https://pan.baidu.com/s/1CMLl6waOuW-Ys2gKZx7Jgg?pwd=chct

Extraction code: chct

  1. tinycore:

Link: https://pan.baidu.com/s/19lchzLj-WDXPQu2cEcskBg?pwd=dcw2

Extraction code: dcw2

1. Tinycore-redpill is automatically obtained

(1) Download tinycore: The download link is https://github.com/pocopico/tinycore-redpill, which can also be obtained through the link at the beginning of this article. The author provides three versions, as shown in the figure below, the first and second are the physical machine installation versions, which are the UEFI boot image and the Legacy traditional boot image, respectively, and the third is the virtual machine boot image ;

(2) Make a system U disk: Insert the U disk, select the corresponding physical machine image version, decompress and open the image to write to the software rufus (download link: https://rufus.ie/zh/, or Chapter 4 - Tools Download), one advantage of choosing rufus is that there is no need to delete multiple partitions of the previous U disk and create a single partition for installation. Rufus will automatically delete all partitions after the pop-up warning clicks OK.

Select the corresponding U disk in "Device Options", select the decompressed tinycore image file in "Boot Type Selection", and then click Start, a warning will pop up, click OK. After the writing is completed, click Close, and after the U disk pops up, it can be inserted into the computer where you want to obtain the parameters;

(3) Start tinycore to obtain parameters: Insert the U disk, select the U disk that has just been written into the image in the startup options, and a black interface will appear after startup. Press the Enter key in the "Tiny Core Image Build" option, and then start compiling. After the compilation is completed, enter the following interface, and enter the command in the command line window in the upper left corner after startup:

./rploader.sh satamap now

After entering, you may need to press Enter once in the middle to display SataPortMap and DiskIdxMap.

(4) Shutdown: After obtaining the parameters, enter the following command to shut down:

sudo poweroff

2. Judging and obtaining according to the sata port of the motherboard

(1) SataPortMap parameter confirmation:

First confirm how many sata controllers there are on the motherboard, the number of bits in the SataPortMap is the number of sata controllers on the motherboard, and each bit corresponds to the number of sata interfaces on the sata controller.

The judgment method can be to directly observe the motherboard or check how many sata interfaces start from 0 on the motherboard through the motherboard manual. For example, if the motherboard has only one sata controller and the number of sata interfaces is two, then SataPortMap=2; if the motherboard has two sata controllers, the number of sata interfaces of the first controller is three, and the number of sata interfaces of the second controller is is four, then SataPortMap=34;

(2) DiskIdxMap parameter confirmation: It should be noted that the DiskIdxMap parameter is coded in hexadecimal with no two digits (10-16 are: 0A, 0B, 0C, 0D, 0E, 0F), and each two digits correspond to A sata controller, this parameter specifies the starting number of the sata interface in Synology.

The sata interface of the first controller is numbered from 0; the second sata controller is the last sata interface number of the first sata controller + 1; the third sata controller is the last of the second sata controller Sata interface number + 1, and so on. For example, if there is only one sata controller, and there are 5 sata interfaces on the controller, then DiskIdxMap=00; if there are two sata controllers, the first one has 5 interfaces (number 00-04), and the second There are 3 interfaces (number 05-07) on it, then DiskIdxMap=0005.

Guess you like

Origin blog.csdn.net/qq_35379989/article/details/129287254