Undetected hard drive problems could be due to loose connections, a faulty cable, issues with the USB port, old drivers, partitioning problems, or corruption of file systems. First, ensure you disconnect and reconnect the hard drive, use a different port or cable and then launch Disk Management in order to see if Windows recognizes your physical hard drive. When it displays itself without a drive letter, assigning one might solve the problem. In case your hard drive is displayed with the status of RAW or unallocated, make sure that you do not format it especially if your important files are on it. You can also try using your hard drive on another computer to determine whether it is a problem with the hard drive or your system. In case important files are lost from the undetected hard drive, Notchox can be used for data recovery.
Read more - https://notchox.com/resources/how-to-fix-hard-drive-not-detected/