arpl icon indicating copy to clipboard operation
arpl copied to clipboard

Unable to recognize external USB device

Open lingyinsam opened this issue 2 years ago • 2 comments

I come from China, my English is very poor, the following words, I was written in Chinese, with the translation tool translated into English, I hope you can understand.

  1. My equipment: G4560+B365SD4, a PCIE to 10 SATA HUB, there are 3 SATA interfaces on the motherboard. There are 2+1USB3.0 and 2+2USB2.0.
  2. My problem: DSM recognizes my device as having 26 SATA. When I plug in an external storage device to any USB port, it will be recognized as internal storage. DSM prompts me to create a new storage pool to use. This prevents me from transferring files using external storage devices. How to solve it?
  3. Finally, how to adjust SataPortMap, DiskldxMap and SasldxMap?

lingyinsam avatar Nov 17 '22 14:11 lingyinsam

Please go to menu, choose "cmdline menu" and choose "Show SATA(s) # ports and drives". Post screen photo here

fbelavenuto avatar Nov 18 '22 19:11 fbelavenuto

QQ截图20221119095413 The first SATA controller is the motherboard, which shows 6 SATAs, but my motherboard only has 3 SATA interfaces and 1 M.2 interface (NVME/M.2 SATA). Interface No. 4 in the picture is my M.2 SATA boot disk. The second SATA controller is an external SATA HUB, and this HUB only has 10 SATA interfaces. When the HUB is loaded at startup, 1-6 interfaces correspond to 7-12 in the figure. In the 7-10 interface of the HUB, I only insert 1 hard disk, which is displayed as 1F, corresponding to 38 in the figure.

lingyinsam avatar Nov 19 '22 02:11 lingyinsam

Ok, this ASMedia have 32 ports internally, is much!! Physically have only 10 ports?

fbelavenuto avatar Nov 21 '22 11:11 fbelavenuto

Yes, but it doesn't quite get the ports sorted. 1-6 total 6 port sorting is 01,02,03,04,05,06,7-10 sorting should be 1F... like hexadecimal.

lingyinsam avatar Nov 21 '22 11:11 lingyinsam

1669030411916 like this.

lingyinsam avatar Nov 21 '22 11:11 lingyinsam

This is the prompt after I insert the U disk. QQ截图20221121194219 QQ截图20221121194324

lingyinsam avatar Nov 21 '22 11:11 lingyinsam

This SATA card created unnecessary internal ports, "SataPortMap" and "DiskIdxMap" variables will not work correctly.

Please map the tree missing ports so we know what the number of each one will be. Four port is number 38 (0x1F hexa relative)

fbelavenuto avatar Nov 21 '22 12:11 fbelavenuto

Do you mean that I need to determine the ports corresponding to 7-10 of this SATA HUB?

lingyinsam avatar Nov 21 '22 12:11 lingyinsam

Yes!! One of them you already determined.

fbelavenuto avatar Nov 21 '22 12:11 fbelavenuto

I'm going to check now.

lingyinsam avatar Nov 21 '22 12:11 lingyinsam

I made sure that the 7-10 of this HUB corresponds to 35-38. 35 36 37

lingyinsam avatar Nov 21 '22 12:11 lingyinsam

So what do I need to do now to get it working?

lingyinsam avatar Nov 21 '22 13:11 lingyinsam

Do a test, add the SataPortMap cmdline, set the value to 46 Look here how do it: https://github.com/fbelavenuto/arpl/issues/103 This will remove ports 13-38 (absolute), or relative ports 7-32, from extra SATA board.

fbelavenuto avatar Nov 21 '22 13:11 fbelavenuto

I gave it a try. Now booting up at 7-10 and inserting the hard disk DSM does not recognize it, and there is no response.

lingyinsam avatar Nov 21 '22 13:11 lingyinsam

Ok, try with external storage into USB ports

fbelavenuto avatar Nov 21 '22 13:11 fbelavenuto

DSM can recognize USB external storage now. 45

lingyinsam avatar Nov 21 '22 13:11 lingyinsam

46

lingyinsam avatar Nov 21 '22 13:11 lingyinsam

Please what model of DSM are you using?

fbelavenuto avatar Nov 21 '22 13:11 fbelavenuto

DS3617xs

lingyinsam avatar Nov 21 '22 13:11 lingyinsam

The DSM version is DSM 7.1.1-42962 Update 2.

lingyinsam avatar Nov 21 '22 13:11 lingyinsam

I remember before the 7-10 when the hard drive was not plugged in, the USB external storage was normal.

lingyinsam avatar Nov 21 '22 13:11 lingyinsam

Ok, now remove the SataPortMap and add the variable "usbportcfg" with value "0x3C000000000"

fbelavenuto avatar Nov 21 '22 13:11 fbelavenuto

Select the two entries (first is wrong, last is correct)

fbelavenuto avatar Nov 21 '22 13:11 fbelavenuto

I don't know how to select and delete.

lingyinsam avatar Nov 21 '22 13:11 lingyinsam

I gave it a try. DSM is still recognized as a local disk even if the USB external storage device is inserted. QQ截图20221121220810

lingyinsam avatar Nov 21 '22 14:11 lingyinsam

Ok so I need to study more to see how to solve your problem

fbelavenuto avatar Nov 21 '22 14:11 fbelavenuto

If I change the SataPortMap to 49, will it work?

lingyinsam avatar Nov 21 '22 14:11 lingyinsam

If I change the SataPortMap to 49, will it work?

If your define the SataPortMap with this value, will happens:

image

In first line only the first four ports will be recognized and in second line only the first 9 ports will be recognized.

The problem is your SATA card (second line), it has too many unused ports in between!!

fbelavenuto avatar Nov 22 '22 13:11 fbelavenuto

Closing, original question are answered

fbelavenuto avatar Jan 12 '23 20:01 fbelavenuto