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)
- Create a Windoof bootstick
- Win installer
- Good luck burning an iso, never worked for me, lol
- Boot via your bootstick
- Choose your language
- Click on the little thingy bottom left, do NOT click install
- Try auto fix
advanced fix (not working for me)
- do the default fix stuff
- don't auto fix, open console
- determine if you have an MBR Drive
- Type
diskpart
- Type
list disk
(all your drives should be shown now) - Type
sel disk 0
(or the drive to boot from - usually 0) - Type
list vol
(all partitions should be shown now) - Last row of the table show should show if stuff is GBR (marked with an
*
)
- Type
- if it's an MBR go ahead, if not ... go ahead with caution, lol
- fix stuff
- Type
bootrec /fixmbr
- Type
bootrec /fixboot
- Type
bootrec /scanos
(something should be found) - Type
bootrec /rebuildbdc
- Type
- 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
- Backup your BootPartition (or Drive just to be sure) on a Linux machine as following or on a win machine (good luck with that)
-
sudo dd if=/dev/YOURDEVICE conv=sync,noerror status=progress bs=64K | gzip -c > backup.img.gz
please replace YOURDEVICE, find out vialsblk
- Restore if needed via
gunzip -c backup.img.gz | sudo dd of=/dev/YOURDEVICE status=progress
-
- Format your boot partition (the one 500MB large formatted falsely as NTFS) as FAT32
- jada jada boot via boot stick open console
- find out your partition label
- Type
diskpart
- Type
list disk
(all your drives should be shown now) - Type
sel disk 0
(or the drive to boot from - usually 0) - Type
list vol
(all partitions should be shown now) - Find your new fat32 boot partition with label/letter (probably C)
- May also identify your "normal" windows partition just to be sure later, lol
- Type
- type
bootrec /fixboot
- type
bcdboot REPLACE_X:\Windows /s REPLACE_Y: /f all
please replace REPLACE_X and Y with X = your windows installation Letter (for meG
) and Y your boot partition Letter (for meC
) - Jobs done ... reboot, enjoy windoof, hope nothing breaks again.