如何在Windows 10中镜像用户文件夹

微服务

我要使用两个250 GB的SSD并在C:\ Users \上对其进行镜像,但是根据“磁盘管理镜像”对话框,文件夹必须为空(如下所示)

磁盘管理镜像尝试挂载到“ c:\ users”,并说“挂载在以下空NTFS文件夹中:”

因此,如果单击“下一步”按钮,则会出现错误消息“您指定的文件夹不为空。卷只能安装在一个空的文件夹中。”:

错误消息的图片:“您指定的文件夹不为空。卷只能安装在一个空的文件夹中。

这是一个特殊的系统文件夹,但这是所有最重要的数据所在的位置,这就是为什么我要在其中放置一组镜像驱动器的原因。必须有一些步骤来做到这一点...

注意1:在购买SSD之前,我目前(在屏幕快照中)使用一些备用驱动器作为概念证明。

Note 2: The mirror is being created between the 48.29 GB Unallocated space on Disk 1 and the 48.19 GB Unallocated space on Disk 2.

MicroservicesOnDDD

[I will wait a bit, to see if anyone comes up with a real solution for mirroring the whole user folder without having to go through all of the trouble this solution requires. I really do want to accept somebody else's answer!]

After some more research, I have now come to believe that you cannot mirror the whole user folder, but you can effectively do the same thing by changing the location of each of the special subfolders to be on the mirrored drive.

What I show from here on is only for the Documents folder.  Here are the steps:

  1. Create a Mirrored Drive (I used M for "Mirrored" drive).
  2. Go to the Documents folder, and right-click => Properties
  3. Select the Location Tab
  4. Choose Move and put the location of the Documents folder on the Mirrored drive. My Documents folder was moved from C:\Users\JoeUser\Documents to M:\Users\JoeUser\Documents Then point everyone who expects it to be on C: to go to M: with a symbolic link: (Using a command window (cmd.exe) run As Administrator...) MkLink.exe   /D   C:\Users\JoeUser\Documents M:\Users\JoeUser\Documents Creating a shortcut in any of the standard ways should also work.
  5. Any hardcoded paths starting with the original Documents folder will be broken and will have to be changed. If you set up the machine this way to start with, then this step should not have to be done, but each setup will either automatically find the Documents folder or be pointed there as part of the setup.

What follows is a more detailed set of steps with screenshots for those who want more detail:

  1. Free up some space on two different physical disks to create a mirrored disk. A. in Disk Management, Had to right-click-"Shrink Volume..." on Disk 1 to match the 48 GB of unallocated space on Disk 2.
  2. Create the Mirrored drive A. in Disk Management, right-click on the Unallocated 48.29 GB of disk 1, choose "New Mirrored Volume..." and click Next through the intro screen

新的镜像对话框,第一个屏幕,显示驱动器选择

Select "Disk 2" and click "Add>" Click "Next>"

已选择磁盘1和磁盘2,即将单击“下一步”按钮

On next screen, choose "Assign the following drive letter:" option, and figure out what drive letter you want to use. I used "M" which for me stands for "Mirrored Drive". Click "Next>" button.

分配驱动器号或路径屏幕

I used the NTFS file system, chose the default allocation size, made the label "Mirrored" and checked "Perform a quick format", then clicked "Next>" and then the "Finish" button to complete setting up the mirrored drive.

格式画面

The mirrored drive clearly shows in Disk Management (maroon color).

磁盘管理与新创建的镜像一起显示

Find the Documents folder and right-click-"Properties". Then select the "Location" tab.

Documents文件夹属性,选择“位置”选项卡,显示“ C:\ Users \ JoeUser \ Documents”。

Change the "C:" C-drive designation to "M:" m-drive (the mirror). Click "OK"

“ C:”更改为“ M:”

Click "Yes" to create the full new path.

Dialog asking to create "M:\Users\JoeUser\Documents"

Click "Yes" to move all the documents files over to the mirror.

Move files dialog.

Wait for files to copy from the C: drive to the Mirror M: drive. If your documents folder is big, this could take a while.

File copy progress dialog.

现在,对于重要的细节,从C:到M:的符号链接(或快捷方式)为其他人提供了指向文件实际位置的指针:在具有管理员权限的命令窗口中,运行以下命令:MkLink / DC:\ Users \ JoeUser \ Documents M:\ Users \ JoeUser \ Documents

What should be the results of the command, "symbolic link created for C:\Users\JoeUser\Documents <<===>> M:\Users\JoeUser\Documents"

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

如何在Windows 10中更改用户文件夹的大小写?

来自分类Dev

如何在Windows 10中重命名用户文件夹?

来自分类Dev

在Windows 10中更改用户文件夹名称

来自分类Dev

如何在Windows 10中清理Windows \ Installer文件夹?

来自分类Dev

如何在Windows 10中真正强制删除文件/文件夹

来自分类Dev

如何在Windows用户库中重命名默认文件夹

来自分类Dev

如何在用户选择的根文件夹中创建包含某些子文件夹的文件夹?

来自分类Dev

如何在Windows 10中将标签添加到文件夹

来自分类Dev

如何在Windows 10快速访问中更改文件夹图标?

来自分类Dev

如何在Windows 10中更改GameDVR视频文件夹

来自分类Dev

如何在Windows 10开始菜单中更改文件夹名称

来自分类Dev

如何在Windows 10中管理网络文件夹?

来自分类Dev

如何在Windows 10中重命名c:\ users \ userName文件夹?

来自分类Dev

如何在Windows 10中更新文件夹的副本/备份?

来自分类Dev

如何在特定文件夹中启动 Windows 10 Mail 应用程序?

来自分类Dev

如何在Win 10中设置文件夹属性?

来自分类Dev

如何在Windows应用商店中复制文件夹

来自分类Dev

如何在Windows中删除yeoman创建的文件夹?

来自分类Dev

如何在Windows中同步网络文件夹?

来自分类Dev

如何在Windows 7中更改文件夹颜色?

来自分类Dev

如何在Windows 7中仅搜索文件夹而不是文件夹和文件

来自分类Dev

Windows 中我的用户文件夹中的奇怪文件夹

来自分类Dev

如何在Windows 10中从文件资源管理器文件夹树中删除OneDrive文件夹?

来自分类Dev

您如何在Windows 10的“打开文件”对话框中查看隐藏的文件和文件夹?

来自分类Dev

如何在用户窗体中显示单个Windows资源管理器文件夹(无法导航到该文件夹)?

来自分类Dev

如何在Windows 10中将文件夹显示为图标并将文件显示为缩略图

来自分类Dev

Windows 10文件历史记录:如何在备份中包括其他文件夹?

来自分类Dev

Windows XP中的C#访问用户文件夹

来自分类Dev

在Windows 10中仅针对该文件夹保存文件夹排序

Related 相关文章

  1. 1

    如何在Windows 10中更改用户文件夹的大小写?

  2. 2

    如何在Windows 10中重命名用户文件夹?

  3. 3

    在Windows 10中更改用户文件夹名称

  4. 4

    如何在Windows 10中清理Windows \ Installer文件夹?

  5. 5

    如何在Windows 10中真正强制删除文件/文件夹

  6. 6

    如何在Windows用户库中重命名默认文件夹

  7. 7

    如何在用户选择的根文件夹中创建包含某些子文件夹的文件夹?

  8. 8

    如何在Windows 10中将标签添加到文件夹

  9. 9

    如何在Windows 10快速访问中更改文件夹图标?

  10. 10

    如何在Windows 10中更改GameDVR视频文件夹

  11. 11

    如何在Windows 10开始菜单中更改文件夹名称

  12. 12

    如何在Windows 10中管理网络文件夹?

  13. 13

    如何在Windows 10中重命名c:\ users \ userName文件夹?

  14. 14

    如何在Windows 10中更新文件夹的副本/备份?

  15. 15

    如何在特定文件夹中启动 Windows 10 Mail 应用程序?

  16. 16

    如何在Win 10中设置文件夹属性?

  17. 17

    如何在Windows应用商店中复制文件夹

  18. 18

    如何在Windows中删除yeoman创建的文件夹?

  19. 19

    如何在Windows中同步网络文件夹?

  20. 20

    如何在Windows 7中更改文件夹颜色?

  21. 21

    如何在Windows 7中仅搜索文件夹而不是文件夹和文件

  22. 22

    Windows 中我的用户文件夹中的奇怪文件夹

  23. 23

    如何在Windows 10中从文件资源管理器文件夹树中删除OneDrive文件夹?

  24. 24

    您如何在Windows 10的“打开文件”对话框中查看隐藏的文件和文件夹?

  25. 25

    如何在用户窗体中显示单个Windows资源管理器文件夹(无法导航到该文件夹)?

  26. 26

    如何在Windows 10中将文件夹显示为图标并将文件显示为缩略图

  27. 27

    Windows 10文件历史记录:如何在备份中包括其他文件夹?

  28. 28

    Windows XP中的C#访问用户文件夹

  29. 29

    在Windows 10中仅针对该文件夹保存文件夹排序

热门标签

归档