Created
June 16, 2013 16:27
-
-
Save bepcyc/5792550 to your computer and use it in GitHub Desktop.
Recovering grub and solving EFI problems in ubuntu (13.04 - and maybe others) on ASUS N76 laptop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#http://askubuntu.com/questions/88384/how-can-i-repair-grub-how-to-get-ubuntu-back-after-installing-windows | |
sudo mount /dev/sdax /mnt # make sure that sdax is correct! | |
for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt$i"; done | |
sudo chroot /mnt | |
#optional - if you have a separate boot partition | |
mount /boot | |
update-grub | |
grub-install /dev/sda | |
update-grub # I'm not sure if this is necessary, but it doesn't hurt. | |
#http://askubuntu.com/questions/187862/after-update-get-error-file-not-found-followed-by-grub-rescue | |
#recovering efi boot. "normal.mod not found" problem: | |
#Type ls to get a list of partitions | |
#Enter set prefix=(hd0,msdos6)/boot/grub [you will almost certainly have to enter a different drive/partition in the brackets, you #may just have to try all of those listed by ls until you find the one that works. | |
#Type insmod normal | |
#Type normal and you will get your boot prompt back! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment