When you load windows you get a blue screen with the BSOD 0x0000007B error. This is generally caused by the 'Mass Storage Drivers' not loading for one reason or another such as
- they have been corrupted
- updated and the new version does not work
- somehow they have been deleted
- their start status has been incorrectely changed
- the SATA controller type has been changed in the BIOS
- You have changed motherboard or PC whilst using the same windows installation
Below are some tested fixes for this issue in windows 7. You might find that some of these fixes work for ohter versions of windows and not every solution will fix the 0x0000007B error.
Last Known Good Configuration (advanced)
Select the last known Good Configuration and see if your windows boots. It either will or it wont. If it does i would create a system restore point.
Startup Repair
Let windows try a Startup Repair. When your PC fails to boot it will ask you if you want to repair windows (Black and White Screen), select 'Repair Windows' and see if that fixes the boot issue
Incorrect SATA Type in the BIOS
This is a very common issue especially when you move your windows installtion to a new PC.
Windows is configured to use IDE or AHCI (or possibly a type of RAID) to boot windows and if the setting in your BIOS does not match this.
Solution
Enter the BIOS and cycle through the the different types of AHCI/SATA controller settings and see if you can boot windows on any of them.
fix_7hdc.vbs script - Adjust mass storage controller driver at offline system - Recommended
Basically this is a script that can handle the automatic installation of the correct driver by matching the installed hardware IDs to a driver, either those that are already install or from a specified folder which is handy when you have forgot to install them before moving changing your hardware. This script can be run from a windows DVD/Repair Console
This is an easy fix to try if you have the correct instructions. The instructions for running this script are not the best, so after trial and error i have written some.
The script utilises DISM utility to install the drivers.
Usage: cscript Fix_7hdc.vbs [options]
Options: | ||
---|---|---|
/enable | enable, installed but disabled MassStorage drivers (or 'Enable existing Mass Storage drivers in system) | |
/target:<drive> | target Win7 drive | |
/install:<folder> | Path to the folder that will be the top of the Plug & Play folder tree. | |
/search:<file> | search flag file to find target Win7_drive (default: \windows\system32\winload.exe) |
|
/restore | restore registry system file | |
/log:<file> | (Optional) Location of the output file | |
Remmed out in code but might still be valid | ||
/class:<class> | (Optional) Filter the output by device Class | |
/provider:<vendor> | (Optional) Filter the output by driver Provider | |
/excludeclass | (Optional) Filtering excludes Class filtered items from output. Default filtering in inclusive (only the filtered items are output). |
|
/excludeprovider | (Optional) Filtering excludes Provider filtered items from output. Default filtering in inclusive (only the filtered items are output) |
|
End of Remmed Items | ||
/q | (Optional) Suppresses all data output to the console. | |
/? | (Optional) Displays this help text. |
Examples:
cscript Fix_7hdc.vbs /enable /search
cscript Fix_7hdc.vbs /enable /search:\users
cscript Fix_7hdc.vbs /enable /install:F:\x86 /search
cscript Fix_7hdc.vbs /install:D:\amd64 /target:C:
cscript Fix_7hdc.vbs /install /search:\label.txt
cscript Fix_7hdc.vbs /restore /target:C:
My Notes
- cscript , in windows 7 seems optional. if you add it, everything runs in a command line and no GUI or prompts.
ie the following 2 commands are valid but how they run is slightly different but does not affect the outcome unless you do not add required information such as GUI prompt boxes dont always work
Fix_7hdc.vbs /enable /search
cscript Fix_7hdc.vbs /enable /search - http://www.911cd.net/forums//index.php?showtopic=24245 = homepage
- based on = http://technet.microsoft.com/en-us/magazine/2006.05.utilityspotlight.aspx
- using /install without enable will install the new drive without enable all other drivers
If you run
Fix_7hdc.vbs
Fix_7hdc.vbs /search
(either implies Fix_7hdc.vbs /enable /search )
This is what it does
- searches for the live windows installation
- loads that registry and searches the registry
- Finding all matching 'Mass Storage Drivers' and sets their start DWORD to 0 (ie enabled)
there is a prompt box for each mass storage driver, so there can be a few (unless you use cscript)
What i Would Type
cscript fix_7hdc.vbs /enable /search /install:g:\ahci
Because you use cscript there are no prompts but instead outputs to the console
- This will automatically search for the windows installation
- it will enable existing mass storage drivers in system
- it will then install (and enable i guess) any matching 'Mass Storage' hardware with drivers from g:\ahci (recursive search occurs on the /ahci/ folder)
- The driver(s) are then installed using dism using a simliar command as below
dism.exe /Image:C:\ /Add-Driver /Driver:"G:\AHCI\W64A\amdsata.ing" /LogLevel:4 /LogPath:G:\hdc\dism.offline.log
Links
- Fix_7hdc - Boot PE and fix offline Windows - The CD Forum - Homepage fo the script
- tinyapps.org / blog / Resolving BSOD (STOP: 0x0000007B) after a motherboard swap - simple instructions on how to use fix_7hdc.vbs
- Unbootable Win 7 | Tethis's Blog - usage instructions for fix_7hdc.vbs
- Tech News: Change Mainboard in Windows 7 without formatting. - simple usage and mirros for the script
Other Notes
- if you change the controller type and run 'Fix_7hdc.vbs' it will detect the new type of controller
- when not using cscript prefix, use /q to suppress messages
Manually Changing SATA Mode in Windows
sometimes windows gets mixed up with which SATA mode to work. This can be changed easily in the windows registry. As long as you can access the windows registry you can do it either online (proactively) or after the fact by mounting the offline registry.
- How to: Change SATA Modes After Windows Installation - An easy to follow article/forum thread with the commands to run
- How to Change SATA Hard Disk Mode from IDE to AHCI / RAID in BIOS after Installing Windows? - AskVG - an article with pictures
- The blog of Manjeet Singh: How to fix BSOD 0x0000007B on Win7 and Enable Ide, Ahci, Raid mode without re-installing. - This article sepcifies quite a few registry settings and is not that easy to follow
- How to Enable AHCI After Installing Windows 7/Vista - Techneek TV - YouTube - This is an easy way to swap windows SATA mode but only works if you can boot windows. This option is useful if you want to increase the performance of your SATA by changing modes
- How to load SATA drivers to offline Windows xp system - Windows 2K/XP/2003 - reboot.pro - I have not used this method
DSIM - Manual Driver Injection
This is a new method that new versions of microsoft windows natively supports. It allows you to inject drivers to offline windows installs on normal harddrives or VHD (Virtual Harddisk). This is particulary handy if you have forgotten to install required SATA Drivers or you are creating a deployable image.
When using this command you must make sure your drive letters are correct. ie when you boot of the harddrive into the console your windows install drive will be C:\ , but when you load of a seperate WinPE disk it will most likely be D:\.
Examples
Dism /image:C:\windows /Add-Driver /driver:D:\64-bit /recurse
All sub folders from D:\64-bit are queried for drivers to add to the offline windows install @ C:\windows
Dism /image:C:\windows /Add-Driver /driver:D:\64-bit\
The drivers in the folder D:\64-bit\ will be installed to the offline windows install @ C:\windows
Links
- Easily add drivers and updates to images with GUI DISM - Deployment Ninj@ - A GUI for DSIM, does require a running windows install
- Christian Hofstädtler - Using DISM to install Storage Drivers - a very clear article showing different syntaxes for using DSIM
- How to use Windows 7 DISM by Muiz. - Lists most of the DSIM commands with descriptions but /Recurse is missing
- Add and Remove Drivers to an Offline Windows Image - By Microsoft Technet, the basic commands and switches to add or remove drivers
- Driver Servicing Command-Line Options - By Microsoft Technet, DSIM command line options with examples
- Deployment Image Servicing and Management Technical Reference - By Microsoft Technet, this is the full documentation on DSIM
- Installing drivers on a Windows system using WinPE Preinstallation Environment - Server Fault - Simple Question, Simple Answer. Also has offline and online examples
- boot - Booting Windows 7 from different SATA controller - Super User - Simple Question, Simple Answer
- HowTo: Repair Windows 7 Install After Replacing Motherboard - Dowd and Associates - An article on how to use DSIM including how to identify the required drivers and then insert them
- Using Dism.exe - Windows 7 Tutorial - an easy to follow text based article
- How to Switch Mobos w/o reinstalling Win 7 - Using DISM - Processors, Motherboards and Memory - OverclockersClub Forums - real world problem and the command he used to fix it
- DISM walkthrough - observations from my first ever attempt | DriverPacks.net - might be of use to read
- FIX_HDC needs TXTSETUP.SIF for Win7x64 DP_MassStorage_wnt6-x64 (Page 1) - Windows 7 Discussion - DriverPacks.net Forum - some uses of DSIM and also mentions sysprep
Other Things to Try
- Repair Corrupt BCD (Boot Record) - this is not likely cause but it can be
Solution: STOP Error 0x0000007b (0xfffff880009a98e8 0xffffffffc000000d 0x0000000000000000…) | Triple-S Computers Blog – Louisville, KY computer repair specialist - some instructions on manually repairing the BCD - sysprep - This is only good whilst your windows is working before your move - not tested yet and could take a lot of time for little gain
- chkdsk - this is an oldy but a goody
- check for Virus
- replace the registry manually
- run windows 'Startup Repair'
- 0x0000007B (INACCESSIBLE BOOT DEVICE): Fix for Windows XP, Vista, 7, 8, 8.1 - some things to try from neosmart.net
- Easy Recovery Essentials | Windows Recovery and Repair CDs - From neosmart.net , I have not tried these and they are not free
- How To Fix STOP 0x0000007B Errors (INACCESSIBLE_BOOT_DEVICE) - a general article with few things you can try
- Run chkdsk
- Rebuild MBR
- Finally windows 7 repair install - 0x00007b can be caused by other stuff
- Use system restore or known good configuration to see if you can boot
- If no system restore points available, look in c:\windows\system32\config for old backups
- Run sfc in console ie see article
- try manually disablling all other mass storage driveers if you still cannot get it to boot - see that list
- You might be able to only get the mass storage driver to work in IDE/Compatability mode, in which case if you get booted into windows you can then use the trick outlined in the youtube video to swap to AHCI mode again to get performance back
Driver Installation / Recovery Software
- BooZet Freeware | Double Driver - backup and restore installed drivers - Online and Offline Windows installs
- DriverBackup! | SourceForge.net - Online and Offline Windows installs
My Other Notes
- DWORD start types, 0 = enabled (possibly core load), 1 = ? , 3 = disabled
- 0x000007b errors are definately caused by a fault in SYSTEM hive
-
I got a 0x000007b after installing windows updates, i think this is because it upgraded some driver files that had been interfered with by driver updating software