Skip to content

Instantly share code, notes, and snippets.

@qwerty12
Last active December 2, 2023 07:28
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qwerty12/bf393ace20f86bacbbc5d23ff3eae2de to your computer and use it in GitHub Desktop.
Save qwerty12/bf393ace20f86bacbbc5d23ff3eae2de to your computer and use it in GitHub Desktop.
##!/bin/sh
# Use Ubuntu because they have their heads screwed on straight and patch GRUB to STFU when starting
mkdir /mnt/win
mount -t ntfs-3g -o windows_filenames /dev/sda1 /mnt/win
grub-install --no-floppy --modules=ntfs --root-directory=/mnt/win --boot-directory=/mnt/win/Boot /dev/sda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment