Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
share|improve this question

3 Answers 3

up vote 4 down vote accepted

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"

share|improve this answer

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.
share|improve this answer

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.

share|improve this answer
    
Thanks, but sorry - that is what I was doing... –  Brent.Longborough Mar 13 '10 at 17:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.