Skip to content

Instantly share code, notes, and snippets.

@manhtai
Forked from anonymous/gist:8918342c3d998cd5ade0
Last active August 29, 2015 14:12
Show Gist options
  • Save manhtai/0f83aaa841b225644f9a to your computer and use it in GitHub Desktop.
Save manhtai/0f83aaa841b225644f9a to your computer and use it in GitHub Desktop.

To use Windows 8 boot manager

Unlock partition

diskpart
list disk
select disk 0
list partition
select partition 0
active

Repair mbr

bootrec /rebuildbcd
bootrec /fixmbr
bootrec /fixboot

To use grub

sudo grub-install /dev/sdX  # Example: sudo grub-install /dev/sda
sudo grub-update

http://www.thewindowsclub.com/the-drive-where-windows-is-installed-is-locked http://www.thewindowsclub.com/repair-master-boot-record-mbr-windows http://askubuntu.com/questions/88384/how-can-i-repair-grub-how-to-get-ubuntu-back-after-installing-windows https://help.ubuntu.com/community/Grub2/Installing#Reinstalling_GRUB_2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment