How to Reinstall Grub?

How to Reinstall Grub?

Resolution
  1. Place your SLES/SLED 10 CD 1 or DVD in the drive and boot up to the CD or DVD. ...
  2. Enter the command "fdisk -l". ...
  3. Enter the command "mount /dev/sda2 /mnt". ...
  4. Enter the command "grub-install --root-directory=/mnt /dev/sda". ...
  5. Once this command completes successfully reboot your system by entering the command "reboot".

How do I reinstall grub in terminal?

Open a terminal by selecting Applications, Accessories, Terminal from the menu bar. Run the grub-setup -d command as described below. This will reinstall the GRUB 2 files on the mounted partition to the proper location and to the MBR of the designated device.

How do I uninstall and reinstall grub?

Uninstalling GRUB 2
  1. Open a terminal: Applications, Accessories, Terminal.
  2. Optional: Make backup copies of the main GRUB 2 directories and files. sudo cp /etc/default/grub /etc/default/grub.old. ...
  3. Remove GRUB 2. sudo apt-get purge grub-pc. ...
  4. Install GRUB 0.97. ...
  5. With grub installed, the user must still create the menu. ...
  6. Reboot.
Robert Thorne
Author

Robert Thorne

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.