If you are having Linux based systems, you will definitely dare to play with stuffs like ‘dual booting’ with windows, android, other linux distros, etc.
Today while I was trying to dual boot with android, somehow my linux mint (also works for ubuntu) grub showed ERROR 15
Grub is the place from which your Operating System boots, or helps to boot (for GNU based).
So if you mess with the grub, your OS won’t boot. But the OS condition will be untouched.
What we need to do?
- Do not become depressed, its not hard to resolve.
- Never ever re-install the OS, as this will vanish your valuable data and settings.
- Do a grub repair. (explained in detail).
- Live CD for installation / Live USB
I use Live USB, as it is more convenient and fast. If you don’t have one download from another PC or borrow.
How is it Done?
- Switch off your computer.
- Put your Live CD / Plug in your USB
- When computer loads, hit F12 to enter boot menu (this differs in different pc)
- Choose boot from USB.
- Now your Mint / Ubuntu directly loads from the Live CD / USB.
- Open TERMINAL (ctrl + alt + T)
1) Type Code:
2) Type Code:
mount /dev/sda1 /mnt/
mount -t proc none /mnt/proc
mount --rbind /sys /mnt/sys
mount --rbind /dev /mnt/dev
chroot /mnt /bin/bash
export PS1="\[\033[1;33m\]chroot "
If your mint / ubuntu root directory is in a different partition, like sda6, you must not use sda1 in the above code. Instead should make it sda6. Eg:
mount /dev/sda6 /mnt/
3) Type Code:
grub-mkconfig -o /boot/grub/grub.cfg
Now you are done.. This is a LIFE SAVER..
You should unplug the Live CD / USB before restarting.