Reinstall GRUB in a multi-operating system environment


If you are using both Omarine and Windows in the same machine and use GRUB's menu to select the operating system at boot, in a rare case, a Windows update could damage your GRUB image and your computer is no longer bootable.
The workaround is to reinstall the GRUB, it is included in the Omarine.

You boot the Omarine installer (in omarine-7.0-dvd.iso - USB stick or DVD). Assuming you have the Omarine installed in /dev/sda1, we need to mount this partition at /mnt first:

mount /dev/sda1 /mnt

Later we will install GRUB in a chroot environment, which should be aware of device, proc and sysfs:

mount -v --bind /dev /mnt/dev &&
mount -vt devpts devpts /mnt/dev/pts -o gid=5,mode=620 &&
mount -vt proc proc /mnt/proc &&
mount -vt sysfs sysfs /mnt/sys &&
mount -vt tmpfs tmpfs /mnt/run

Now we install GRUB:

if [ -d /sys/firmware/efi ]; then
    chroot /mnt grub-install --bootloader-id=OMARINE
    chroot /mnt grub-install /dev/sda

Reboot your computer and you've restored the multi-OS boot menu.

Currently unrated


There are currently no comments

New Comment


required (not published)



What is 4 - 2?