Windows 7 Keeping a fixed drive letter for a mobile pone

languageservice

New Member
Joined
Sep 23, 2010
Messages
48
Keeping a fixed drive letter for a mobile phone

For over a year, I have been connecting my Android phone to my laptop with USB so that I can sync certain files. The software I use needs to be told where to sync to, and until recently this was always drive I when the phone was connected. Recently, Windows has been allocating drive letter G to the phone when it is connected, and the sync software can't find it.

I have been into the disk management console and allocated the letter I to this device but it returns to G whenever I have disconnected and reconnected it, whether there has been a reboot or not. Does anybody have an idea how I can make this drive allocation stick? Everything I have found so far either says to do what I have done, or is not really relevant to this issue.

Windows 7 ultiimate, Android Gingerbread, GoodSync for syncing files.
 

Last edited:
Solution
To keep a fixed drive letter assignment for your Android phone when connecting it to your laptop via USB, you can follow these steps:

Assign a Specific Drive Letter to your Android Phone:​

  1. Assign a Drive Letter:
    • Connect your Android phone to your laptop via USB.
    • Open Disk Management:
      • Press Win + X on your keyboard and select "Disk Management" from the menu that appears.
      []Locate your Android phone in the list of drives. []Right-click on the volume of your Android phone and select "Change Drive Letter and Paths." []Click on the "Change" button and select the drive letter you want to assign (e.g., Drive I). []Click OK to save the changes.
    []Edit the Registry to...
To keep a fixed drive letter assignment for your Android phone when connecting it to your laptop via USB, you can follow these steps:

Assign a Specific Drive Letter to your Android Phone:​

  1. Assign a Drive Letter:
    • Connect your Android phone to your laptop via USB.
    • Open Disk Management:
      • Press Win + X on your keyboard and select "Disk Management" from the menu that appears.
      []Locate your Android phone in the list of drives. []Right-click on the volume of your Android phone and select "Change Drive Letter and Paths." []Click on the "Change" button and select the drive letter you want to assign (e.g., Drive I). []Click OK to save the changes.
    []Edit the Registry to Maintain the Drive Assignment:
    • Press Win + R, type regedit, and press Enter to open the Registry Editor.
    • Navigate to HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices.
    • Find the entry with the assigned letter you want (\DosDevices\I:).
    • Rename the entry to a letter not in use (e.g., \DosDevices\Z:).
    [
    ]Create a Drive Letter Persistence Script:
    • Open Notepad.
    • Copy and paste the following script:
      Code:
      batch @echo off set vol=%1 set letter=%2 mountvol %letter%: /s mountvol %vol%: %letter%:
    • Save the file with a .bat extension (e.g., assign_drive_letter.bat).
  2. Create a Scheduled Task to Run the Script:
    • Press Win + R, type taskschd.msc, and press Enter.
    • Click on "Create Task" in the right panel.
    • Name the task, and under the "Actions" tab, create a new action to start the batch file you created.
    • Under the "Triggers" tab, set up when you want the task to run (e.g., at login).
    • Save the task. By following these steps, you should be able to maintain the drive letter assignment for your Android phone even after disconnecting and reconnecting it to your laptop. This will ensure that your sync software can locate the device consistently.
 

Solution
Back
Top