Last active
April 23, 2021 22:17
-
-
Save jamiedevsandbox/b845d6fe3586c2163cccc27febb29632 to your computer and use it in GitHub Desktop.
Fix Windows 7 bootloader/MBR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Launch windows 7 on a bootable DVD. | |
Spawn terminal with Shift + F10. | |
Inside cmd prompt: | |
bootrec.exe /fixmbr | |
bootrec.exe /fixboot | |
bootrec.exe /rebuildbcd | |
restart Windows and it will now boot. | |
------------------------------------------ | |
Linux (must be root user): | |
install syslinux or use Fedora. | |
(on your specific block device (not a partion: sdb1) sda, sdb ...) | |
sudo dd if=/usr/lib/syslinux/mbr/mbr.bin of=/dev/sda | |
reboot system into windows 7. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment