LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-10-2012, 01:41 AM   #1
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Rep: Reputation: 31
Restore linux mint grub after installing Fedora 17


I have Linux Mint installad on my PC. Grub was installad on /dev/sda
After installing Fedora 17, Fedora´s grub now is intalled on /dev/sda.
But I prefer so much Linux Grub then Fedora grub.
I ran Linux Mint by SGD2 and tried
Code:
grub-install --root-directory /dev/sda
but it doesnot work.
Any idea how to restore Linux Mint grub on sda?
 
Old 10-10-2012, 04:23 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
If you are chroot'd into your Mint install, simply run
Code:
grub-install /dev/sda
update-grub
 
Old 10-10-2012, 08:20 AM   #3
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
That works perfectly. Now Linux Mint grub is active, but after "update-grub" it doesnot detect Fedora 17...
Do I have to add it manualy? Or meybe I need other command? I can run Fedora by SGD2, so Fedora is OK. Just doesnot appear in Linux Mint grub. Any idea on how to fix that?
Fedora is on /dev/sda6 on a logical partition.
 
Old 10-11-2012, 03:37 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Dunno - I don't allow Ubuntu (derivatives) to control my machines. Update-grub should find the kernel(s) in F17 okay I would have thought.
What filesystem are you using on F17 ?.
 
Old 10-11-2012, 04:59 AM   #5
m.a.l.'s pa
Member
 
Registered: Oct 2007
Location: albuquerque
Distribution: Debian, Arch, Kubuntu
Posts: 366

Rep: Reputation: 139Reputation: 139
Maybe try running update-grub again. I had a similar problem with Debian Wheezy's grub2 not detecting Fedora 17 after running update-grub, but for some reason, when I ran it again Fedora 17 was detected fine, and no problems since.
 
Old 10-11-2012, 12:21 PM   #6
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
I found the problem. First, I need to mount the partition where Fedora is isntalled,then grub-update finds Fedora correctly.
 
Old 10-11-2012, 07:48 PM   #7
m.a.l.'s pa
Member
 
Registered: Oct 2007
Location: albuquerque
Distribution: Debian, Arch, Kubuntu
Posts: 366

Rep: Reputation: 139Reputation: 139
Quote:
Originally Posted by miros84 View Post
I found the problem. First, I need to mount the partition where Fedora is isntalled,then grub-update finds Fedora correctly.
Wow. That explains what happened here, too. Looking back at my notes, Fedora 17 wasn't found at first, but after I set up mount points for its partitions in Wheezy, and edited fstab, update-grub found it just fine. I had no idea why it was found the second time I ran update-grub, but not the first! Thanks!
 
Old 10-13-2012, 04:11 PM   #8
Lsatenstein
Member
 
Registered: Jul 2005
Location: Montreal Canada
Distribution: Fedora 31and Tumbleweed) Gnome versions
Posts: 311
Blog Entries: 1

Rep: Reputation: 59
The way I did grub changes was much much easier.

Grub is already installed in Mint.
cd /boot/grub
then do grub-mkconfig >/tmp/grub.cfg # creates the grub that mint generates.
put this grub in an email to your self.
reboot to Fedora.
as a user download the grub.cfg and put it in /tmp within Fedora
as root
cd /boot/grub2
cp grub.cfg grub.bak
Now cp /tmp/grub.cfg .

reboot and it will be Mint's grub.

There is really nothing wrong with Fedora's grub. It is only there to start your choice of Linux
You can modify the grub.cfg to change default from '0' to 'x' where x is the menuentry number (counting from zero).
 
  


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
how to restore sound on linux mint bernie cousino Linux - Newbie 1 12-25-2011 04:18 PM
Restore GRUB after installing Windows 7 tron_thomas Linux - Software 11 11-20-2010 08:52 AM
uninstall GRUB used with linux mint origami-sheep Linux - Newbie 7 02-10-2010 11:51 AM
re installation of grub in Linux mint after installing xp over mint sampad.sarangi General 1 01-15-2008 05:37 PM
unable to install grub when installing Mint 3.0 holyct Ubuntu 1 08-29-2007 05:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:57 AM.

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