So you have installed a dual boot windows 7 and Ubuntu and then after a futile attempt to make things work at office, decide to delete the partition onto which Ubuntu has been installed. you restart and bang!
bcdedit /export C:BCD_Backup
C:
CD Boot
Attrib bcd –s –h –r
ren c:bootbcd bcd.old
bootrec /RebuildBcd
then it said
“Scanning all disks for windows installations.
Please wait, since this may take a while…
Successfully scanned windows installations: 1
[1] C:windows
Add installations to boot list? Yes(y)/No(N)/All(A) : “
I pressed ‘Y’ as there was only one instance of windows installation. Then it said The operation completed successfully.
6. Next entred the following command bootrec /fixmbr It said The operation completed successfully.
7. Next entred the following command bootrec /FixBoot Again It said The operation completed successfully.
incase this does not work try the next option
go to c:
type Dir
if you get a blank directory then thats the problem. Find out what drive letter has been assigned to the primary windows installation drive. in my case, the rescue drive setup by toshiba assigned c to itself. and my windows was loaded onto what dos assumed was D: so i changed the bootsect command a bit
type :
bootsect /nt60 sys d:
and bang!
Windows boots up!
thanks to www.pcchimp.com for this support