How do I preserve folder shares on a USB external drive?

5

I'm using a WD Passport external hard drive with my notebook, and have a folder on this drive I need to share on my Windows network.

Occasionally, when the drive is not plugged in, Windows appears to lose the shares, and I have to go in and share again after it's plugged in again.

Does anyone have a good way to avoid losing the shares?

Environment:

  • Vista Home Premium, SP2
  • WD MyPassport USB-powered portable hard drive

Brent.Longborough

Posted 2010-03-13T12:32:36.270

Reputation: 629

Answers

5

Well, here's what I arrived at (the long way round):

  1. Mount the drive to a shared NTFS directory - in this case

    D:\Mounts\WD.MyPassport\

  2. Assign a drive to the folder. SUBST would do it, but I prefer via the Registry:

    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices]
    "H:"="\\??\\D:\\Mounts\\WD.MyPassport"

Brent.Longborough

Posted 2010-03-13T12:32:36.270

Reputation: 629

1

The base of the problem is that Windows remaps drives on reconnections.

To make certain that the drive always uses the same drive letter or path, I use USB Drive Letter Manager (freeware) to ensure that when a drive is connected, it always maps the same way.

From there, you can either:

  1. Manually share the drive after you reconnect it;
  2. Run a cron job in the background to continually check for the drive, and share it; or
  3. Use the Windows autoconnect service to share it when the drive is attached.

billdehaan

Posted 2010-03-13T12:32:36.270

Reputation: 789

-1

Try to assign permanent drive letter to Hard Disk. From Control Panel click on Administrative Tools then Computer Management. In Disk Management right click on the drive, then click "Change Drive Letter". Choose one drive letter and click ok. Now you have to try if it works.

Sebtm

Posted 2010-03-13T12:32:36.270

Reputation: 393

Thanks, but sorry - that is what I was doing... – Brent.Longborough – 2010-03-13T17:12:05.147