GRUB is the default Ubuntu boot loader and manager. 9.04 ubuntu version is still using GRUB version 1, but in the version of 9.10 and above already using GRUB version 2. GRUB is actually not very influential, if we use a single operating system. But very necessary when we use 2 operating system that functions as a boot manager. We can choose which operating system to be run. For example we want to install ubuntu after installing windows so ubuntu installation will automatically create a boot menu with the GRUB. but it is different if you install ubuntu first and then install windows, or after we reinstall our windows because of damage. then GRUB has been made will be lost. okay now I'll explain how to recovery GRUB version 2 or commonly referred to as GRUB 2.
The first step you should have another ubuntu to boot. You can use ubuntu live cd or use planted in the UFD.
After we get into ubuntu from live cd or the UFD and then run the terminal. run this command
sudo mount /dev/sda7 /mnt/boot
And than run this command
grub-install --root-directory=/mnt/ /dev/sda
If you miss “grub.cfg” file,use following to recreate:
mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
chroot /mnt update-grub
umount /mnt/sys
umount /mnt/dev
umount /mnt/proc
exit
Your GRUB have returned
No comments:
Post a Comment
please leave a comment below