The precondition for this method is that the original MBR has been backed up before Windows 7 is re-installed and the MBR is rewritten. The backup mode is the traditional dd mode. $ Sudoddif =/dev/sdaof = boot. lnxbs = 512 count = 1 after Windows 7 is installed, you can run the C: \ boot. lnx loads the original MBR and directs the original UbuntuLinux system. 1. Run cmd2 as an administrator
The precondition for this method is that the original MBR has been backed up before Windows 7 is reinstalled and the MBR is rewritten.
The backup mode is the traditional dd mode.
$ Sudo dd if =/dev/sda of = boot. lnx bs = 512 count = 1
After installing Windows 7, you can load the original MBR through the file C: \ boot. lnx to guide the original Ubuntu Linux system.
1. Run cmd as an administrator
2. Add a startup entry
Bcdedit/create/d "Ubuntu 10.04 LTS"/application bootsector
3. Set the actual boot device of the boot entry.
Bcdedit/set {entry-name} device partition = c:
4. Set the file actually read by the startup entry
Bcdedit/set {entry-name} path \ boot. lnx
5. Set the sequence and timeout
Bcdedit/displayorder {entry-name}/addlast
Bcdedit/timeout 10
The entire process is as follows: