How do I recover grub after I ran a fixmbr command?

I have actually removed a dividing which had an insufficient ubuntu install making use of Windows 7 dividing supervisor.

Apart from that I had a various dividing with a functioning ubuntu yet when I removed the dividing and also reactivated the computer system I have actually figured out that grub wont allow me enter any kind of os so I made use of the fixMbr command in the windows 7 disc and also it feels like grub has actually been gone and also when I boot I do not receive a selection of an os yet it automaticlly lots windows 7.

So my inquiry is just how can I get ubuntu back?

2019-12-02 02:59:45
Source Share
Answers: 2

Windows often tends to remove various other OSs if existing. Consequently you require to restore GRUB. If your Ubuntu installation ist still existing (get in touch with real-time CD!) you'll have the ability to boot right into Ubuntu once more.

2019-12-03 04:58:57

You require to re-install GRUB onto the functioning Ubuntu dividing. Order a Ubuntu LiveCD and also boot to it.

One you do that, open GParted. We'll utilize this to uncover your hard drive is letter and also your Ubuntu dividing is number.

Now, the underscored component on top is the tool we are considering (my hard drive) where the underscored component inside the table is my Ubuntu dividing (it will not remain in the specific very same area in the dividing, seek an ext4 (or ext3 for Ubuntu variations before 10.04) dividing). We require these 2 when we enter into the incurable.

Next, open Terminal up and also type the adhering to in, change X with the hard drive letter and also Y with the dividing number (these 2 are revealed inside GParted)

sudo mount /dev/sdXY /mnt
sudo grub-install --root-directory=/mnt /dev/sdX

So for my instance, I would certainly change X with an and also Y with 4. (these will certainly differ relying on just how your dividings are arrangement, so do not make use of these unless GParted claims that is where your dividings go to)

Let it function and also after it ends up, GRUB needs to turn up when you boot your computer system up.

2019-12-03 04:29:57