Possible to use mlink to move (e.g.) user's folder


  1. Posts : 6
    Linux
       #1

    Possible to use mlink to move (e.g.) user's folder


    I'd like to move "Users" and "Program Files" and some others to another partition.

    I usually do this via brute force registry hacks, but I understand this is not supported, and it is tedious.

    I was thinking it would be more elegant to do it with mlink.

    I've heard that it is possible to do this with certain folders (e.g. Users and \Windows\winsxs) by jumping through some hoops.

    I was hoping that with a Linux boot cd I could facilitate the process. Currently I am downloading a new Linux boot cd, because the ones I had weren't cutting it.

    I was wondering if someone could tell me if I am wasting my time, as I await the completion of this download.

    Here is an example of how to move the winsxs folder.
    Other folders can also be moved.

    P.S. The target partition is part of a dynamic disk.
      My Computer


  2. Posts : 5,642
    Windows 10 Pro (x64)
       #2

    It is possible, just be aware it may or may not work depending on certain unknown factors. But I've in the past reorganized the Program Files to a new location without much issue in both Windows XP and Windows Vista using junctions.

    Just understand one thing. You will not save any hard drive space by moving the core application from Program Files. They are merely hardlinks, moving those will leave behind references and make duplicate content. You are better off telling new application installations to the alternative location.
      My Computer


  3. Posts : 6
    Linux
    Thread Starter
       #3

    logicearth said:
    It is possible, just be aware it may or may not work depending on certain unknown factors.
    Just to be clear, are you saying it is possible using mlinks as I described?

    logicearth said:
    Just understand one thing. You will not save any hard drive space by moving the core application from Program Files. They are merely hardlinks, moving those will leave behind references and make duplicate content. You are better off telling new application installations to the alternative location.
    Which are the core programs?

    I'm talking about moving the whole Program Files directory, and replacing it with an mlink called "Program Files' too, but points to a different partition.
      My Computer


  4. Posts : 5,642
    Windows 10 Pro (x64)
       #4

    FuriousGeorge said:
    Just to be clear, are you saying it is possible using mlinks as I described?
    Yes it is possible. There just might be unforeseen problems.

    logicearth said:
    Which are the core programs?
    Everything that is installed by default. Like Internet Explorer. See screenshot below. Basically moving these you are only creating duplicate content and not saving any space on the primary drive. That is why in my opinion it is best to selectively move applications to the other drive.
    Attached Thumbnails Attached Thumbnails Possible to use mlink to move (e.g.) user's folder-untitled.jpg  
      My Computer


  5. Posts : 6
    Linux
    Thread Starter
       #5

    OK, I see what you mean regarding hardlinks. My 'master plan' should account for that. It basically boils down as follows:

    1) mlink -j c:\Program Files.new p:\Program Files
    2) (boot another OS)
    3) cp c:\Program Files p:\Program Files
    4) del c:\Program Files
    5) mv c:\Program Files.new c:\Program Files
    6) (boot Win7. The program files has theoretically been deleted and moved to another partition, replaced by an NTFS junction)
      My Computer


  6. Posts : 5,642
    Windows 10 Pro (x64)
       #6

    Hardlinks cannot span across partitions like junctions and symlinks...So your 'master plan' will not account for them.
      My Computer


  7. Posts : 6
    Linux
    Thread Starter
       #7

    FuriousGeorge said:
    OK, I see what you mean regarding hardlinks. My 'master plan' should account for that. It basically boils down as follows:

    1) mlink -j c:\Program Files.new p:\Program Files
    2) (boot another OS)
    3) cp c:\Program Files p:\Program Files
    4) del c:\Program Files
    5) mv c:\Program Files.new c:\Program Files
    6) (boot Win7. The program files has theoretically been deleted and moved to another partition, replaced by an NTFS junction)
    logicearth said:
    Hardlinks cannot span across partitions like junctions and symlinks...So your 'master plan' will not account for them.
    Which is why, as I stated above when I clarified, I am using a junction point.

    It seems to have worked as expected so far.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:45.
Find Us