Skip to content

Instantly share code, notes, and snippets.

@pwlin
Last active August 29, 2015 14:08
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 pwlin/5e1c756623b5685b6f8e to your computer and use it in GitHub Desktop.
Save pwlin/5e1c756623b5685b6f8e to your computer and use it in GitHub Desktop.
windows 7 boot recovery/ grub 4 dos
bcdboot c:\windows /s c:
================
timeout 5
default 0
title Windows 7
rootnoverify (hd0,1)
chainloader +1
================
bootrec.exe /fixmbr
===============
title Windows 7 AIO ISO
find --set-root /images/Win7sp1AIO.ISO
map /images/Win7sp1AIO.ISO (hd32)
map --hook
root (hd32)
chainloader (hd32)
title Windows 7 AIO Installer
find --set-root /bootmgr
chainloader /bootmgr
title Windows Setup
chainloader /BOOTMGR
title Load Microsoft Windows Vista/Win7/Windows 8
root (hd0,0)
chainloader (hd0,0)/bootmgr
title Find and Load NTLDR of Windows NT/2K/XP
find --set-root /ntldr
chainloader /ntldr
title Find and Boot Linux with menu.lst
find --set-root /sbin/init
configfile /Boot/grub/menu.lst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment