Skip to content

Instantly share code, notes, and snippets.

@patrickmmartin
Last active August 29, 2015 14:03
Show Gist options
  • Save patrickmmartin/7a2babf1a2a18f583daf to your computer and use it in GitHub Desktop.
Save patrickmmartin/7a2babf1a2a18f583daf to your computer and use it in GitHub Desktop.
restore the Windows boots on debian dual boot
$ sudo os-prober
/dev/sda1:Windows Recovery Environment (loader):Windows:chain
/dev/sda2:Windows 8 (loader):Windows1:chain
$ sudo update-grub2
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.2.0-4-amd64
Found initrd image: /boot/initrd.img-3.2.0-4-amd64
Found Windows Recovery Environment (loader) on /dev/sda1
Found Windows 8 (loader) on /dev/sda2
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment