bringing back grub
I installed windows after installing linux. Grub no longer shows up. How do I get it back?
|
Hi
Boot the live cd mount your linux partition /mnt/sdax X being the partition number install grub sudo grub-install --root-directory=/mnt/sdax dev/sda |
Quote:
|
So if I have windows installed on my first partition, and then for my extended partition, the partitions, /boot, /, etc., do I want to install it to the first one (NTFS) or to one of the linux partitions? I read that the mbr is located at position 0, so I wasn't sure if I install it on the windows partition, but I was afraid it would write over windows.
|
Here is explained for Ubuntu OP hasn't mentioned what OS he is using ------> https://help.ubuntu.com/community/Gr...talling_GRUB_2
Quote:
|
Quote:
1) install windows 2) install linux ( grub will boot windows, windows will NOT boot linux ) you made a /boot partition install grub there then in the bios set THAT partition to boot first ! or using Gparted live cd put the "boot flag" on that partition |
I tried all possible ways but it failed, and I had finally reloaded the OS and its working fine now.. Thanks for all the support provided.
|
Finally solved... did a complete re-install, but that did not work (of Linux). Then I followed this tutorial. I was mounting the sda# instead of just the sda partition.
Link: http://www.howtogeek.com/114884/how-...ntu-wont-boot/ |
Same here, did a complete reinstall ( including Windows) it worked fine, unable to find what went wrong initially.
|
All times are GMT -5. The time now is 10:49 AM. |