HOW FIRST
- First we must prepare for the Ubuntu Live CD, if the guns could have also used the bootloader from flash disk
- Then change the setting in the BIOS, CD or flash disks in the first place (first boot option)
- If your PC is set to boot to the CD-ROM, you can wait until the Ubuntu boot options screen appears just select Try Ubuntu (without any change on your computer)
- Once inside run the Live CD Desktop Terminal by clicking on the Applications menu> Accessories> Terminal
- Check our Linux partitions using the command
- Now we know the Linux root partition ( eg a Linux partition on my laptop is sda7 ), then do the mounting as the following ( see Figure-2 )
- Now we're going to restore GRUB to the MBR, the command
- now we'll return into the Linux root partition ( in this case the location of my laptop Linux partition is / dev/sda7 ), the command
- If no error message then after you do a reboot, the bootloader will be back to normal.
sudo fdisk-l
sudo mount-t ext4 / dev/sda7 / mnt /
sudo mount-t proc proc / mnt / proc /
sudo mount-t sysfs sys / mnt / sys /
sudo mount-o bind / dev / / mnt / dev /
sudo chroot / mnt / bin / bash
grub-install / dev / sda
grub-install / dev/sda7







