Your SSD should be automatically recognized whiteout necessarily rebooting Windows. I suggest you try reinstalling your USB controllers to fix the issue.
Press Windows + R, type devmgmt.msc and press Enter. In Device Manager, expand Universal Serial BUS controllers. Right-click Generic USB Hub and choose Uninstall. Repeat the same thing for the other USB controllers.
Once done, restart your computer. It will reinstall all the USB controllers after restart.
The PC misbehaves in the way I have described SOMETIMES, so I only need a remedy occasionally. Your suggestion implies a permanent change to the PC - that is NOT warranted - in any case USB is not involved, the SSDs are connected through SATA ports.
Your remedy of rebooting is the very thing I'm trying to avoid.
I already know that without Win-R, a reboot will restore recognition.
Rebooting in the steps I suggested is only necessary to allow the computer to reinstall the drivers - it's not a method to apply more than once. If the drivers are corrupted, reinstalling them can repair them and often fix the issue permanently.
Now, as you connect your SSD through SATA and not USB, make sure your SATA cable isn't faulty and is correctly connected to the SATA port. You may try another SATA port to see if the issue occurs again.
Go to Device Manager, expand IDE ATA/ATAPI controllers, right-click on your SATA controller and choose Update driver. Like the previous steps with USB, updating the driver may fix the connection issue that occurs occasionally.
Try changing the power settings of your computer. Search for "power options" from the search box in the taskbar. Select Change plan settings next to your selected plan, then choose Change advanced power settings.
Click Change settings that are currently not available. Expand Hard disk and set both options of Turn off hard disk after to Never. This will stop Windows from turning off your hard drives after idle, which may prevent them from being detected again.
Can you also share the batch file you got so we can take a look?
The batch file goes :
DISKPART /s C:\script.txt
where script.txt specifies : rescan
That gave me the idea me that a potential technique is to see if Disk Management could be used - sure enough, its Action Menu has 'rescan Disks'. I suspect that is what the batch file activates. In my opinion, that is the ideal was to solve this intermittent problem - if only it achieved the desired result, but it hasn't..
On the one occasion where I needed to detect a disk, and the batch failed, the problem was solved by reseating the leads into the SSD.I was already aware of that mechanical weakness. The other instances which are not due to a poor connection because a reboot fixes the problem, have not happened since the Disk Management option occurred to me.
Didn't find the answer you are looking for?Ask a question
Just to be sure, the file "script.txt" is saved on C:\ along with the "Users", "Program Files", "Windows"... folders?
You can try testing the script manually by opening cmd as admin. Type the following commands and press Enter after each of them:
Does that work to force the detection of your SSD? If yes, try launching the batch file with admin rights and see if it works now.
Otherwise, here are other methods I suggest to try:
Open Device Manager, select the icon of your computer, then click Action > Scan for hardware changes.
Try logging out and in to see if that allows to detect your SSD without rebooting your computer.
For the Power Settings, open Control Panel > Hardware and Sound > Power Options. Alternatively, press Windows + R and type powercfg.cpl. Next to the selected plan, click Change plan settings and follow my previous instructions.
The opportunity to test your suggestions had finally arrived.
Device Manager failed;
I could not find a log-off option.
Not yet tried power options, but am skeptical as that is a 'permanent' adjustment, whereas the problem is
Restart solved it (as said in my first post).
NO progress yet.
Thank you for updating us about the situation.
To log out of Windows, open the Start menu and click the profile picture (or icon) of your user account, then select Sign out.
Regarding the power options, the change is permanent indeed, but it can be reverted to its default values anytime, and in case it doesn't help with the issue. When you click Change plan settings > Change advanced power settings, select the Restore plan defaults button.
As no solution has been found yet, I suggest you test with the power options first and if that doesn't work either, try creating a new user account and see if the issue occurs with it. This will help to find out if there's a problem with your current user account.
Thank you for the user-account suggestion - however, that is not practicable, unless you mean, set up a second account and when the problem occurs, switch accounts to see if it happens there as well. IS THAT what you mean ?
'until failure is likely to happen.=' That is not practicable. It can take weeks before the failure re-occurs.
If failure happens in my usual account, I can try to see it if shows in my other account, but I sense that that is NOT what you had in mind when you suggesting trying another account, but you can see some merit in it.