• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Mount a network share as local harddrive

Joined
May 20, 2004
Messages
10,487 (1.44/day)
I've been Googling and messing around for the past two hours or so. And looked some time ago as well, without any succes in both cases.

The issue is simple, I wish to mount a UNC path as a local harddrive. It could be by mounting it as network disk first, that's not a problem.

The following things can already be scrapped:
-net use
-subst
-masterdisk (uses subst in the code)
-MountVD (same issue)
-DFS
-NTFS junctions
-starwind/starport
-Winbolic
-Moving around things from my network places

I did find one, though not very useful, workaround. I can use tools like Truecrypt/pgp to create a virtual drive on a network share. So basically some tool that acts in a similar way in between would be nice. So far it doesn't seem to exist though.
However, considering there are good working virtual optical drives including burning support, virtual floppies, virtual tapedrives and virtual everythings and of course the virtual harddrive programs like Truecrypt/pgp create I'm pretty sure it's not a technical impossibility.
 
Joined
Aug 30, 2006
Messages
7,197 (1.12/day)
System Name ICE-QUAD // ICE-CRUNCH
Processor Q6600 // 2x Xeon 5472
Memory 2GB DDR // 8GB FB-DIMM
Video Card(s) HD3850-AGP // FireGL 3400
Display(s) 2 x Samsung 204Ts = 3200x1200
Audio Device(s) Audigy 2
Software Windows Server 2003 R2 as a Workstation now migrated to W10 with regrets.
http://support.microsoft.com/kb/246887/en-us

Why is net use not working?



http://www.cezeo.com/tips-and-tricks/net-use-command/
http://technet2.microsoft.com/WindowsServer/en/library/dd619380-bb33-4d3a-b0b5-29c6206000351033.mspx
 
Joined
Aug 30, 2006
Messages
7,197 (1.12/day)
System Name ICE-QUAD // ICE-CRUNCH
Processor Q6600 // 2x Xeon 5472
Memory 2GB DDR // 8GB FB-DIMM
Video Card(s) HD3850-AGP // FireGL 3400
Display(s) 2 x Samsung 204Ts = 3200x1200
Audio Device(s) Audigy 2
Software Windows Server 2003 R2 as a Workstation now migrated to W10 with regrets.
Do you know why it isnt working, rather than just the fact that is doesnt? Do you see any errors? Is the problem related to %20 in your UNC path? Or login/user credentials? Or a "path too long"? Or access rights? (Local not network).

http://www.pcreview.co.uk/forums/thread-2357620.php post #4
http://www.greyware.com/kb/kb2002.329.asp

If that doesnt work, then sounds like you need to avoid any "mapping" and get down to a service level driver that does this for you, completely hidden/transparent to any app or service.
 
Joined
May 20, 2004
Messages
10,487 (1.44/day)
Do you know why it isnt working, rather than just the fact that is doesnt? Do you see any errors? Is the problem related to %20 in your UNC path? Or login/user credentials? Or a "path too long"? Or access rights? (Local not network).

http://www.pcreview.co.uk/forums/thread-2357620.php post #4
http://www.greyware.com/kb/kb2002.329.asp

If that doesnt work, then sounds like you need to avoid any "mapping" and get down to a service level driver that does this for you, completely hidden/transparent to any app or service.

Because the programs simply don't allow network drives. Like I said, making a network mapping works fine, it simply won't use it. There are various programs that refuse this, it's documented in most cases.

Avoiding mapping is exactly what the question is. It has to be detected as a local harddrive. ie some virtual drive. For this very reason workarounds like Truecrypt do work. In my situation this isn't a solution though.

It simply is a limitation of programs to use network drives (as UNC path or mapped), in this case it's backup software. Funny detail here is that it can use UNC paths. However due to the situations this isn't an option. MS RIS server has it too, as do various media centers.
 
Joined
May 20, 2004
Messages
10,487 (1.44/day)
Hmmm, when writing that last part I was rethinking the situation. It's basically due to swapping network storage devices and not letting the backup software notice they're swapped. since that would require manual intervention or far complex scripting. I already wrote a tool to detect the connected NAS and mount it as a predefined drive, which can't be used. I can't change the devicenames to match since they're connected at the same time now and then.

My new idea however is instead of mounting them, adding an entry to the hostsfile. ie make a backup entry and point it at either NAS when connected. I could then just use the UNC to the NAS via this new name. Of course, I just got home so I can't try this. I'll try it Thursday when I'm at work.

However, I'm still interested in the initial solution, as I've run into the limitation more often. Having a solution ready for my next encounter is always handy. Or of course if the hosts solution fails :D
 
Joined
Aug 30, 2006
Messages
7,197 (1.12/day)
System Name ICE-QUAD // ICE-CRUNCH
Processor Q6600 // 2x Xeon 5472
Memory 2GB DDR // 8GB FB-DIMM
Video Card(s) HD3850-AGP // FireGL 3400
Display(s) 2 x Samsung 204Ts = 3200x1200
Audio Device(s) Audigy 2
Software Windows Server 2003 R2 as a Workstation now migrated to W10 with regrets.
Joined
May 20, 2004
Messages
10,487 (1.44/day)
What a PITA.

This might work: http://software.techrepublic.com.com/abstract.aspx?docid=224992 (API)

Otherwise, for complete overkill http://www.eterlogic.com/Products.VirtualDriveSDK.html but if this is a commercial problem you are trying to solve... the SDK might be in your budget.

Strikedrive does sound like the thing I need, doesn't work here under 2k8/64 though. The browse to folder thing is broken and I can't manually type something.

If I could spend $400 on this, I wouldn't bother with the current config :D

Anyway, now I have two options to fix the damn issue. Yay :)
 
Joined
Aug 10, 2006
Messages
4,413 (0.68/day)
Processor Intel Core i7-7700K
Motherboard ASUS ROG Strix Z270E Gaming
Cooling Arctic Cooling Freezer i11
Memory 4x 8GB DDR4 Corsair Vengeance LPX @ 2133MHz
Video Card(s) 2x NVIDIA GTX 1080 Ti FEs
Storage 512GB SSD, 2x2TB HDD
Display(s) AOC U2879VF, AOC G2260VWQ6
Case Corsair 750D Airflow Edition
Power Supply EVGA Supernova 850G
Software Windows 10 x64 Pro
Did you try just hitting it with a hammer? Has worked for me more times than I can imagine.
 
Joined
Apr 5, 2005
Messages
6,771 (0.97/day)
Location
Republic of Asia (a.k.a Irvine), CA
System Name ---
Processor FX 8350 @ 4.00 Ghz with 1.28v
Motherboard Gigabyte 990FX-UD3 v4.0, Hacked Bios F4.x
Cooling Silenx 4 pipe Tower cooler + 2 x Cougar 120mm fan, 3 x 120mm, 1 x 200 mm Red LED fan
Memory Kingston HyperX DDR3 1866 16GB + Patriot Memory DDR3 1866 16GB
Video Card(s) Asus R9 290 OC @ GPU - 1050, MEM - 1300
Storage Inland 256GB PCIe NVMe SSD for OS, WDC Black - 2TB + 1TB Storage, Inland 480GB SSD - Games
Display(s) 3 x 1080P LCDs - Acer 25" + Acer 23" + HP 23"
Case AeroCool XPredator X3
Audio Device(s) Built-in Realtek
Power Supply Corsair HX1000 Modular
Software Windows 10 Pro 64 bit
interesting topic. marked.
 

DaMulta

My stars went supernova
Joined
Aug 3, 2006
Messages
16,168 (2.50/day)
Location
Oklahoma T-Town
System Name Work in progress
Processor AMD 955---4Ghz
Motherboard MSi GD70
Cooling OcZ Phase/water
Memory Crucial2GB kit (1GBx2), Ballistix 240-pin DIMM, DDR3 PC3-16000
Video Card(s) CrossfireX 2 X HD 4890 1GB OCed to 1000Mhz
Storage SSD 64GB
Display(s) Envision 24'' 1920x1200
Case Using the desk ATM
Audio Device(s) Sucky onboard for now :(
Power Supply 1000W TruePower Quattro
Can you go tools mount drive then \\computer\c$
 
Joined
May 20, 2004
Messages
10,487 (1.44/day)
Can you go tools mount drive then \\computer\c$

Read my posts.



Anyway, I've created a simple application (ie a few lines of code) that checks for the presence of either NAS device, resolves the IP and then edits the hosts file to create a new hosts. I put this in the task scheduler, so it checks every hour now. Seems to work great so far. Tonight the process will run and if it works as expected we test with the other NAS on Monday. I'm pretty sure it works though.
If/when it turns out to work some backup has to be redirected to use my new hostname. Then we can blindly switch NAS devices and take them home. The software won't notice a thing :)

Effectively we could let the cleaning lady handle this task now.
 

DaMulta

My stars went supernova
Joined
Aug 3, 2006
Messages
16,168 (2.50/day)
Location
Oklahoma T-Town
System Name Work in progress
Processor AMD 955---4Ghz
Motherboard MSi GD70
Cooling OcZ Phase/water
Memory Crucial2GB kit (1GBx2), Ballistix 240-pin DIMM, DDR3 PC3-16000
Video Card(s) CrossfireX 2 X HD 4890 1GB OCed to 1000Mhz
Storage SSD 64GB
Display(s) Envision 24'' 1920x1200
Case Using the desk ATM
Audio Device(s) Sucky onboard for now :(
Power Supply 1000W TruePower Quattro
Yea, I seen that after I posted it. But I wanted to know if you got it fixed, and you did:)
 
Top