Skip to content

Instantly share code, notes, and snippets.

@xyzkab
Last active April 6, 2018 09:49
Show Gist options
  • Save xyzkab/c85d60595358bc3b320274e7ffa398a9 to your computer and use it in GitHub Desktop.
Save xyzkab/c85d60595358bc3b320274e7ffa398a9 to your computer and use it in GitHub Desktop.
Debian Strecth: GRUB RESCUE UNKNOWN FILESYSTEM

Debian Strecth: GRUB RESCUE UNKNOWN FILESYSTEM

  • I encountered this problem in latest debian Strecth after a damn Windows 10 auto-update
    grub-rescue: unknown filesystem.
    the original on how to fix is here https://askubuntu.com/a/834631

Step-by-step

  • boot debian jessie/strecth live-cd to usb/dvd
  • mount /dev/sdaX /mnt # X is where our debian partition installed
  • for i in /sys /proc /run /dev; do mount --bind "$i" "/mnt/$i"; done
  • mount /dev/sdaX /mnt/boot/efi/ # X is where our windows 10 boot efi partition installed
  • chroot /mnt
  • grub-install /dev/sda
  • update-grub
  • exit
  • for i in /sys /proc /run /dev; do unmount "/mnt/$i"; done
  • umount /mnt/boot/efi
  • umount /mnt
  • init 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment