M
M
MARMELAD032015-10-28 12:22:41
linux
MARMELAD03, 2015-10-28 12:22:41

How to add widnows to grub?

After installing ubuntu 14.04 windows is not visible in grub. I tried reinstalling grub, nothing changed. os-prober doesn't show anything.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-10-28
@MARMELAD03

Start the system from the LiveCD/USB and open a terminal. To do this, you can press Alt + F2 and enter the command:
Next, you need to find out your partition table. Use the command:
The following table should be displayed on the screen:

/dev/sda1 29 8369 66999082+ 83 Linux
/dev/sda2 * 8370 13995 45190845 7 HPFS/NTFS
/dev/sda3 13996 14593 4803435 5 Extended

From the table we see that Linux is (in our case) on the /dev/sda1 partition.
Now we will connect this partition to /mnt with the following command:
Then, to write grub to the MBR, enter the following command:
In case you only need to restore the MBR of the disk ( for example, after reinstalling Windows), then this is enough.
If you need to update the grub menu as well ( for example, after installing Windows ), then you need to do:
Restore finished!
How to add windows to grub list

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question