LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-11-2013, 10:43 AM   #1
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Rep: Reputation: Disabled
bringing back grub


I installed windows after installing linux. Grub no longer shows up. How do I get it back?
 
Old 04-11-2013, 11:23 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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

Last edited by spiky0011; 04-11-2013 at 01:01 PM.
 
Old 04-11-2013, 12:57 PM   #3
programer
Member
 
Registered: Mar 2012
Location: India
Distribution: Linux mint 14, Ubuntu 12.10
Posts: 46

Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by spiky0011 View Post
Hi

Boot the live cd mount your linux partition /mnt/linux

install grub
sudo grub-install --root-directory=/mnt/linux dev/sda
This i had seen in some other forum , can you just replace the --root directory and write exactly what should be given there ? It will help newbie to understand better
 
Old 04-11-2013, 01:23 PM   #4
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-11-2013, 01:26 PM   #5
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Here is explained for Ubuntu OP hasn't mentioned what OS he is using ------> https://help.ubuntu.com/community/Gr...talling_GRUB_2

Quote:
forget this part

Boot from live CD or USB then open a terminal and type

Code:
sudo fdisk -l
Note: -l is lowcap L, no the number 1

You'll see a list of your drives and partitions, (like /dev/sda1. Make note of the partition you have your root for Linux)Here we will assume sda1 is the partition you have installed Linux
then do
Code:
sudo mkdir /mnt
Code:
sudo mount /dev/sda1 /mnt
Next do
Code:
sudo chroot /mnt
 
Old 04-11-2013, 02:38 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
I installed windows after installing linux. Grub no longer shows up. How do I get it back?
so you did not fallow the advice on almost every guide on dual booting
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
 
Old 04-18-2013, 04:04 AM   #7
programer
Member
 
Registered: Mar 2012
Location: India
Distribution: Linux mint 14, Ubuntu 12.10
Posts: 46

Rep: Reputation: Disabled
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.
 
Old 04-19-2013, 06:37 PM   #8
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled
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/
 
Old 04-20-2013, 10:32 AM   #9
programer
Member
 
Registered: Mar 2012
Location: India
Distribution: Linux mint 14, Ubuntu 12.10
Posts: 46

Rep: Reputation: Disabled
Same here, did a complete reinstall ( including Windows) it worked fine, unable to find what went wrong initially.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with bringing settings back into existence Xl1NntniNH7F Linux - Software 4 12-16-2011 05:20 PM
Bringing back to foreground a process whose terminal is killed siasia Linux - Newbie 5 04-05-2011 06:41 PM
Bringing back to foreground a process whose terminal is killed siasia Linux - Newbie 1 04-05-2011 06:02 PM
System is hanging at :BRinging up loop back interface" svyshna Linux - General 1 09-21-2003 06:54 PM
bringing this back to the surface... fatpig LQ Suggestions & Feedback 2 01-03-2002 01:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration