Skip to content

Instantly share code, notes, and snippets.

@MRodier
Created August 5, 2018 12:42
Show Gist options
  • Save MRodier/a68451da08bc78e4400f5dbb417a9d92 to your computer and use it in GitHub Desktop.
Save MRodier/a68451da08bc78e4400f5dbb417a9d92 to your computer and use it in GitHub Desktop.
"Grub-rescue>" after partioning issue
Look for the unix filesystem ( repeat "ls (hdX,msdosY)/" until you got it ), then :
1) set prefix=(hdX,msdosY)/[path_to_grubModulesToLoad] #sometimes "/boot/grub" sometimes "/usr/lib/grub/i386-pc"
2) set root=(hdX,msdosY)
3) insmod normal
4) normal
Later, in shell:
5) sudo update-grub
6) sudo grub-install /dev/sda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment