Windows 10: Relocating two-drive Win10 install to a new system; "can't find profile"

Discus and support Relocating two-drive Win10 install to a new system; "can't find profile" in Windows 10 Installation and Upgrade to solve the problem; I upgraded one of my workstation systems. I thought it would be a good time to retire the old desktop I run Windows on. The install on that system... Discussion in 'Windows 10 Installation and Upgrade' started by StefanOrenco, Apr 8, 2020.

  1. Relocating two-drive Win10 install to a new system; "can't find profile"


    I upgraded one of my workstation systems. I thought it would be a good time to retire the old desktop I run Windows on.


    The install on that system has two drives, an SSD for boot and software C: and a hard drive for profiles, data, etc. D:.


    Not wanting to take chances:

    • I "cloned" the SSD to a newer SSD.
    • Created a new NTFS partition on a new HDD, and copied the contents of D: there. Also gave it the label D:


    I will turn the old system to a Linux system and donate it; no licensing issues


    I installed the SSD and HDD in my new workstation.


    When I point the boot selector at the SSD, it boots and shows my username. It accepts my password. However, Windows fails to load further because of a "can't find my profile" error.


    I booted to Linux, and I can see both of the drives. The files are all there.


    I am guessing that windows cannot "see" the HDD's NTFS partition, or doesn't know that it is the D: drive.


    I am able to boot Windows to a command prompt; interestingly, it assigns drive letter C: to the HDD, D: to the boot SSD.


    What can I do, from the safe mode command line, to fix this?


    Where does the "profile" information live? Could I create a minimal profile for my user under C:\users\<username>?


    Thank You ,

    :)
     
    StefanOrenco, Apr 8, 2020
    #1
  2. de123 Win User

    Windows 10 - Relocate the Users folder Part 2 -Creating Account Issue


    I decided to leave your suggestion as a last resort (before re-installation). I have my AppData folder ~ 15 GB and also my user profile is placed on the bad sectors of the drive. It took me about 5 mins to login into my desktop with a lot of disk grinding. Anyway, I tried Clonezilla in a "rescue" mode (becasue of unreadable sectors) to clone my drive. I replaced the drive with the clone and It somehow worked quite well. I am able to login and within 2 secs I get usable desktop; even Cortana suddenly came alive again and my menu shows up full. I may still have to fix some minor glitches in my profile or AppData. But everything works well and my user accounts and Program Files (that allow themselves to be installed in any locations) sit happily on the second drive.
    Thank you Kari
     
    de123, Apr 8, 2020
    #2
  3. Kari Win User
    Move Users Folder Location in Windows 10  


    If not the best way to do that but at least the way I recommend:

    • "Empty" your user profile folders as much as you can, copying documents, pics, videos, music and all other personal data from all user profiles to external HDD. As following steps require you to relocate Users folder two times, the less data is left in user profile folders, the faster the relocation process. Important: Leave system folder AppData for each profile intact, do not empty / move its content!
    • Reverse the relocating, doing exactly as told in tutorial Method Two but this time relocating Users folder back to C: drive
    • Shut down the PC, replace the disk where you had Users relocated
    • Mount the new disk, boot to Windows, assign new disk the same drive ID letter than the old one had
    • Again, do as told in Method Two, now relocating Users to new disk
    • Restore the backed up personal user data from external drive to respective folders under each user profile
     
    Kari, Apr 8, 2020
    #3
  4. JediNemo Win User

    Relocating two-drive Win10 install to a new system; "can't find profile"

    User Folder Relocation - drive letter changed / can't log in

    Not sure if this is the best thread to post this in.

    Here's the scenario.
    You use the (amazing) folder relocation tutorial in this forum. The process succeeds and you have a wonderful stress free year in Windows 10. Then your motherboard fails and you replace it with a different brand. Suddenly, when you get booted back to Windows, you can't log in! You quickly realize it's because you set your 2nd hard drive to drive letter "D:", but when Windows reloaded the disk drives because of the hardware change, it assigned "D:" to the DVD drive, and now you are stuck!

    Fear not fellow tweakers, I put in the research and have the solution (this may be redundant from another post, tried to search originally but didn't find anything, so my apologies if duplicating).

    Quick detail: First, we are going to boot into the recovery console and use the command prompt. In the recovery console, please be aware that it uses a virtual drive "X:" as the OS drive. Your other drive letters will be changed. Then we will identify which drive letter your OS is installed on. Next we will find which drive letter your user profiles are loaded on. Then we will make registry edits to fix the drive letter changes. Finally a reboot and celebratory dance.

    Note: You will need an understanding of command line operations and registry editing. If you do not, please find that information first, I will assume you have this knowledge moving forward.
    Also, there are no screen shots. I'm sorry, I didn't think I would be posting this while I went through the process, therefore I have no screen shots to share. If anyone has to go through this, it would be great if you could share your experience and provide screenshots if available.

    ***THIS INVOLVES REGISTRY EDITING. PROCEED AT YOUR OWN RISK. I AM NOT A REGISTRY EXPERT AND CAN NOT TROUBLESHOOT MISSED STEPS OR ERRORS.***

    Step 1: Boot into the Recovery Console and select the Command Prompt option.
    * If you don't know how, basic tutorial: Interrupt the boot cycle 3 times to activate the recovery consol. As the system boots, when you see the windows logo, simply do a hard reset. After 3 times, when the windows logo appears, it will say it is starting "Automatic Recovery". Once that is done, log in with the local admin account and it will (at least for me) automatically open a command prompt.
    * This can also be accomplished a number of other ways including the use of recovery drives, install media, etc.

    Step 2: If you are confident on which drive is likely which, you can skip to step 3. If not, you need to determine which drive is which in the registry. To do this you have to use a variety of steps.
    1. Find the original OS drive. In the command prompt, type the following command:
      bcdedit | find "osdevice"
      The command will return osdecice partition=*: where "*" will be the current drive letter.
    2. Now you need to find the drive that has the user profiles folder assigned, from your folder relocation. There are a few ways to do this, I will list one. Type "regedit" in the command prompt to open the registry editor.
    3. In the registry editor, navigate to HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
    4. In this part of the registry you will see all the drive letters assigned to various volumes. From step 2a, you'll know which volume would be your normal "C:" drive. Write down the hex code associated with that drive letter. Next, you need to determine which drive letters represent volumes on physically mounted drives, and which represent removable media. Not getting too technical, basically you just look for all the volumes that have a hex code length equal to that of the OS drive.
      1. For example, if in step 2a you discovered that your OS drive is assigned the letter "W:", then look at the entry with that drive letter assigned. The number of hex entries represents a volume on a physically connected drive. Find all the other drive letters that have an equal number of hex entries. Those are all volumes on physically connected drives.
    5. Explore each of those drive letters to find the one with the user profile folder.
    6. Do this by typing "dir *:" in the command prompt, where "*" equals the drive letter.
    7. Go back to the registry editor (regedit). Find the "DosDrive" key entry with same drive letter as in step 2e. Write down the hex code for that key entry.


    Step 3: Before we can make the necessary registry changes, you need to connect to a different registry, called a "Hive".
    1. This link has a more expanded explanation of what we are about to do.
    2. In the key folder pane (left pane) of the Registry Editor window, highlight the "HKEY_LOCAL_MACHINE" option.
    3. Next, click on "File" and chose the option for "Load Hive"
    4. You'll have a familiar "open" window, navigate to the os drive found in step 2a.
    5. Navigate to the windows\system32\config folder
    6. Select the "SYSTEM" file option, and click "OPEN"
    7. It will ask for a key name. This is a temporary name and thus doesn't need anything official. Make it easy to remember. I used: "Drive Letter Change". Then click "OK"
    8. Now you will see an option under HKEY_LOCAL_MACHINE for "Drive Letter Change" (or whatever you named it in the previous step.
    9. Open that new folder and navigate down to
      HKEY_LOCAL_MACHINE\Drive Letter Change\MountedDevices
    10. This will look similar to what you found in step 2d, with the notable difference being this is what Windows will look like when not in recovery!


    Step 4: Make the registry changes
    1. Delete every registry entry that either starts with \\??\ OR has a hex code LONGER than the physical drives (Step 2d).
    2. You should be left with \DosDevices\ keys with equal length hex codes.
    3. Find the key with the hex code that matches with the OS drive you wrote down in step 2d. Make sure it is assigned the drive letter "C:"
      1. There should be no change in this
    4. Find the key with a hex code that matches your user folder drive, you wrote this down in step 2f.
    5. Right click that key name and chose the option for "Rename"
    6. Change the drive letter to whichever drive letter is needed for your particular setup.
      1. When I did my folder relocation initially, I had set my user folders to be found on the D drive. So on this step I renamed the key from "\DosDevice\E:" to "\DosDevice\D:"
    7. Confirm there are no duplicate or conflicting key entries: each drive letter will be used only once.
    8. *NOTE* For THIS particular set of keys (MountedDevices), you can safely delete everything thing. Windows will re-initialize these values at boot if it detects drives that are unaccounted for. So, if you delete everything besides the C drive and your user profile drive, that is OK! Windows will reconstruct the missing keys for you. Once you can log in, you can use Device Manager to change drive letters at will. This IS NOT TRUE for all registry items.

    Step 5: Close the registry editor

    Step 6: Type "exit" at the command prompt

    Step 7: Click on the button for "Turn off PC"

    Step 8: Count to 10, take a deep breath, and turn the computer back on

    Step 9: Log into windows

    Step 10: Assuming Step 9 worked, celebrate in your preferred method. If step 9 didn't work, double check you followed my instructions. If not, shut it all down and go to the beach!
     
    JediNemo, Apr 8, 2020
    #4
Thema:

Relocating two-drive Win10 install to a new system; "can't find profile"

Loading...
  1. Relocating two-drive Win10 install to a new system; "can't find profile" - Similar Threads - Relocating drive Win10

  2. How to relocate installation of System Managed partition

    in Windows 10 Gaming
    How to relocate installation of System Managed partition: Ok, before I describe my issue, let me explain a few things.When installing windows for the first time, there are 2 partitions that are made. A system managed partition, and a primary partition. The system managed partition is what I assume to be the location of the EFI or...
  3. How to relocate installation of System Managed partition

    in Windows 10 Software and Apps
    How to relocate installation of System Managed partition: Ok, before I describe my issue, let me explain a few things.When installing windows for the first time, there are 2 partitions that are made. A system managed partition, and a primary partition. The system managed partition is what I assume to be the location of the EFI or...
  4. How to relocate installation of System Managed partition

    in Windows 10 BSOD Crashes and Debugging
    How to relocate installation of System Managed partition: Ok, before I describe my issue, let me explain a few things.When installing windows for the first time, there are 2 partitions that are made. A system managed partition, and a primary partition. The system managed partition is what I assume to be the location of the EFI or...
  5. Two installs of Win10 on different drives, won't boot one of two insta

    in Windows 10 Support
    Two installs of Win10 on different drives, won't boot one of two insta: Hello, I am not sure this question belongs here, couldn't find an appropriate classification I had a working Win10 os. Then I bought an SSD and installed another Win10 os and set up the pc to multi-boot. The original OS did boot once or twice until I learned about ahci for...
  6. Can't find new User Profile

    in Windows 10 Customization
    Can't find new User Profile: I created a new User Profile which only shows up in "Family & Others Users" but not in the Users folder nor at Log-in. I need to transfer files into this Profile but can't find it anywhere. Everything I find that looks relevant is way too complicated so am trusting...
  7. Can't find system image on recovery drive

    in Windows 10 Backup and Restore
    Can't find system image on recovery drive: One of the 1st things I do with a new PC is create & test a recovery drive. This is the 3rd Windows 10 PC I've worked on-all Toshiba Satellites by coincidence. This one seems to have a problem, possibly creating the recovery drive and if not that then certainly using it. Or...
  8. Relocating System Storage Folders

    in Windows 10 Performance & Maintenance
    Relocating System Storage Folders: I'm currently running an SSD drive for my operating system. It's only 120 GB and what to do is move the storage folders (ie, My Music, My Videos, My Documents, etc etc etc) to another drive to reduce strain on the SSD Drive. As we all know SSD Drives can be fickle, but so...
  9. Can't Install Windows on New SSD Installed on New Win10 Laptop

    in Windows 10 Installation and Upgrade
    Can't Install Windows on New SSD Installed on New Win10 Laptop: Hello everyone, Here is my issue. I just got a deal on a brand new HP Probook 450 G3 that came with a 1To HDD and Windows 10 pre-installed. I used the spare money to purchase an Windows 7 Pro x64 license and a Sandisk 256Gb SSD. My intention was to pull the original HDD...
  10. Upgrade to Win10 from 8.1 with USER in other drive without relocating!

    in Windows 10 Installation and Upgrade
    Upgrade to Win10 from 8.1 with USER in other drive without relocating!: Originally, I had Windows 8.1 pro installed in my PC having all the system/program files in my 'C' (SSD) drive and the 'Users' folder in 'D' (HDD) drive (as I had voluntarily moved it). As I had registered with Microsoft for Windows 10 upgrade, it was prompting me to upgrade...