默认情况下,Windows 7 为您提供在 CD 或DVD上创建(DVD)系统修复光盘(system repair disc)的选项,只需单击几下即可。但是,Windows 7 没有为您提供创建带有系统恢复(system recovery)工具的可启动闪存棒的选项。(memory stick)没有用于使用此类工具创建闪存驱动器的内置工具,也没有您可以使用的命令。但是,这并不意味着您不能这样做。在此过程中,您必须亲自动手,因为它涉及更改名为Recovery的(Recovery)系统文件夹(system folder)的一些安全权限,并且还涉及将一些系统文件复制到记忆棒(memory stick)上。如果你想学习如何创建一个(USB) 带有系统恢复工具的(system recovery)USB记忆棒(memory stick),在Windows 7中,阅读本指南:
步骤 1(Step 1)。准备USB 记忆(USB memory)棒
有时使用带有系统恢复工具的可启动(System Recovery)USB 闪存(USB flash)很有用,尤其是如果您是上网本所有者(netbook owner)。使用恢复工具创建(Creating)和使用USB 闪存(USB flash)棒(memory stick)并不容易,但如果您按照下面描述的步骤操作,您就可以做到。
首先(First),您需要将记忆棒(memory stick)插入Windows 7 计算机上的USB 端口。(USB port)打开Windows 资源管理器并检查(Windows Explorer)记忆棒(memory stick)上是否没有您需要的文件。如果您确实有需要的文件,请将它们复制到您的计算机上。然后,右键单击驱动器并选择Format。
在“格式化可移动磁盘”("Format Removable Disk" )窗口中,确保选择NTFS文件系统。然后点击开始(Start)。其他配置选项并不重要——默认设置就可以了。
格式化U 盘后(USB stick),在其上创建两个名为boot和sources的文件夹,如下图所示。
步骤 2(Step 2)。访问您需要的文件
您必须有权访问计算机中两个文件夹中的文件。其中一个称为Recovery,另一个称为Boot。您需要在记忆棒(memory stick)上复制的文件在其中:
- 恢复(Recovery)位于C:\Recovery.Windows 7使用此文件夹来加载系统恢复(System Recovery)工具。
- Boot位于C:\Windows\Boot,其内容用于引导操作系统(operating system)。
请注意,C字母代表安装Windows 7的驱动器。在您的计算机上可能会有所不同。
默认情况下,Recovery和Boot文件夹都是隐藏的。要查看它们,请打开Windows 资源管理器(Windows Explorer)并访问文件夹选项(Folder Options)。单击窗口左上角的“组织”按钮,然后单击(Organize)“文件夹和搜索选项”。("Folder and search options.")
在“查看(View)”选项卡中,选中“显示隐藏的文件、文件夹和驱动器”("Show hidden files, folders and drive" )并取消选中“隐藏受保护的操作系统文件(推荐)”。("Hide protected operating system files (Recommended).")按OK按钮启用新设置。
接下来,您需要打开计算机上的Recovery文件夹。默认情况下,即使您以管理员身份登录,也无法访问它。要打开它,请按照如何获取文件和文件夹的所有权和更改权限(ownership and change permissions)一文中描述的步骤操作,并为您的用户帐户添加“完全控制”("Full control")权限。
步骤 3(Step 3)。将系统修复(Copy system repair)工具复制到U(USB memory)盘
现在您拥有创建可启动记忆棒(memory stick)所需的所有文件。首先(First),打开恢复(Recovery)文件夹。在其中,有一个子文件夹,其中有一个自动生成的名称(一系列数字和字母),标准长度为 32 个字符。文件夹的名称因一台 PC 与另一台 PC 不同。打开你的。
复制boot.sdi文件并将其粘贴到 USB 记忆棒上的引导文件夹中。(boot)
然后将Winre.wim文件复制到USB 记忆棒上的(USB memory)源(sources)文件夹并将其重命名为boot.wim。
现在打开文件夹"C:\Windows\Boot\DVD\PCAT" 并将BCD文件复制到USB 记忆棒上的引导文件夹。(boot)
转到"C:\Windows\Boot\DVD\PCAT\en-US"并将bootfix.bin文件复制到USB 记忆棒上的引导(boot)文件夹。
最后,转到"C:\Windows\Boot\PCAT"并将bootmgr文件复制到(bootmgr)记忆棒(memory stick)的根目录。
新创建的记忆棒(memory stick)的结构应该类似于下图中的结构。
boot文件夹包含以下文件:BCD 、boot.sdi 和 bootfix.bin(BCD, boot.sdi and bootfix.bin)文件,sources文件夹仅包含 boot.wim(the boot.wim)文件。在记忆棒的(memory stick)根目录(root directory)中,您必须有文件bootmgr。
第 4 步(Step 4)。使用系统恢复(system recovery)工具测试USB 记忆(USB memory)棒
完成本教程中的所有步骤后,我们建议您测试新创建的可启动棒。重新启动计算机并(computer and boot)从记忆棒(memory stick)启动以检查它是否正常工作。如果它有效,您应该获得系统恢复工具菜单(System Recovery Tools menu)。
请注意,要从USB 记忆(USB memory)棒启动,可移动设备必须是计算机 BIOS 的“启动设备顺序”("Boot Device Order" )部分中设置的第一个设备。
如果Recovery 文件夹(Recovery folder)中没有Winre.wim 文件(Winre.wim file)怎么办?
在某些情况下,如果在Recovery文件夹中找不到(Recovery)Winre.wim文件,您可能会遇到此问题。如果你运气不好,解决它的最简单方法是从另一台装有它的Windows 7计算机复制Winre.wim文件。(Winre.wim)但是,您必须注意使用来自与您的架构相同的Windows 7的(Windows 7)Winre.wim文件。如果您打算在 32 位Windows 7设备上使用可启动(Windows 7)USB 记忆(USB memory)棒,请确保从另一个 32 位Windows 7复制(Windows 7)Winre.wim文件。如果您在 64 位设备上使用它,请复制Winre.wim来自 64 位 Windows 7 计算机。
如果您无法访问其他Windows 7设备并且无法从中复制Winre.wim,我们知道的另一个解决方案是使用Windows 7 安装 DVD 或 USB 记忆棒(installation DVD or USB memory stick)。将Windows 7(Windows 7)安装 DVD 或记忆棒(installation DVD or memory stick)插入(Insert)或插入计算机。然后启动Windows 资源管理器(Windows Explorer)并(sources)从安装 DVD 或记忆棒打(installation DVD or memory stick)开源文件夹。在其中,您应该找到一个名为Install.wim的文件。
在您的计算机上,创建一个新文件夹并为其命名您喜欢的任何名称。例如,我们在安装了Windows 7的C 盘(C drive)上创建了一个名为temp的文件夹。
现在以管理员身份打开命令提示符并在其中输入以下命令: (Command Prompt)dism /get-wiminfo /wimfile:D:\sources\install.wim。请注意,D是(D)Windows 7安装分配给DVD 或 USB 记忆棒(DVD or USB memory stick)的字母。将其替换为计算机上正确的字母。您应该会获得一份列表,其中包含DVD或USB 记忆(USB memory)棒上可用的Windows 7安装版本。记(Write)下Windows 7的索引号(index number)安装与您的匹配。如前所述,使用相同的体系结构(32 位或 64 位)很重要。如果安装Windows 7的(Windows 7)DVD 或记忆棒(DVD or memory stick)包含不同版本的操作系统(operating system),例如Windows 7 Home Basic、Windows 7 Home Premium、Windows 7 Professional或Windows 7 Ultimate,您可以选择其中任何一个,因为它们都里面有相同的Winre.wim文件。
您应该仍在Command Prompt中,现在必须在其中输入以下命令:dism /Mount-Wim /WimFile:D:\sources\install.wim /index:1 /MountDir:C:\temp /readonly。请注意,您必须调整此命令以匹配您的环境:
- D:\sources\install.wimWindows 7时在(Windows 7)DVD 或 USB 记忆棒(DVD or USB memory stick)上找到install.wim的路径;
- /index:1是您在上一个命令中选择的索引号;(index number)
- C:\temp是你一开始创建的文件夹的路径。在我们的例子中,这是 C 盘中的临时(temp)文件夹。
现在您的计算机应该将install.wim文件挂载到temp文件夹中。这是一个超过 2GB 的大文件,因此至少需要几秒钟才能挂载。这也取决于您的computer and DVD/USB memory stick data reading performance。完成后,您应该会收到一条有关“操作 [正在] 成功完成”的消息。("The operation [being] completed successfully.")
关闭命令提示符(Command Prompt)并启动Windows Explorer。导航到临时(temp)文件夹或您创建的文件夹。在其中,应该有所有标准的Windows 7文件夹:Program Files、Users和Windows。
浏览到"C:\temp\Windows\System32\Recovery" - 在那里您总能找到winre.wim文件。复制它并完成本教程中的其他步骤,以在Windows 7中使用(Windows 7)系统恢复(system recovery)工具创建USB 记忆(USB memory)棒。
完成后,再次以管理员身份打开命令提示符并运行命令(Command Prompt)dism /unmount-wim /mountdir:C:\temp /discard 以卸载install.wim文件。
然后,您还可以删除为查找winre.wim创建的(winre.wim)临时(temp)文件夹。
结论
如果您的计算机崩溃,创建系统修复棒(system repair stick)的选项是一个很好的保险。我们希望您发现此提示很有用。有关恢复工具的更多信息,请阅读以下文章。另外,如果您有任何问题,请发表评论。
Create a USB memory stick with system recovery tools in Windows 7
By default, Windows 7 gives you the option tо create a system repair disc on a CD or a DVD, and all it takes is a few сlicks. However, Windows 7 does nоt gіνe you an option to create a bootаble flash memory stick with system recovery tools on it. There is no built-in tool for creating a flash drive with such tools, and there is no cоmmand which you could use. However, that does not mean that you cannot do it. You must get your hands dirty in the proсess, as it involves changing some security permissions on a system folder called Recovery and it also involves copying some system files onto your memory stick. If you want to learn how to create a USB memory stick with system recovery tools on it, in Windows 7, read this guide:
Step 1. Prepare the USB memory stick
There are times when having a bootable USB flash with System Recovery tools is useful, especially if you are a netbook owner. Creating and using a USB flash memory stick with recovery tools is not easy but it you can do it if you follow the steps described below.
First of all, you need to insert the memory stick into a USB port on your Windows 7 computer. Open Windows Explorer and check that there are no files that you need on the memory stick. If you do have files you need on it, copy them to your computer. Then, right-click on the drive and choose Format.
In the "Format Removable Disk" window, make sure that you choose the NTFS file system. Then click on Start. The other configuration options are not critical - the defaults work just fine.
After you have formatted the USB stick, create on it two folders named boot and sources, as shown in the capture below.
Step 2. Get access to the files you need
You must have access to files found in two folders from your computer. One of them is called Recovery, and the other is called Boot. The files that you need to copy on the memory stick are in them:
- Recovery is located at C:\Recovery. This folder is used by Windows 7 to load System Recovery tools.
- Boot is located at C:\Windows\Boot and its contents are used to boot the operating system.
Note that the C letter represents the drive where Windows 7 is installed. It might be different on your computer.
Both the Recovery and the Boot folders are hidden by default. To view them, open Windows Explorer and access Folder Options. Click the Organize button from the top-left corner of the window and then on "Folder and search options."
In the View tab check "Show hidden files, folders and drive" and uncheck "Hide protected operating system files (Recommended)." Press the OK button to enable the new settings.
Next, you need to open the Recovery folder on your computer. By default, it cannot be accessed, even if you are logged on as administrator. To open it, follow the steps described in the article How to take ownership and change permissions of files and folders and add "Full control" permissions for your user account.
Step 3. Copy system repair tools to the USB memory stick
Now you have all the needed files to create the bootable memory stick. First, open the Recovery folder. Inside it, there is a subfolder with an automatically generated name (series of numbers and letters) with a standard length of 32 characters. The folder's name is different from one PC to another. Open yours.
Copy the boot.sdi file and paste it in the boot folder on the USB memory stick.
Then copy the Winre.wim file to the sources folder on the USB memory stick and rename it to boot.wim.
Now open the folder "C:\Windows\Boot\DVD\PCAT" and copy the BCD file to the boot folder on the USB memory stick.
Go to "C:\Windows\Boot\DVD\PCAT\en-US" and copy the bootfix.bin file to the folder boot on the USB memory stick.
Finally, go to "C:\Windows\Boot\PCAT" and copy the bootmgr file to the root of the memory stick.
The structure of the newly created memory stick should be similar to the one in the picture below.
The boot folder contains the files: BCD, boot.sdi and bootfix.bin files, and the sources folder hosts only the boot.wim file. In the root directory of the memory stick, you have to have the file bootmgr.
Step 4. Test the USB memory stick with system recovery tools
After you have completed all the steps from this tutorial, we recommend you to test your newly created bootable stick. Reboot your computer and boot from the memory stick to check if it works properly. If it works, you should get the System Recovery Tools menu.
Note that to boot from a USB memory stick the removable device has to be the first device set in the "Boot Device Order" section of the computer BIOS.
What to do if there is no Winre.wim file in the Recovery folder?
In some situations, you might be faced with this problem when there is no Winre.wim file found in the Recovery folder. If you have this bad luck, the easiest way to solve it is to copy the Winre.wim file from another Windows 7 computer that has it. However, you must pay attention to use a Winre.wim file that is from a Windows 7 that uses the same architecture as yours. If you intend to use the bootable USB memory stick on a 32-bit Windows 7 device, then make sure you copy the Winre.wim file from another 32-bit Windows 7. If you use it on a 64-bit device, then copy Winre.wim from a 64-bit Windows 7 computer.
If you do not have access to another Windows 7 device and you cannot copy Winre.wim from it, the other solution we know is to use a Windows 7 installation DVD or USB memory stick. Insert or plug the Windows 7 installation DVD or memory stick into your computer. Then launch Windows Explorer and open the sources folder from the installation DVD or memory stick. Inside it, you should find a file called Install.wim.
On your computer, create a new folder and give it any name you like. For example, we created a folder called temp on the C drive where Windows 7 is also installed.
Now open Command Prompt as an administrator and enter the following command in it: dism /get-wiminfo /wimfile:D:\sources\install.wim. Note that D is the letter assigned to the DVD or USB memory stick with the Windows 7 installation. Replace it with the letter that is right on your computer. You should get a list with the versions of Windows 7 installations available on the DVD or the USB memory stick. Write down the index number of the Windows 7 installation that matches yours. As said earlier, it is important that you use the same architecture - 32-bit or 64-bit. If the DVD or memory stick with the Windows 7 installation contains different editions of the operating system such as Windows 7 Home Basic, Windows 7 Home Premium, Windows 7 Professional, or Windows 7 Ultimate, you can choose any one of them, as they all have the same Winre.wim file inside.
You should be still inside Command Prompt, where you must now enter the following command: dism /Mount-Wim /WimFile:D:\sources\install.wim /index:1 /MountDir:C:\temp /readonly. Note that you must adjust this command to match your environment:
- D:\sources\install.wim is the path where the install.wim is found on your DVD or USB memory stick with the Windows 7 installation;
- /index:1 is the index number that you chose on the previous command;
- C:\temp is the path of the folder you created in the beginning. In our case, that is the temp folder from the C drive.
Now your computer should mount the install.wim file in the temp folder. This is a large file with a size of over 2GB, so it takes at least a few seconds to mount. That also depends on the speed of your computer and DVD/USB memory stick data reading performance. When it is done, you should get a message about "The operation [being] completed successfully."
Close Command Prompt and launch Windows Explorer. Navigate to the temp folder or to the one you created. Inside it, there should be all the standard Windows 7 folders: Program Files, Users, and Windows.
Browse to "C:\temp\Windows\System32\Recovery" - that is the place where you will always find a winre.wim file. Copy it and complete the other steps from this tutorial to create your USB memory stick with system recovery tools in Windows 7.
When you are done, open the Command Prompt as administrator once more and run the command dism /unmount-wim /mountdir:C:\temp /discard to unmount the install.wim file.
Then, you can also delete the temp folder that you created to find winre.wim.
Conclusion
The option to create a system repair stick is a great insurance to have in case your computer crashes. We hope you found this tip useful. For more information about the recovery tools, read the articles below. Also, if you have any questions, leave a comment.