Windows 10: Junctions, Libraries for multiple drives, and search questions

Discus and support Junctions, Libraries for multiple drives, and search questions in Windows 10 Support to solve the problem; My system has a secondary drive (E:, with the main Public folders on it, and I use Libraries to access it. Under Libraries\Documents, there are 2... Discussion in 'Windows 10 Support' started by BruceBon, Jun 27, 2016.

  1. BruceBon Win User

    Junctions, Libraries for multiple drives, and search questions


    My system has a secondary drive (E:, with the main Public folders on it, and I use Libraries to access it. Under Libraries\Documents, there are 2 folders: My Documents points to C:\Users\bbon\Documents, and Documents points to E:\Users\Public\Document. In the process of accomplishing this, I removed the Public\Documents folder from C: and then created a "Directory Junction" from C:\Users\Public\Documents to E:\Users\Public\Documents with mklink /J .
    Attachment has my notes for how I did this.

    One disadvantage of doing what I did is that it is difficult to tell where a file is stored. I believe the files are actually stored on E:, but File Explorer displays the same thing whether I navigate to C:\Users\Public\Documents or E:\Users\Public\Documents. Doing a Properties on a file from the C: folder shows it as being located on the C: drive, and doing Properties on the identical file from the D: folder shows it as being located on the E: drive, with all listed attributes other than location identical. I believe it is doing what I intended, but I don't know how to verify it.

    Questions: How can I verify if a folder is a physical folder or a link? When I do Properties on C:, is it safe to assume that the Used Space is actual space on the C: drive, or does it count space used in the Public\Documents folder that is actually on the E: drive?

    This is also screwing up file searches from File Explorer. Trying to get it working right, yesterday I reindexed everything, and confirmed that the Windows Search service is automatic and running.

    As an example of the Issue, I have a number of files whose names begin with "Yellow". If I navigate in File Explorer to This PC\E:\Users\Public\Documents or through a Quick Access link, and enter "Yellow" in the search box, I get a list of 257 such files, which I believe to be a correct search - not all file names have "Yellow" in them, so I think it is indexing by content as well as file name. But if I navigate to either This PC\C:\Users\Public\Documents or to Libraries\Documents\Documents and enter "Yellow", I get just 10 files, all of which have "Yellow" in the file name. What is much worse, when I navigate to a sub-folder of Documents that contains 6 of the 10 files with "Yellow" in their names, a search for "Yellow" gives the ridiculous result "No items match your search"!

    Questions: Why does one case include contents and the other only name? It seems like the Libraries link is going to C: rather than E:, but I'm almost certain I put E:\Users\Public\Documents into Libraries. And what could cause the difference in search behavior depending on the level in the directory tree?

    Sorry for the length of this query, but this is complicated and weird behavior that I am trying to understand. If anyone can point me to a Windows File System/Explorer for Dummies, I will be glad to look for answers there!

    :)
     
    BruceBon, Jun 27, 2016
    #1

  2. Why do I have 2 copies of the game I bought from the windows store wasting space on my drives?

    Thats a junction link... The data is actually stored in the junction links target... But the programs thinks it is on the junction links location.

    NTFS junction point - Wikipedia

    Btw... MS uses hardlinks and junction links all over in windows... Thats why sometimes you think the Windows folder is taking up a lot of space... But actually it is not... Windows explorer is just counting the same file multiple times.
     
    Alexei Stukov, Jun 27, 2016
    #2
  3. disa012 Win User
    Picture folder is "shortcut" and I am denied access...where is it?

    Thank you...Ramesh Srinivasan

    This was most helpful.

    Joe

     
    disa012, Jun 27, 2016
    #3
  4. Junctions, Libraries for multiple drives, and search questions

    Launch Command Prompt (Admin)
    CD to the parent folder or drive of the folder in question

    dir /aL /s
    ** shows the reparse points (junctions)

    exit
     
    Slartybart, Jun 27, 2016
    #4
  5. topgundcp Win User
    When you create a junction link. You actually create a shortcut of a folder which contains only few bytes about the linked folder. If you notice, the Junction link also has an arrow.
    Here's an example:
    I created a link "My Music" under This PC->Music which points to D:\00-My Music. "My Music" has an arrow which tells you this folder only contains the info on the actual "D:\00-My Music" folder where all data is stored. Right click on "My Music"->Properties will give the info on the actual "D-00 My Music"

    MKLINK [[/D] | [/H] | [/J]] Link Target
    The target is where the real data is stored.

    More info: Be more efficient and better organized with the MKLink symbolic link tool - TechRepublic


    Junctions, Libraries for multiple drives, and search questions [​IMG]
     
    topgundcp, Jun 28, 2016
    #5
  6. Great tip ... unless shortcut arrows are turned off. Y won't see the visual reminder. Still a good tip.

    Nothing can be stored in a reparse point (Junction) - it's a pointer, not a container. It might look as though there are things there, but that's a reflection of what is really in the Target of the pointer.

    Searches are a bit of a learning curve. Indexing only affects finding content in the file. Searches will always find files, boy if a file contains the word yellow in it and the contents are not indexed, then you have to specifically tell Search to look in the contents when you start the search.

    See:
    Advanced Query Syntax (Windows)
    and
    Use the Search Contextual tab in Windows 10 to efficiently find files - TechRepublic

    to get you started with better searching.

    I have noticed that Searching C: turns up things on E: and F: - Libraries point to folders on those drives.
     
    Slartybart, Jun 28, 2016
    #6
  7. BruceBon Win User
    Thanks for your responses. Will post how it goes when I get back to this (busy with other things right now).
     
    BruceBon, Apr 4, 2018
    #7
Thema:

Junctions, Libraries for multiple drives, and search questions

Loading...
  1. Junctions, Libraries for multiple drives, and search questions - Similar Threads - Junctions Libraries multiple

  2. Have a question on how to search for a file in multiple folders in mapped network drives

    in Windows 10 Gaming
    Have a question on how to search for a file in multiple folders in mapped network drives: I have a lot of music and video files that are stored in different network attached storage drives. Each of them are mapped as network drives on my desktop. I had a desktop that was running Windows 7 and I used the "Custom" search option to search for a file through all those...
  3. Have a question on how to search for a file in multiple folders in mapped network drives

    in Windows 10 Software and Apps
    Have a question on how to search for a file in multiple folders in mapped network drives: I have a lot of music and video files that are stored in different network attached storage drives. Each of them are mapped as network drives on my desktop. I had a desktop that was running Windows 7 and I used the "Custom" search option to search for a file through all those...
  4. Multiple Questions

    in Windows 10 Gaming
    Multiple Questions: So I'll keep it sweet and simpleI have 2 desktopsOne I'll call desktop and the other I'll call Deep thoughtDesktop is unable to sign into One drive, every time I try to I get a nice little error message saying Java script is blocked or not enabled with my web browser.. Slight...
  5. Multiple Questions

    in Windows 10 Software and Apps
    Multiple Questions: So I'll keep it sweet and simpleI have 2 desktopsOne I'll call desktop and the other I'll call Deep thoughtDesktop is unable to sign into One drive, every time I try to I get a nice little error message saying Java script is blocked or not enabled with my web browser.. Slight...
  6. Multiple Questions

    in Windows 10 BSOD Crashes and Debugging
    Multiple Questions: So I'll keep it sweet and simpleI have 2 desktopsOne I'll call desktop and the other I'll call Deep thoughtDesktop is unable to sign into One drive, every time I try to I get a nice little error message saying Java script is blocked or not enabled with my web browser.. Slight...
  7. Library volume Licensing Question

    in Windows 10 Updates and Activation
    Library volume Licensing Question: Hello, I have a customer that is a public library that wants to license 50 computers of windows 10, and add more next year. I thought they might be able to do an EA agreement, but appears they have to have a minimum of 250 devices or users. What is the best way to do...
  8. Junctions/Hard Link over network drive

    in Windows 10 Ask Insider
    Junctions/Hard Link over network drive: Is there anyways I can trick applications into viewing a remote drive (or folder) as a local one? So I fully understand that making a junction or a hard link over a network drive to a local drive isn’t supported, and that I would need to use a symbolic link. However, I’m a...
  9. Questionable Files in Download Libraries

    in Windows 10 Software and Apps
    Questionable Files in Download Libraries: Greetings, Im running Windows 10 and after deleting Microsoft Flight-X and scenery add-on files, I was looking for any remaining that might have been hidden. In 'Libraries/Documents/Downloads' folder I found another Folder labeled 'Download App'. Inside this folder are...
  10. Creating a library question...

    in Windows 10 Support
    Creating a library question...: Folks, I'm enjoying customizing my Windows 10 install. However, I have a question... My 500GB SSD C drive is getting full. According to WinDirStat, the biggest folder is "Downloads", at over 100GB. Now, I like having "Downloads" easily accessible and where it is:...