Skip to content

Instantly share code, notes, and snippets.

@jamiedevsandbox
Last active April 23, 2021 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamiedevsandbox/b845d6fe3586c2163cccc27febb29632 to your computer and use it in GitHub Desktop.
Save jamiedevsandbox/b845d6fe3586c2163cccc27febb29632 to your computer and use it in GitHub Desktop.
Fix Windows 7 bootloader/MBR
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