LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 09-15-2007, 10:46 AM   #1
iAlta
Member
 
Registered: Oct 2005
Distribution: Ubuntu 7.10, OpenSUSE 10.3, Linux Mint, Arch
Posts: 92

Rep: Reputation: 15
GRUB problem with fedora/ubuntu


First I installed Fedora.
Then, maybe a week later I installed Ubuntu.
During the Ubuntu Installation it asked me to format the /boot partition, and I so did. Ofcourse now I can't boot into Fedora, since it's grub was on the formated /boot. But I can boot into Ubuntu, so I'm happy.

But now I want to boot back into Fedora, but I have no idea what to do. I know I can edit GRUB, but what I'm most concerned about is the vmlinuz thing, I have no idea what to do with that, isn't the vmlinuz typically on the /boot? If so is there a way to redownload it?
 
Old 09-15-2007, 10:56 AM   #2
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
All you have to do, is add the path to the Fedora kernels. I did pretty much the same thing as you, I had Slack 12 installed, then installed UbuntuStudio with Grub. Pretty much all you have to do is edit /boot/grub/menu.lst.

Here's a snippet of mine
Code:
title		Ubuntu, memtest86+
root		(hd2,0)
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda2.
#title		Slackware Linux (Slackware 12.0.0) (on /dev/hda2)
#root		(hd0,0)
#kernel		/vmlinuz-generic-2.6.18.8-smp root=/dev/hda2 
#savedefault
#boot
Notice the difference, with Ubuntu, root is (hd2,0) and Slack is (hd0,0). With grub, the first disk device is labeled as hd0 with the first partition as hd0,0. So if you have Fedora installed on the first disk, and Ubuntu on the second, you will have something like
Code:
title		Ubuntu
root		(hd1,0)
kernel	/boot/vmlinuz
quiet

title          Fedora
root          (hd0,0)
kernel       /boot/vmlinuz
 
Old 09-15-2007, 12:13 PM   #3
iAlta
Member
 
Registered: Oct 2005
Distribution: Ubuntu 7.10, OpenSUSE 10.3, Linux Mint, Arch
Posts: 92

Original Poster
Rep: Reputation: 15
Thanks!

But is it a problem that they don't have the same kernel?
 
Old 09-15-2007, 12:27 PM   #4
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
It's ok if the kernel name is the same. The root device is different. Grub will look in /boot for a file called vmlinuz, but its going to look in (hd0,0)/boot and (hd1,0)/boot.

I just realized you said you formatted /boot. Did you have a separate partition for /boot in Fedora? If so, did you format it and get rid of your Fedora kernel?

Last edited by manwichmakesameal; 09-15-2007 at 12:30 PM.
 
Old 09-15-2007, 02:01 PM   #5
iAlta
Member
 
Registered: Oct 2005
Distribution: Ubuntu 7.10, OpenSUSE 10.3, Linux Mint, Arch
Posts: 92

Original Poster
Rep: Reputation: 15
yup it's gone!
 
Old 09-15-2007, 02:05 PM   #6
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
you will have to reinstall fedora then
 
Old 09-15-2007, 02:14 PM   #7
iAlta
Member
 
Registered: Oct 2005
Distribution: Ubuntu 7.10, OpenSUSE 10.3, Linux Mint, Arch
Posts: 92

Original Poster
Rep: Reputation: 15
that probably isn't so stupid anyway..., or maybe I'll install slack...
 
  


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
Grub problem with Ubuntu 7.04 jfaberna Ubuntu 5 04-23-2007 05:19 PM
trouble dual booting Ubuntu and Fedora Core 4 with GRUB. bgryderclock Linux - Software 5 04-04-2007 12:46 PM
Ubuntu GRUB Problem. duffmckagan Ubuntu 8 06-29-2005 04:37 AM
grub, fedora, ubuntu and wrong root? hometoast Ubuntu 1 06-10-2005 11:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 09:24 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