Windows 10: Folders missing on my second hard drive after prompted to log in with microsoft account

Discus and support Folders missing on my second hard drive after prompted to log in with microsoft account in Windows 10 Drivers and Hardware to solve the problem; So this morning, I was prompted to log in with my microsoft account when opening my computer, which I did, but now most of the folders I had on my... Discussion in 'Windows 10 Drivers and Hardware' started by Valérie_G, Sep 12, 2022.

  1. Folders missing on my second hard drive after prompted to log in with microsoft account


    So this morning, I was prompted to log in with my microsoft account when opening my computer, which I did, but now most of the folders I had on my second hard drive E:\ are gone.I tried switching user back to my local profile, but nothing.I tried restoring to a previous version, but no previous version were available so I could not do thatI check in Users folder on both my profile and the folders are not there eitherShow hidden files didn't help me eitherI'm not sure what to try now to see what's the problem. I'm not sure if my missing folders are hidden somewhere or were somehow deleted whe

    :)
     
    Valérie_G, Sep 12, 2022
    #1
  2. JediNemo Win User

    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, Sep 12, 2022
    #2
  3. Mike100 Win User
    Directing data to a second drive ?

    To direct data to a second drive I thought you opened File Explorer > This PC > then right clicked (for example) Music > Properties and changed the Location.

    However I can also open File Explorer > This PC > then left click Documents which displays Music along with other the folders.
    1) If I right click the Documents folder & change the Location, will that also change the Music & other folders listed within Documents?
    2) Why are the Music & other folders listed in Documents when they are already listed under This PC?
    File Explorer also shows Music under Quick Access. That’s 3 occurrences I’m looking at. Does it make a difference which one I use to change the Location?

    Recently I came across this method which looks like it does the same thing, but does it?
    How to Change the Default Hard Drive for Saving Documents and Apps in Windows 10

    Some online comments suggested creating a separate folder for each user account and make the new folders as subfolders of the user account folder. I am the only user. Is there some advantage of creating a user folder?

    I've never used a second drive for storage & any suggestions would be appreciated.
    Thanks
     
    Mike100, Sep 12, 2022
    #3
  4. DJRJ_AU Win User

    Folders missing on my second hard drive after prompted to log in with microsoft account

    Unable to convert local accounts to Microsoft accounts after hard drive replacement

    Hey there everyone,

    I had to replace the hard-drive on my kids' gaming PC yesterday after the hard drive decided to fail its last fail in a spectacularly messy and permanent fashion. After the install of Windows 10 Home (Creator's Update) on to the new drive I created a number
    of local accounts (one for myself and for each of the kids, just like I did with the previous hard drive installation) prior to converting them over to logging in using their Microsoft IDs.

    I was able to do this successfully for my account yesterday, going into Account Settings to log in using my Microsoft ID instead of a local password, without a hitch. Unfortunately everything went pear-shaped after I tried doing the same
    for my kids' local accounts earlier this evening, and after entering the MSA login ID and password as well as the local ID password for any of my kid's accounts I am presented with the error message "[EMAIL ADDRESS] is here already", with "Another
    user on this device uses this Microsoft account, so you can't add it here.
    " on the line beneath.

    I have gone through the other messages here and have tried the following fixes as suggested to people with similar issues:

    • Using the sfc /scannow command from a Command Prompt with Administrator Privileges,
    • Using the DISM.exe /Online /Cleanup-image /Scanhealth command from a Command Prompt with Administrator Privileges, followed by using the command
      DISM.exe /Online /Cleanup-image /Restorehealth from the same Command Prompt.
    I've also gone online and into my kid's MSA profile to remove the computer (even though the name, etc. has changed with the fresh install) from their list of connected devices, and this too fails to yield a successful outcome.

    Does anyone have a notion as to where I proceed from here on in?

    Regards,

    Doug
     
    DJRJ_AU, Sep 12, 2022
    #4
Thema:

Folders missing on my second hard drive after prompted to log in with microsoft account

Loading...
  1. Folders missing on my second hard drive after prompted to log in with microsoft account - Similar Threads - Folders missing second

  2. My second hard drive is suddenly missing. What can I do?

    in Windows 10 Gaming
    My second hard drive is suddenly missing. What can I do?: Hello,I have Windows 11 installed on my laptop with two internal drives. The c: drive is an SSD with the OS installed, and the d: drive is a hard drive where I put most of my files. I switched it on today and was greeted with an error saying that locations couldn't be found,...
  3. Folders missing on my second hard drive after prompted to log in with microsoft account

    in Windows 10 Gaming
    Folders missing on my second hard drive after prompted to log in with microsoft account: So this morning, I was prompted to log in with my microsoft account when opening my computer, which I did, but now most of the folders I had on my second hard drive E:\ are gone.I tried switching user back to my local profile, but nothing.I tried restoring to a previous...
  4. Folders missing on my second hard drive after prompted to log in with microsoft account

    in Windows 10 Software and Apps
    Folders missing on my second hard drive after prompted to log in with microsoft account: So this morning, I was prompted to log in with my microsoft account when opening my computer, which I did, but now most of the folders I had on my second hard drive E:\ are gone.I tried switching user back to my local profile, but nothing.I tried restoring to a previous...
  5. Win10: second hard drive missing after wake up

    in Windows 10 Performance & Maintenance
    Win10: second hard drive missing after wake up: Hi,sometimes when I have set my Win10-PC to sleep mode and then wake it up, one of my 2 hard drives is not available. Explorer only shows the drives on the first hard drive.The second hard drive only is available after a reboot.Is it possible to wake up the second drive...
  6. No hard drive prompt error

    in Windows 10 Drivers and Hardware
    No hard drive prompt error: https://youtu.be/ekIP8-I14K8 So I tried to MIGRATE 1TB of data from OnedDrive to Google Drive, and failed spectacularly: I've set the OnedDrive destination folder to be on an external USB 3.0 HDD (4TB). The hope was that the PC app would download the files, I'll unlik it...
  7. No hard drive prompt error

    in Windows 10 Support
    No hard drive prompt error: https://youtu.be/ekIP8-I14K8 So I tried to MIGRATE 1TB of data from OnedDrive to Google Drive, and failed spectacularly: I've set the OnedDrive destination folder to be on an external USB 3.0 HDD (4TB). The hope was that the PC app would download the files, I'll unlik it...
  8. Reset my Laptop, now my second hard drive is missing!!!

    in Windows 10 Drivers and Hardware
    Reset my Laptop, now my second hard drive is missing!!!: I just reset my PC as I thought it would be a good idea since it was slowing down, and there is a lot of clutter on it. I have 2 hard drives. The C: Drive is the SSD which runs all the essential apps such as Windows. My D: drive was just a normal hard disk which was far...
  9. Microsoft Store not seeing second hard drive

    in Microsoft Windows 10 Store
    Microsoft Store not seeing second hard drive: To preface this issue, I have Forza Horizon 3 and all of it's DLC bought on Microsoft Store. I was playing the game perfectly fine until one day last week when the game wasn't seeing any of the DLC I had installed. I tried many different solutions and decided that I would...
  10. Folders missing from hard drive

    in Windows 10 Network and Sharing
    Folders missing from hard drive: I have a Surface Pro. A few days ago I copied 4 folders of image files (jpg and cr2) to the C: drive in the Pictures folder and now those folders are gone, 4 days of vacation photos wiped out. wtf is going on?...