Quote:
Originally Posted by rknichols
|
Here's the instruction for retiring GRUB from live CD
How to Repair, Restore, or Reinstall Grub 2 with a Ubuntu Live CD or USB
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
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/sda1 /mnt.
sudo mount /dev/sdXY /mnt
Now bind the directories that grub needs access to to detect other operating systems, like so.
Now we jump into that using chroot.
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
As you can see from my picture, sdb5 is my lost Linux partition so I mounted. Its partition type of Linux Not ext.
when I do sudo mount --bind /dev /mnt/dev && the prompt becomes >> is that OK??
the next command I need to do is sudo mount --bind /dev/pts /mnt/dev/pts && . Can I continue with that at the >> prompt?
After mounting, because my partition is /dev/sdb5 so I need to do grub-install /dev/sdb5? but the instruction says grub-install /dev/sda though.