grub repair
TRANSCRIPT
How toUbuntu
About Countdown
Warning:
Using the sudo command, especially
from a Live CD can do serious damage to
your system. Read all instructions and
confirm you understand before executing
any commands. When pasting into the
Terminal, use Ctrl + Shift + V , NOT
Ctrl + V .
Terminal Commands:
Mount the partition your Ubuntu
Installation is on. If you are not sure which
it is, launch GParted (included in the Live
CD) and find out. It is usually a EXT4
Partition. Replace the XY with the drive
letter, and partition number, for example:
sudo mount /dev/sda5 /mnt .
How to Repair, Restore, or Reinstall Grub 2 with aUbuntu Live CD or USB
Why are there ads?
Grub 2 typically gets overridden when you install Windows or another Operating System.
To make Ubuntu control the boot process, you need Reinstall (Repair/Restore) Grub using
a Ubuntu Live CD.
sudo mount /dev/sdXY /mnt
Now bind the directories that grub needs access to to detect other operating systems, like so:
How to Repair, Restore, or Reinstall Grub 2 with ... http://howtoubuntu.org/how-to-repair-restore-rein...
1 of 4 12/09/2013 12:57 PM
TweetTweet
9 16 161
sudo mount --bind /dev /mnt/dev && sudo mount --bind /dev/pts
/mnt/dev/pts && sudo mount --bind /proc /mnt/proc && sudo mount --bind
Now we jump into that using chroot .
sudo chroot /mnt
Now install, check, and update grub.
This time you only need to add the drive letter (usually a) to replace X, for example: grub-install
/dev/sda , grub-install –recheck /dev/sda .
grub-install /dev/sdX
grub-install --recheck /dev/sdX
update-grub
Now grub is back, all that is left is to exit the chrooted system and unmount everything.
exit && sudo umount /mnt/dev && sudo umount /mnt/dev/pts && sudo umount
/mnt/proc && sudo umount /mnt/sys && sudo umount /mnt
Shut down and turn your computer back on, and you will be met with the default Grub2 screen.
You may want to update grub or re-install burg however you like it.
Congratulations, you have just Repaired/Restored/Reinstalled Grub 2 with a Ubuntu Live CD!
50
LikeLike
How to Repair, Restore, or Reinstall Grub 2 with ... http://howtoubuntu.org/how-to-repair-restore-rein...
2 of 4 12/09/2013 12:57 PM
AnOpenShout
site.
poweredby
Simplet
theteeny-tiny
blog
legal
·
disclaimer
·
copyright
·
cookies
·
privacy
· terms
read more · license · legal code
license
This work is licensedunder Creative
Commons license which requires suitableAttribution upon the reproduction of anywork, for Non-Commercial uses only. Italso requires you Share-Alike derivativeworks under the same or more liberallicense.
All article have been tested to work with Ubuntu 12.04, 12.10 and 13.04 unless otherwise noted.
Why are there ads?
Share and find us elsewhere
Trending
How to Install LAMP on Ubuntu · How to Ubuntu
How to decide if you should use 32bit or 64bit Ubuntu ·
How to Ubuntu
How to Install the Latest Version of GIMP in Ubuntu ·
How to Ubuntu
How to Install Skype Wrapper and Integrate Skype into
Ubuntu · How to Ubuntu
How to Edit Dash Application Results · How to Ubuntu
How to get more free disk space in Ubuntu · How to
Ubuntu
How to Install Fonts in Ubuntu · How to Ubuntu
Powered by AddThis
How to Repair, Restore, or Reinstall Grub 2 with ... http://howtoubuntu.org/how-to-repair-restore-rein...
3 of 4 12/09/2013 12:57 PM
Ubuntu, Canonical and the Circle of Friends are registered trademarks of Canonical Ltd.
How to Repair, Restore, or Reinstall Grub 2 with ... http://howtoubuntu.org/how-to-repair-restore-rein...
4 of 4 12/09/2013 12:57 PM