Jump to content

Mapped Network Drive Keeps Disconnecting

Go to solution Solved by rmgdnz,
On 6/6/2021 at 3:20 PM, Haraikomono said:

does your nas has a static ip ?

Are you trying to connect via hostname ?

 

Looks like using an ip instead of host name is working, thank you!! Any clues as to why it doesn't work with the hostname?

Hi everyone,

 

I have a WD MyCloud NAS that I have been using for several years. On my Windows 10 PC, I simply mapped it as a network drive and connected using the credentials I set up on the NAS. After updating the firmware of the NAS, I changed my login information and remapped the drive on my PC. However, the mapped network drive fails to connect every time on startup. I have to unmap it and remap it for it to connect again. I checked the boxes "Reconnect at startup" and "Sign in using different credentials" but it still does this.

 

Strangely enough, I have the backup software Veeam Agent running on the same PC and that is able to connect to my NAS and backup data to it even though I can't connect through file explorer. 

 

Additionally, my Mac remains connected to the NAS with no issues.

 

Any help would be appreciated!

Link to comment
https://linustechtips.com/topic/1345210-mapped-network-drive-keeps-disconnecting/
Share on other sites

Link to post
Share on other sites

Do you mean it shows in 'Disconnected' status?

If you try clicking on it after say a minute or so, does it then auto connect? 

 

It could be that its trying to mount before your network has initialized. 

If this is the case, in the Linux world there is AutoFS which you can use to mount shares and delay it till after the network is up.

In Windows you could use task scheduler with the net use command to mount the drive say 1 minute after login.

 

You could even go as far as to write a basic little .bat file to ping say your router, and only connect the network drive once it receives a successful ping in an if else. 

Looking at this script appears to do just that: https://stackoverflow.com/a/26196535

Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | Asus RTX 4060 Dual OC | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO + 4 Additional Venturi 120mm Fans | 8 x 20TB Seagate Exos X22 | 4 x 16TB Seagate Exos X18 | 3 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Spoiler

NAS: Innovision 4U 24-bay chassis (12GB MiniHD SGIO Backplane) | Intel Core i9-10980xe | EVGA X299 FTW-K | EVGA RTX 2080Ti Super FTW3 | 128GB (8x16GB) Corsair Vengeance LPX 3200Mhz | DEEPCOOL PN1000M PSU| Noctua NH-D12L Chromax Black | 16 x 16TB Seagate Exos X18 | 2 x 2TB Samsung 990 Pro | 2 x 2TB Intel U.2 P4510 | LSI 9305-24i HBA

 

Link to post
Share on other sites

On 6/6/2021 at 5:11 PM, Jarsky said:

Do you mean it shows in 'Disconnected' status?

If you try clicking on it after say a minute or so, does it then auto connect? 

 

It could be that its trying to mount before your network has initialized. 

If this is the case, in the Linux world there is AutoFS which you can use to mount shares and delay it till after the network is up.

In Windows you could use task scheduler with the net use command to mount the drive say 1 minute after login.

 

You could even go as far as to write a basic little .bat file to ping say your router, and only connect the network drive once it receives a successful ping in an if else. 

Looking at this script appears to do just that: https://stackoverflow.com/a/26196535

It does not connect later unfortunately, I have to remove it and re map the drive. Thanks for the information though! This did give me an idea, perhaps a .bat file to automate the remap on login if I can't figure this out. 

Link to post
Share on other sites

On 6/6/2021 at 3:20 PM, Haraikomono said:

does your nas has a static ip ?

Are you trying to connect via hostname ?

 

Looks like using an ip instead of host name is working, thank you!! Any clues as to why it doesn't work with the hostname?

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×