Ubuntu has two installation methods: one is a Windows-based operating system installed on Windows (such as Windows 7). In this case, Ubuntu is like a program in Windows 7, you can detach it from the control panel and access resources in Windows in Ubuntu. However, in this case, if Windows 7 is reinstalled (or if Windows 7 is broken someday, it cannot be reinstalled ), the boot information of the previously installed Ubuntu is no longer available, so you need to prepare it before reinstalling Windows 7.
Ubuntu has two installation methods: one is a Windows-based operating system installed on Windows (such as Win 7). In this case, so this Ubuntu is like a program in Win 7, which can be detached from the control panel and accessed resources in Windows in Ubuntu. However, in this way, if you reinstall Windows 7 (or if Windows 7 breaks down one day, it won't work if you don't reinstall it), the boot information of the previously installed Ubuntu will be gone, so you need to back up the same information before reinstalling Windows 7, after the device is reinstalled, restore it.
Another way is to create a partition independently, which is equivalent to Windows. If Windows is broken, Ubuntu will not be affected. However, I may not be able to access Windows disks In Ubuntu. I have not tried this. I don't know if it is correct. If any of you knows this, let me know.
Now, let's get started with the question. [LINUX community www.LinuxIDC.com]
1. How to back up data?
It's quite simple. For example, I installed Windows 7 on drive C and Ubuntu on drive D. Copy the "wubildr" and "wubildr. mbr" in the root directory of the C drive for backup. Here, we will not delete anything stored in Ubuntu. If you delete it, you can only sorry it.
As shown in:
2. How to restore it?
After Windows 7 is reinstalled, the start + R shortcut opens the run dialog box and enters the "cmd" command.
Enter the following command:
Bcdedit/create/d "linux"/application bootsector
After this statement is executed, an ID is generated, such as: cbf44ade-ffbb-11df-87f3-e7e69ecd23a4
This ID is used in the following statements. In the following sentence, replace the id in {} with the id generated previously.
Bcdedit/set {id} device partition = c:
Bcdedit/set {id} path \ wubildr. mbr
Bcdedit/set {id} description "Ubuntu"
Bcdedit/displayorder {id}/addlast
After the execution, if each step is successful, it means to add the boot information OK, restart the computer, and you will see an additional Ubuntu boot information.
If it prompts that you do not have the permission, run the command as administrator before running the command described above. As shown in: