Repair Your BCD Boot Blue Screen of Death

Windows 10 Blue Screen of Death

Failure to Boot After The Dreaded Blue Screen of Death

Occasionally in Windows 10 when a Blue Screen of Death (or “BSOD”) occurs similar to the above, the computer will not boot. The failure to boot can be caused by a variety of reasons. Many times it’s caused by the BCD/EFI store becoming corrupted (or by being “fixed” incorrectly by Windows particularly if you have a non-standard boot setup).

The following usually gets me up and running. Note that this post only applies to computers having UEFI firmware or using a UEFI emulator like the Clover boot manager or reFIND). Most computers built in the last 10 years use UEFI firmware.

Caution: Backup your hard drives before continuing. Although these commands typically do not cause data loss, it’s possible you have a non-standard configuration and/or defects on your drive. Not responsible for data loss – the following is at your own risk.

    Boot Into Windows Recovery Console

  1. Boot the machine from a USB Flash Drive using the Microsoft Windows Install Media USB drive. You’ll need at least an 8 GB flash drive.
  2. At the install screen below press the “SHIFT-F10” keys together to get a command prompt.Windows Install Dialog
  3. Recovery Console Commands

  4. The Recovery Console will open. Type the following commands:
  5. Find the volume that is FAT32, and has no label (or labeled “EFI” and is about 100 MB. It typically is also shown as “SYSTEM” or “Hidden” Here is mine as an example:

    Windows Command Console List Volume

    NOTE: If you do not see an EFI partition your computer is probably older and does not use UEFI firmware, using instead the older Master Boot Record (MBR) method of booting. If this is the case, then this post does not apply to you and won’t help you.
  6. Select that volume (in my example, Volume 2)
  7. Assign it a letter that is not being used by your other drives (I usually use A: as that is almost always available):
  8. Make sure from the list produced by the “list volume” command, that there is a letter assigned to the drive that contains your “Windows” folder. This is usually drive “C”. If the Windows drive is not assigned to C, or if “list volume” does not show a letter assigned to the drive containing your Windows folder, select the Windows volume and assign a letter to it as was done for the EFI volume above. In my example, I do not have to assign a letter since C is already assigned to the Windows drive.
  9. When you are done assigning letters to the volumes, exit diskpart:
  10. Use robocopy to make a backup of the files on your EFI partition in case something goes wrong. In this example I am copying all the files to my G drive, so substitute your backup drive letter for the “g” below. Robocopy automatically will create the “efi-backup” folder:
  11. Before issuing the BCDBoot command, do a chkdsk on each of your EFI and Windows partitons to fix any errors (substituting the letters assigned to your EFI partition and windows partitions respectively for A and C below if yours are different):
  12. Enter BCD Boot Command

  13. When those commands finish, issue the following bcdboot command which copies your system boot files into your EFI partition (substituting the letters assigned to your EFI partition and Windows partitions respectively for A and C below if your letter assignments are different):

    Reboot Computer

  14. Assuming the BCDBoot command was successful, reboot your computer and if you are lucky and the underlying problem that caused the BSOD has been fixed, rebooting will be successful. Note that on rebooting, Windows 10 often takes a while to reconfigure things or autorepairs after a BSOD and BCDboot command. You may get a few more BSODS and have to reboot 2 or three times before you get to the windows login screen.

Replace A Video’s Audio Track In Three Minutes or Less

KdenLive

The Problem – Switching Out Your Audio Track

It’s common for those recording musical or other performances to record audio separately from the video. For instance, the video may be recorded using an Iphone which gives good video quality. The audio however may be recorded using an external mic for either duplication reasons (in case the hookup to the Iphone or other video camera goes bad, or because one doesn’t have the proper connectors to pipe the microphone audio to the camera). To replace the audio track manually might cost you hours of time trying to sync the new audio to the video.

Automatic Syncing of New Audio with Video Track

If you find yourself in a position of wanting to replace the audio track recorded with the Iphone or other video camera with the audio recorded by an external mic, here’s a dead simple way of achieving the replacement without manually re-syncing to the video.

KDEN Live – An Open Source Solution

KDENLive is a free and open source video editing software for Linux which offers an easy way to replace the audio track while automatically syncing the new track to the old.

Steps to Replace Audio Track

  1. Install KDENLive. Go to the download page and install per the instructions.
  2. Copy the video file from your camera or mobile phone (in my case it was a .MOV file from the Iphone) and the audio file from your microphone recording (probably a .wav file) to the same folder on your computer.
  3. Open KDENLive, Select “Project” from the menu and then “Add Clip or Folder”

    Add Clip to KDENLive

  4. Select the folder that contains the video file and microphone audio file.
  5. The files should appear in your “Project Bin” on the top left of the KDENLive screen. Drag the video file to the time line below. It will create two tracks, one for the audio only track recorded by the microphone, and one for the audio associated with the video file (in my case the audio that was recorded by the Iphone).
  6. Drag the Microphone .wav file to the time line right below the Iphone’s audio track. In my case, the Iphone’s Video track was assigned V1, the audio track assigned A1, and the Microphone audio track was assigned A2.
  7. Mute the video file’s audio track (A1) by clicking on the speaker on that track.
  8. Now select the audio track from the Iphone (A1). Right click and select “Set Audio Reference”. Below is a screenshot showing the tracks, the muted audio, and setting the audio reference:

    KDENlive Set Audio Reference

  9. Now right click on the A2 track (the microphone’s wav file) and select “Align Audio”:

    KDENLive Audio Tracks

    KDENLive will automatically move the A2 track to match the audio in the A1 track. You are done. Play back the video using the preview and confirm that the audio is satisfactory then save your project and/or render your video.

    KDENLive does offer a Windows binary version for download but I have not tested as it is reportedly buggy. I would be interested if somebody would try and it and respond in the comments as to how well the audio sync feature works.