Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Unable to recognize external USB device #329

Open
lingyinsam opened this issue Nov 17, 2022 · 29 comments
Open

Unable to recognize external USB device #329

lingyinsam opened this issue Nov 17, 2022 · 29 comments

Comments

@lingyinsam
Copy link

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?
@fbelavenuto
Copy link
Owner

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

@lingyinsam
Copy link
Author

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.

@fbelavenuto
Copy link
Owner

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

@lingyinsam
Copy link
Author

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
Copy link
Author

1669030411916
like this.

@lingyinsam
Copy link
Author

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

@fbelavenuto
Copy link
Owner

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)

@lingyinsam
Copy link
Author

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

@fbelavenuto
Copy link
Owner

Yes!! One of them you already determined.

@lingyinsam
Copy link
Author

I'm going to check now.

@lingyinsam
Copy link
Author

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

@lingyinsam
Copy link
Author

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

@fbelavenuto
Copy link
Owner

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

@lingyinsam
Copy link
Author

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.

@fbelavenuto
Copy link
Owner

Ok, try with external storage into USB ports

@lingyinsam
Copy link
Author

DSM can recognize USB external storage now.
45

@lingyinsam
Copy link
Author

46

@fbelavenuto
Copy link
Owner

Please what model of DSM are you using?

@lingyinsam
Copy link
Author

DS3617xs

@lingyinsam
Copy link
Author

The DSM version is DSM 7.1.1-42962 Update 2.

@lingyinsam
Copy link
Author

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

@fbelavenuto
Copy link
Owner

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

@fbelavenuto
Copy link
Owner

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

@lingyinsam
Copy link
Author

I don't know how to select and delete.

@lingyinsam
Copy link
Author

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

@fbelavenuto
Copy link
Owner

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

@lingyinsam
Copy link
Author

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

@fbelavenuto
Copy link
Owner

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
Copy link
Owner

Closing, original question are answered

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants