Reinstall GRUB in a multi-operating system environment


(0 comments)

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
else
    chroot /mnt grub-install /dev/sda
fi


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

Currently unrated

Comments

There are currently no comments

New Comment

required

required (not published)

optional

required


What is 10 × 1?

required