My ubuntu was installed with wubi, because I used to re-partition and install it. I felt that partitioning was very troublesome. Moreover, multiple systems sometimes cause system MBR or GRUB boot errors and cannot be started, so it is very complicated, and wubi does not have any difference in the effect of installing cows. It also saves a lot of trouble, here we will explain how to fix the loss of ubuntu boot items installed with wubi in win7 or Vista.
First, let's take a look at the Ubuntu startup Option Record in win7:
[Note: Enter bcdedit In the CMD opened by the Administrator to view the startup information]
Enable slice in real mode
-------
Identifier {39bed8be-0619-11df-a4ea-f49417e653f3}
Device partition = D:
Path/Ubuntu/winboot/wubildr. MBR
Description Ubuntu
From these records, we can easily read that my system is installed on the E: disk, and the boot file is/Ubuntu/winboot/wubildr. MBR, knowing this, I think our recovery work should be very simple ~~~
Run the Windows 7 or Vista command prompt as an administrator:
Run
Bcdedit/create/D "ubuntu"/Application bootsector
At this time, the system will automatically generate a {ID}
Bcdedit/set {ID} device partition = E: -- (D: The drive letter of ubuntu installed in wubi)
Bcdedit/set {ID} path/Ubuntu/winboot/wubildr. MBR --- (this is the path of the boot file)
Bcdedit/displayorder {ID}/addlast
OK. After a series of operations are completed, restart your system and check if the startup Item of Ubuntu is back ~~~
You can use bcdedit/delete {or that string of characters}/cleanup to delete redundant options.