Direkt zum Hauptinhalt

Boot Partition

Repair BCD / Boot Partition with MBR Drive

After uninstalling some MS Software Windoof though it's a good idea to destroy the boot partition resulting in following error / BlueScreen on Boot:

File: \Boot\BCD
Error code: 0x0000034

If you are getting the same Error: only panic a little! Your data is NOT lost and it's repairable.

default fix (not working for me)

  1. Create a Windoof bootstick
    1. Win installer
    2. Good luck burning an iso, never worked for me, lol
  2. Boot via your bootstick
  3. Choose your language
  4. Click on the little thingy bottom left, do NOT click install
  5. Try auto fix

advanced fix (not working for me)

  1. do the default fix stuff
  2. don't auto fix, open console
  3. determine if you have an MBR Drive
    1. Type diskpart
    2. Type list disk (all your drives should be shown now)
    3. Type sel disk 0 (or the drive to boot from - usually 0)
    4. Type list vol (all partitions should be shown now)
    5. Last row of the table show should show if stuff is GBR (marked with an *)
  4. if it's an MBR go ahead, if not ... go ahead with caution, lol
  5. fix stuff
    1. Type bootrec /fixmbr
    2. Type bootrec /fixboot
    3. Type bootrec /scanos (something should be found)
    4. Type bootrec /rebuildbdc
  6. done

fix that worked for me

all the aboth didn't work for be because all the time I got some error along like access denied could not find XYZ 'n stuff

so here is what worked for me

  1. Backup your BootPartition (or Drive just to be sure) on a Linux machine as following or on a win machine (good luck with that)
    1. sudo dd if=/dev/YOURDEVICE conv=sync,noerror status=progress bs=64K | gzip -c > backup.img.gz please replace YOURDEVICE, find out via lsblk
    2. Restore if needed via gunzip -c backup.img.gz | sudo dd of=/dev/YOURDEVICE status=progress
  2. Format your boot partition (the one 500MB large formatted falsely as NTFS) as FAT32
  3. jada jada boot via boot stick open console
  4. find out your partition label
    1. Type diskpart
    2. Type list disk (all your drives should be shown now)
    3. Type sel disk 0 (or the drive to boot from - usually 0)
    4. Type list vol (all partitions should be shown now)
    5. Find your new fat32 boot partition with label/letter (probably C)
    6. May also identify your "normal" windows partition just to be sure later, lol
  5. type bootrec /fixboot
  6. type bcdboot REPLACE_X:\Windows /s REPLACE_Y: /f all please replace REPLACE_X and Y with X = your windows installation Letter (for me G) and Y your boot partition Letter (for me C)
  7. Jobs done ... reboot, enjoy windoof, hope nothing breaks again.