[Win7 x86] 0x7B INACCESSIBLE_BOOT_DEVICE - Can't boot

Docfxit

Contributor
Joined
Feb 22, 2015
Posts
248
When I try to boot into Win7 (Normal or Safe Mode) I get a BSOD 0x7b

I don't have any Memory.dmp

I do have two Mini Dumps (Attached).

Please help me figure out what is wrong.

Thank you,

Docfxit
 

Attachments

Re: Can't boot into Win7

· OS - Windows 7
· x86 (32-bit)
· What was original installed OS on system? Win7
· The OS full retail version (YOU purchased it from retailer)?
· Age of system (hardware) I don't remember.
· Age of OS installation I don't know. - have you re-installed the OS? No

· CPU Intel i7 3.4GHz
· Video Card Intel Xeon E3-1200 Graphics Controller
· MotherBoard - Lenovo
· Power Supply - brand & wattage I don't know. It's the OEM that came with it.

· System Manufacturer Lenovo
· Exact model number M92p

· Desktop

I am not able to run any programs because I get a BSOD both in Normal mode and SafeMode.
I do have a Win7 that I can boot from the USB. If the requested programs are able to analyze a non bootable
install when booted from the USB I'd be happy to run them. When I am booted from the USB Win7 the non bootable
install is drive D:

I have run chkdsk d: /r on the non bootable Win7.
I have rebuilt the MBR with Partition Wizard.
I have checked the alignment on the drive since this is a SSD.
I have rebuilt the boot sector.
I have rebuilt the BCD.
When trying to boot, I have removed all USB devices.
I have run MEMTest for 12hrs.
I have run SeaTools For Windows to check the integrity of the drive. It passed.
On February 6 I received a BSOD 0x8E
I ran Driver Verifier in an attempt to find the problem.
The first re-boot after Driver Verifier was turned on gave me a BSOD 0x7b. I have been getting 0x7b ever since.
I have turned off Driver Verifier via the cmd line in Recovery console.
I have run my antivirus against the drive.
I have run the antivirus that comes with EasyRE.
I have run the latest version of EasyRE to fix the boot up process. It was not successful.
I have run Malwarebytes from my Win7 booted from the USB. (I know this doesn't test everything because it's not booted from the problem OS but it does check the files.)

Thank you for looking at this.

Docfxit
 
Re: Can't boot into Win7

Hi Docfxit. :wave:

By chance, did you restore the system partition only?
Try to run bcdedit on the system partition and check if you get partition=C:; example:
Read More:
 
Last edited:
Re: Can't boot into Win7

Hi Docfxit. :wave:

By chance, did you restore the system partition only?
Try to run bcdedit on the system partition and check if you get partition=C:;

Thank you for the reply...

I haven't restored any partitions.

I ran this from the recovery console:

Code:
Windows Boot Manager
--------------------
identifier              {bootmgr}
device                  partition=C:
description             Windows Boot Manager
displayorder            {e5a0c0aa-f937-11e6-9490-ea169993fd88}
timeout                 10

Windows Boot Loader
-------------------
identifier              {e5a0c0aa-f937-11e6-9490-ea169993fd88}
device                  partition=C:
path                    \Windows\system32\winload.exe
description             Microsoft Windows
osdevice                partition=C:
systemroot              \Windows

When I boot up to the repair console these are the repair results:

Code:
    Startup Repair diagnosis and repair log
    ---------------------------
    Last successful boot time: 2/6/2017 4:59:08 PM (GMT)
    Number of repair attempts: 15

    Session details
    ---------------------------
    System Disk = \Device\Harddisk1
    Windows directory = C:\Windows
    AutoChk Run = 0
    Number of root causes = 1

    Test Performed:
    ---------------------------
    Name: Check for updates
    Result: Completed successfully. Error code =  0x0
    Time taken = 31 ms

    Test Performed:
    ---------------------------
    Name: System disk test
    Result: Completed successfully. Error code =  0x0
    Time taken = 16 ms

    Test Performed:
    ---------------------------
    Name: Disk failure diagnosis
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Disk metadata test
    Result: Completed successfully. Error code =  0x0
    Time taken = 15 ms

    Test Performed:
    ---------------------------
    Name: Target OS test
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Volume content check
    Result: Completed successfully. Error code =  0x0
    Time taken = 47 ms

    Test Performed:
    ---------------------------
    Name: Boot manager diagnosis
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: System boot log diagnosis
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Event log diagnosis
    Result: Completed successfully. Error code =  0x0
    Time taken = 47 ms

    Test Performed:
    ---------------------------
    Name: Internal state check
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Boot status test
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Setup state check
    Result: Completed successfully. Error code =  0x0
    Time taken = 234 ms

    Test Performed:
    ---------------------------
    Name: Registry hives test
    Result: Completed successfully. Error code =  0x0
    Time taken = 1310 ms

    Test Performed:
    ---------------------------
    Name: Windows boot log diagnosis
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Bugcheck analysis
    Result: Completed successfully. Error code =  0x0
    Time taken = 453 ms

    Test Performed:
    ---------------------------
    Name: Access control test
    Result: Completed successfully. Error code =  0x0
    Time taken = 11668 ms

    Test Performed:
    ---------------------------
    Name: File system test (chkdsk)
    Result: Completed successfully. Error code =  0x0
    Time taken = 16396 ms

    Test Performed:
    ---------------------------
    Name: Software installation log diagnosis
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Fallback diagnosis
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Root cause found:
    ---------------------------
    Unspecified changes to system configuration might have caused the problem.

    ---------------------------
    ---------------------------
    Session details
    ---------------------------
    System Disk = \Device\Harddisk0
    Windows directory = C:\Windows
    AutoChk Run = 0
    Number of root causes = 1

    Test Performed:
    ---------------------------
    Name: Check for updates
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: System disk test
    Result: Completed successfully. Error code =  0x0
    Time taken = 15 ms

    Test Performed:
    ---------------------------
    Name: Disk failure diagnosis
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Disk metadata test
    Result: Completed successfully. Error code =  0x0
    Time taken = 16 ms

    Test Performed:
    ---------------------------
    Name: Target OS test
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Volume content check
    Result: Completed successfully. Error code =  0x0
    Time taken = 47 ms

    Test Performed:
    ---------------------------
    Name: Boot manager diagnosis
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: System boot log diagnosis
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Event log diagnosis
    Result: Completed successfully. Error code =  0x0
    Time taken = 15 ms

    Test Performed:
    ---------------------------
    Name: Internal state check
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Boot status test
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Setup state check
    Result: Completed successfully. Error code =  0x0
    Time taken = 141 ms

    Test Performed:
    ---------------------------
    Name: Registry hives test
    Result: Completed successfully. Error code =  0x0
    Time taken = 811 ms

    Test Performed:
    ---------------------------
    Name: Windows boot log diagnosis
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Bugcheck analysis
    Result: Completed successfully. Error code =  0x0
    Time taken = 265 ms

    Test Performed:
    ---------------------------
    Name: Access control test
    Result: Completed successfully. Error code =  0x0
    Time taken = 5304 ms

    Test Performed:
    ---------------------------
    Name: File system test (chkdsk)
    Result: Completed successfully. Error code =  0x0
    Time taken = 12122 ms

    Test Performed:
    ---------------------------
    Name: Software installation log diagnosis
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Fallback diagnosis
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Root cause found:
    ---------------------------
    Unspecified changes to system configuration might have caused the problem.

    ---------------------------
    ---------------------------
    Session details
    ---------------------------
    System Disk = \Device\Harddisk0
    Windows directory = C:\Windows
    AutoChk Run = 0
    Number of root causes = 1

    Test Performed:
    ---------------------------
    Name: Check for updates
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: System disk test
    Result: Completed successfully. Error code =  0x0
    Time taken = 15 ms

    Test Performed:
    ---------------------------
    Name: Disk failure diagnosis
    Result: Completed successfully. Error code =  0x0
    Time taken = 16 ms

    Test Performed:
    ---------------------------
    Name: Disk metadata test
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Target OS test
    Result: Completed successfully. Error code =  0x0
    Time taken = 16 ms

    Test Performed:
    ---------------------------
    Name: Volume content check
    Result: Completed successfully. Error code =  0x0
    Time taken = 31 ms

    Test Performed:
    ---------------------------
    Name: Boot manager diagnosis
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: System boot log diagnosis
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Event log diagnosis
    Result: Completed successfully. Error code =  0x0
    Time taken = 15 ms

    Test Performed:
    ---------------------------
    Name: Internal state check
    Result: Completed successfully. Error code =  0x0
    Time taken = 0 ms

    Test Performed:
    ---------------------------
    Name: Boot status test
    Result: Completed

Thanks,

Docfxit
 
Re: Can't boot into Win7

Did you remove the other settings from the result?
Or didn't they appear at all?
Because on internet I found other Win7 bcdedit (bootmgr/bootloader) samples that contain also (I excluded your previous settings):
Code:
Windows Boot Manager 
-------------------- 
path                    \bootmgr
locale                  en-US 
inherit                 {globalsettings} 
default                 {current} 
resumeobject            {long-number} 
displayorder            {current} 
                        {eventually-another-long-number}
toolsdisplayorder       {memdiag} 

Windows Boot Loader 
------------------- 
locale                  en-US 
inherit                 {bootloadersettings} 
recoverysequence        {long-number} 
recoveryenabled         Yes 
resumeobject            {long-number-equal-to-bootmgr} 
nx                      OptIn
 
Last edited:
Re: Can't boot into Win7

Did you remove the other settings from the result?
Or didn't they appear at all?
Because on internet I found other Win7 bcdedit (bootmgr/bootloader) samples that contain also (I excluded your previous settings):
Code:
Windows Boot Manager 
-------------------- 
path                    \bootmgr
locale                  en-US 
inherit                 {globalsettings} 
default                 {current} 
resumeobject            {long-number} 
displayorder            {current} 
                        {eventually-another-long-number}
toolsdisplayorder       {memdiag} 

Windows Boot Loader 
------------------- 
locale                  en-US 
inherit                 {bootloadersettings} 
recoverysequence        {long-number} 
recoveryenabled         Yes 
resumeobject            {long-number-equal-to-bootmgr} 
nx                      OptIn

I have not excluded any settings. I ran Bcdedit > File.txt
and posted exactly what was in the file.txt.
 
Re: Can't boot into Win7

I believe I created the BCD incorrectly. I created a Bat file to create the BCD.
I will try to find an example Bat file to create the BCD correctly.

Thanks,
Docfxit
 
I found a program call Visual BCD Editor that corrects the BCD. I was able to run it from the USB Win7 install I have on the D: drive which is the Win7 that I can't boot from. This is what it put in:

Code:
Windows Boot Manager
--------------------
identifier              {bootmgr}
device                  partition=C:
description             Windows Boot Manager
locale                  en-us
inherit                 {globalsettings}
default                 {default}
resumeobject            {1acc5e17-0300-11e7-bdf9-402cf4ec0779}
displayorder            {default}
toolsdisplayorder       {memdiag}
timeout                 30

Windows Boot Loader
-------------------
identifier              {default}
device                  partition=C:
path                    \windows\system32\winload.exe
description             Windows 7
locale                  en-us
inherit                 {bootloadersettings}
osdevice                partition=C:
systemroot              \windows
resumeobject            {1acc5e17-0300-11e7-bdf9-402cf4ec0779}
nx                      OptIn
detecthal               Yes

I have not changed anything. It still won't boot. I still get BSOD 0x7b.

Docfxit
 
This is a bat file I created to fix the BCD in windows.

~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
NOTE: This is in Test mode. It is not ready for any live environment.
NOTE: This will change your BCD. Please backup your current BCD before running this.
~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*

When I figure out how to make this better or someone makes a suggestion I will update this post.

Beginning of BAT file
Code:
@Echo On
:: This should be run inside Windows Recovery Console

Set ToDrive=C:

echo "OS Detection:  Starting"
%ToDrive%
cd\%~dp0
VER > BootOSVer.txt
SET /P _WinVer=<BootOSVer.txt   ::Stops here?

    set _WinVer=         :: set "_WinVer=" gives me _winver was unexpected at this time. 
     VER | find  " 6.0." >nul && set "_WinVer=Vista or server 2008"
     VER | find  " 6.1." >nul && set "_WinVer=Win7  or server 2008 R2"
     VER | find  " 6.2." >nul && set "_WinVer=Windows 8"
     VER | find  " 6.3." >nul && set "_WinVer=Server 2012 R2 or Windows 8.1"
     VER | find " 10.0." >nul && set "_WinVer=Windows 10"
     IF DEFINED _WinVer (ECHO _WinVer IS defined) ELSE (ECHO _WinVer is NOT defined)
     If defined _WinVer echo "%_WinVer%"&GoTo :DoIt

         VER | find  " 4.1." > nul && set "_WinVer=W98"
         VER | find  " 4.0." > nul && set "_WinVer=NT"
         VER | find  " 5.0." > nul && set "_WinVer=W2K"
         VER | find  " 5.1." > nul && set "_WinVer=XP"
         VER | find  " 5.2." > nul && set "_WinVer=XP 64-Bit or Server 2003 or R2"
     IF DEFINED _WinVer (ECHO _WinVer IS defined) ELSE (ECHO _WinVer is NOT defined)

         if defined _WinVer echo "%_WinVer%"&&GoTo :DoItOld

                     echo unknown operating system
         GoTo :Done
:DoItOld
            FIXMBR %ToDrive%
            FIXBOOT %ToDrive%
            ::for /f "skip=1 tokens=1,2" %%i in ('wmic logicaldisk get caption^, drivetype') do (
            ::  if [%%j]==[5]   Set  "CDDrive=%%i"
            ::  )
            ::COPY CDDrive:\I386\NTLDR %ToDrive%\
            ::COPY CDDrive:\I386\NTDETECT.COM %ToDrive%\
            BOOTCFG /rebuild
            GoTo :Done
:DoIt
Bootrec /scanos >BootFixerTest.txt
type BootFixerTest.txt |find /i "Windows installations: 0" >nul || goto :Done
set "ask="
set /p "ask=No installations found: type YES to rebuild BCD: "
if /i not "%ask%"=="YES" goto :FixBootRec
If not exist %ToDrive%\BCD_Backup md %ToDrive%\BCD_Backup
bcdedit /export %ToDrive%\BCD_Backup\BCD
attrib %ToDrive%\boot\bcd -h -r -s
Set "i=1"
:again
If exist "%ToDrive%\boot\bcd.old_%i%" (
    set  /A "i=i+1"
    goto :again)
ren %ToDrive%\boot\bcd bcd.old_%i%
del C:\boot\bcd.temp >nul
bcdedit /createstore %ToDrive%\boot\bcd.temp
bcdedit.exe /store c:\boot\bcd.temp /create {bootmgr} /d "Windows Boot Manager"
bcdedit.exe /import c:\boot\bcd.temp
bcdedit.exe /set {bootmgr} device partition=%ToDrive%
bcdedit.exe /timeout 10
attrib -h -s C:\boot\bcd.temp
del %ToDrive%\boot\bcd.temp
bcdedit.exe /create /d "Windows 7" /application osloader>GUID.txt
For /F "tokens=2 delims={}" %%i in (GUID.txt) do (set _NEWGUID=%%i)
bcdedit.exe /set {%_NEWGUID%} device partition=%ToDrive%
bcdedit.exe /set {%_NEWGUID%} osdevice partition=%ToDrive%
bcdedit.exe /set {%_NEWGUID%} path \Windows\system32\winload.exe
bcdedit.exe /set {%_NEWGUID%} systemroot \Windows
bcdedit.exe /displayorder {%_NEWGUID%}
bcdedit /timeout 5
del guid.txt

:FixBootRec
BOOTREC /fixmbr
BOOTREC /fixboot
Set "CDDrive="
  For /F "Tokens=*" %%a In ('WMIC LogicalDisk WHERE^
   "DriveType=5 AND Access=1 OR Access=3" Get Caption 2^>Nul') Do For %%b In (
          %%a) Do If Exist %%b\I386\ Set "CDDrive=%%b"
Echo (CDDrive = %CDDrive%
 If Not Defined CDDrive GoTo :Didn'tCopy
  If Exist %CDDrive%\I386\NTLDR Echo(Copy %CDDrive%\I386\NTLDR %ToDrive%
  If Exist %CDDrive%\I386\NTDETECT.COM Echo (COPY %CDDrive%:\I386\NTDETECT.COM %ToDrive%\
:Didn'tCopy
BOOTREC /rebuildbcd
::    bootsect /nt60 SYS %ToDrive%\
::    bootsect /nt60 ALL %ToDrive%\
    bootsect /nt60 %ToDrive%  /force
::That will produce a legacy menu from which you can select Safe Mode.
::bcdedit /set {default} bootmenupolicy legacy
::When the computer reboots keep tapping the F8 key
:: List Os's Installed
::del %~dp0BootFixerTest.txt
:Done
bcdedit /enum
endlocal
@CMD > Null ::I put this here so the cmd window would stay open

Docfxit
 
I have changed the bat file. I was not able to edit the bat file on post#10. This is an update to that bat file:

Code:
@Echo On
:: This should be run inside Windows Recovery Console

Set ToDrive=C:

echo "OS Detection:  Starting"
%ToDrive%
cd\%~dp0
VER > BootOSVer.txt
SET /P _WinVer=<BootOSVer.txt   ::Stops here?

    set _WinVer=         :: set "_WinVer=" gives me _winver was unexpected at this time. 
     VER | find  " 6.0." >nul && set "_WinVer=Vista or server 2008"
     VER | find  " 6.1." >nul && set "_WinVer=Win7  or server 2008 R2"
     VER | find  " 6.2." >nul && set "_WinVer=Windows 8"
     VER | find  " 6.3." >nul && set "_WinVer=Server 2012 R2 or Windows 8.1"
     VER | find " 10.0." >nul && set "_WinVer=Windows 10"
     IF DEFINED _WinVer (ECHO _WinVer IS defined) ELSE (ECHO _WinVer is NOT defined)
     If defined _WinVer echo "%_WinVer%"&GoTo :DoIt

         VER | find  " 4.1." > nul && set "_WinVer=W98"
         VER | find  " 4.0." > nul && set "_WinVer=NT"
         VER | find  " 5.0." > nul && set "_WinVer=W2K"
         VER | find  " 5.1." > nul && set "_WinVer=XP"
         VER | find  " 5.2." > nul && set "_WinVer=XP 64-Bit or Server 2003 or R2"
     IF DEFINED _WinVer (ECHO _WinVer IS defined) ELSE (ECHO _WinVer is NOT defined)

         if defined _WinVer echo "%_WinVer%"&&GoTo :DoItOld

                     echo unknown operating system
         GoTo :Done
:DoItOld
            FIXMBR %ToDrive%
            FIXBOOT %ToDrive%
            ::for /f "skip=1 tokens=1,2" %%i in ('wmic logicaldisk get caption^, drivetype') do (
            ::  if [%%j]==[5]   Set  "CDDrive=%%i"
            ::  )
            ::COPY CDDrive:\I386\NTLDR %ToDrive%\
            ::COPY CDDrive:\I386\NTDETECT.COM %ToDrive%\
            BOOTCFG /rebuild
            GoTo :Done
:DoIt
Bootrec /scanos >BootFixerTest.txt
type BootFixerTest.txt |find /i "Windows installations: 0" >nul || goto :Done
set "ask="
set /p "ask=No installations found: type YES to rebuild BCD: "
if /i not "%ask%"=="YES" goto :FixBootRec
If not exist %ToDrive%\BCD_Backup md %ToDrive%\BCD_Backup
bcdedit /export %ToDrive%\BCD_Backup\BCD
attrib %ToDrive%\boot\bcd -h -r -s
Set "i=1"
:again
If exist "%ToDrive%\boot\bcd.old_%i%" (
    set  /A "i=i+1"
    goto :again)
ren %ToDrive%\boot\bcd bcd.old_%i%
del C:\boot\bcd.temp >nul
bcdedit /createstore %ToDrive%\boot\bcd.temp
bcdedit.exe /store c:\boot\bcd.temp /create {bootmgr} /d "Windows Boot Manager"
bcdedit.exe /import c:\boot\bcd.temp
bcdedit.exe /set {bootmgr} device partition=%ToDrive%
bcdedit.exe /timeout 10
attrib -h -s C:\boot\bcd.temp
del %ToDrive%\boot\bcd.temp
bcdedit.exe /create /d "Windows 7" /application osloader>GUID.txt
For /F "tokens=2 delims={}" %%i in (GUID.txt) do (set _NEWGUID=%%i)
bcdedit.exe /set {%_NEWGUID%} device partition=%ToDrive%
bcdedit.exe /set {%_NEWGUID%} osdevice partition=%ToDrive%
bcdedit.exe /set {%_NEWGUID%} path \Windows\system32\winload.exe
bcdedit.exe /set {%_NEWGUID%} systemroot \Windows
bcdedit.exe /set {%_NEWGUID%} locale en-US
bcdedit.exe /set {%_NEWGUID%} inherit {bootloadersettings}
bcdedit.exe /set {bootmgr} resumeobject {%_NEWGUID%}
bcdedit.exe /set {bootmgr} locale en-US
bcdedit.exe /set {bootmgr} INHERIT {globalsettings}
bcdedit.exe /toolsdisplayorder {memdiag}
bcdedit.exe /timeout 5
bcdedit.exe /set {current} resumeobject {%_NEWGUID%}
bcdedit.exe /default {default}
bcdedit.exe /bootsequence {%_NEWGUID%}  :After the next restart, it will be reset to DISPLAYORDER.
bcdedit.exe /set {%_NEWGUID%} nx OptIn
bcdedit.exe /set detecthal Yes
del guid.txt

:FixBootRec
BOOTREC /fixmbr
BOOTREC /fixboot
Set "CDDrive="
  For /F "Tokens=*" %%a In ('WMIC LogicalDisk WHERE^
   "DriveType=5 AND Access=1 OR Access=3" Get Caption 2^>Nul') Do For %%b In (
          %%a) Do If Exist %%b\I386\ Set "CDDrive=%%b"
Echo (CDDrive = %CDDrive%
 If Not Defined CDDrive GoTo :Didn'tCopy
  If Exist %CDDrive%\I386\NTLDR Echo(Copy %CDDrive%\I386\NTLDR %ToDrive%
  If Exist %CDDrive%\I386\NTDETECT.COM Echo (COPY %CDDrive%:\I386\NTDETECT.COM %ToDrive%\
:Didn'tCopy
BOOTREC /rebuildbcd
::    bootsect /nt60 SYS %ToDrive%\
::    bootsect /nt60 ALL %ToDrive%\
    bootsect /nt60 %ToDrive%  /force
::That will produce a legacy menu from which you can select Safe Mode.
::bcdedit /set {default} bootmenupolicy legacy
::When the computer reboots keep tapping the F8 key
:: List Os's Installed
::del %~dp0BootFixerTest.txt
:Done
bcdedit /enum
endlocal
@CMD > Null ::I put this here so the cmd window would stay open

BCDEdit now looks like this:

Code:
Windows Boot Manager
--------------------
identifier              {bootmgr}
device                  partition=C:
path                    \bootmgr
description             Windows Boot Manager
locale                  en-US
inherit                 {globalsettings}
default                 {default}
resumeobject            {a10da42e-0446-11e7-b322-840619ad1e89}
displayorder            {default}
toolsdisplayorder       {memdiag}
timeout                 5

Windows Boot Loader
-------------------
identifier              {default}
device                  partition=C:
path                    \Windows\system32\winload.exe
description             Windows 7 Professional
locale                  en-US
osdevice                partition=C:
systemroot              \Windows

It is still not correct. I'm trying to figure out why.

Docfxit
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top