Restore Grub After Windows Install

Posted on  by 



Sponsored Link
  1. Restore Grub After Windows 10 Install Manjaro
  2. Restore Ubuntu Grub After Windows Install
  3. How To Restore Grub After Windows Install
  4. Restore Fedora Grub After Windows Install
This tutorial will explain how to restore Grub after installing Windows 7/Vista/Xp.If you are using dual boot PC with windows,Ubuntu for some reason you reinstall your windows now you may not see your grub 2 is loading because your windows installation might have been over written MBR (Master boot record).
  1. HOWTO Restore GRUB After Installing Windows by Bob Kashani on Oct 19, 2004 (UPDATED 2004-12-15). If you're like most people you probably have a dual boot system which allows you to boot into either Linux or Windows.
  2. After a fresh install of ubuntu on the blank SSD (windows was on another SSD, both SSDs are setup with GBT which requires UEFI), the system directly boot into ubuntu without showing grub menu.
  3. If all works well you can get back into your old install. I made sure the correct grub was there. Sudo grub-install /dev/sda; sudo update-grub; Reboot and you get grub with options for Ubuntu or Windows 10. Windows XP is now accessible through the Windows 10 launcher so it is chained. But now tripple boot to Ubuntu, Windows 10 and XP.
  4. How To Restore Grub Ubuntu Missing After Install Windows 10Install Easy Bcdfollow The TutorialBy Win 10 MatoriCarania.comMatori.pe.hu.

HOW TO REPAIR GRUB BOOTLOADER AFTER WINDOWS INSTALLATIONON DUAL-BOOTLINUX MINT (17.x) – WIN 10When you upgrade or reinstall your Windows OS on dual-boot comp.

Method 1

Using Ubuntu 9.10 livecd

First you need to download Ubuntu from Ubuntu site

In this tutorial we are assuming the Ubuntu partition is sdc3,and /boot partition is sdc2

Note:- You need to replace sdc3,sdc2 with your partitions.You can check your partition table with fdisk -l

Now Boot up ubuntu from the livecd,open terminal from Applications menu -> Accessories -> Terminal and login as root using the following command

sudo -i

mount /dev/sdc3 /mnt

mount /dev/sdc2 /mnt/boot

RestoreFix grub ubuntu

grub-install --root-directory=/mnt/ /dev/sdc

If you are not having “grub.cfg” file,use following contents to recreate

mount --bind /proc /mnt/proc

Windows

mount --bind /dev /mnt/dev

Restore fedora grub after windows install

mount --bind /sys /mnt/sys

chroot /mnt update-grub

umount /mnt/sys

umount /mnt/dev

umount /mnt/proc

exit

Method 2

Restore Grub After Windows 10 Install Manjaro

Using GRUB for DOS

GRUB4DOS is an universal boot loader based on GNU GRUB. It can boot off DOS/LINUX, or via Windows boot manager/syslinux/lilo, or from MBR/CD. It also has builtin BIOS disk emulation, ATAPI CDROM driver, etc.

Download GRUB for DOS from here

For XP Users

copy the file grldr from grub4dos package to C:.Edit boot.ini (hidden file) and add this line to the file:

c:grldr='grub4dos'

For Windows7/Vista Users

Copy the file grldr,grldr.mbr to C:.Create boot.ini file in the root directory of C:,copy and paste following into this file.

[boot loader]
timeout=0
default=c:grldr.mbr
[operating systems]
C:grldr.mbr='Grub4Dos'

Now,create menu.lst in root directory,with the following content

timeout 0
default 0
title grub2
find --set-root /boot/grub/core.img
kernel /boot/grub/core.img
boot

Now restart your computer,and select boot from Grub4Dos.Then select boot up Ubuntu in grub menu.
Once login,use this command to install grub into mbr

sudo grub-install /dev/sdc

Note :- Replace sdc with your partiton

Sponsored Link

Related posts

  • Zik – Audio player based on gstreamer (3)
  • Zero Install Injector – Install software easily and without root privileges (17)
  • Zenmap – Cross platform Nmap Security Scanner GUI (0)
  • Zattoo – Watch Online TV for free (18)
  • Youker assistant – Integrated tool to aid in routine system maintenance tasks (1)
  • YouAmp – Yet another music player for Linux (10)
  • ÜberStudent – Ubuntu version for Students and Researchers (18)

I had made a partition backup of a machine using Clonezilla and wanted to restore it. The restore was successful but because I had only restored the partitions rather than the full disk Grub was not installed in the MBR. Without Grub in the MBR the system failed to boot.

I mounted the new filesystem to /mnt while still using the live Clonezilla disk that I had used for the backup. Then I chrooted using the following command

chroot /mnt

then while in the chroot I attempted to reinstall grub, and since this was a Cloudlinux/Centos install I performed

Restore Ubuntu Grub After Windows Install

grub-install /dev/sda

How To Restore Grub After Windows Install

But grub-install complained that it couldn’t find /dev/sda or that /dev/sda was not a valid block device. So then hunting around on the internet for a little bit I came across this article which showed basically how to ensure that your current live

  • /dev
  • /sys
  • /proc

filesystems are accessible inside of your current chroot.

So I ran the following commands outside of the chroot before entering it again.

Restore Fedora Grub After Windows Install

mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys

Then I chrooted to /mnt again and ran my grub-install command and all was well. The machine booted perfectly after that.

Shameless Plug

If you need to repartition or reformat a drive. Or resize partitions and check the health of your drive for Linux or Windows based machines give Parted Magic a try. It takes your favorite open source tools and puts them in an easy to use bootable linux CD. It has become my goto tool for all hard drive management tasks.





Coments are closed