Ask Your Question
0

How to configure GRUB after dual boot linux only installation?

asked 2013-05-26 08:13:49 -0600

Bucic gravatar image

updated 2014-02-15 13:44:39 -0600

mether gravatar image

The Fedora Documentation containst pretty detailed info on handling uninstallation process for dual-boot systems, but I haven't found any useful info on dual-boot installation.

I've installed two Fedora 18's on two separate partitions of my sda drive. First I installed Fedora with GNOME (sda2, LVM), then Fedora with LXDE (sda3, LVM). Both systems configured same way with the same repos etc.

I have no separate /boot partition.

The GRUB menu:

1 Fedora (3.9.3-201.fc18.x86_64)
2 Fedora (3.9.2-200.fc18.x86_64)
2 Fedora (3.8.11-200.fc18.x86_64)
4 Fedora release 18 (Spherical Cow)
5 Advanced options for Fedora release 18 (Spherical Cow)

My /etc/default/grub contents (never altered by me):

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_CMDLINE_LINUX="rd.md=0 rd.lvm=0 rd.dm=0 $([ -x /usr/sbin/rhcrashkernel-param ] && /usr/sbin/rhcrashkernel-param || :) rd.luks=0 vconsole.keymap=pl2 rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_THEME="/boot/grub2/themes/system/theme.txt"

The following problems occur:
1. The GRUB menu does not indicate Fedora versions clearly.
Only by trial and error I know the top entries are for Fedora LXDE and the (Spherical Cow) is for my Fedora with GNOME.
2. (serious) LXDE installation went kernel 3.9.
few days ago while the GNOME install is stuck at 3.8.
When I enter the pos. No. 5 in the GRUB menu the highest kernel version I get is also 3.8. EDIT: At some point I started getting GRUB2 Error: You need to load the kernel first.

How do I fix both issues?

What I have already tried:
su -c 'yum clean all && yum update'

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

answered 2013-05-28 07:24:25 -0600

Bucic gravatar image

updated 2013-05-28 13:01:54 -0600

grub2-mkconfig -o /boot/grub2/grub.cfg
This alone fixed the main issue (2). I've issued the command from my secondary system (LXDE, sda3) and it seemed to work anyway. I did this from my secondary linux install because at some point my primary system got unbootable after a kernel update ("load kernel first" error).

Source
https://ask.fedoraproject.org/question/9278/missing-kernels-after-f15-f17-preupgrade/?answer=15860#post-id-15860

Additional resources:
fedoraproject.org/wiki/GRUB_2
Grub Customizer

edit flag offensive delete link more
0

answered 2013-05-27 20:46:23 -0600

ThomasMcA gravatar image

There are several tools that can fix grub. Try boot-repair, SystemRescueCD or Rescatux.

edit flag offensive delete link more

Comments

Just to be on the safe side - it was not me who Dow voted your answer :)

Bucic gravatar imageBucic ( 2013-05-28 07:11:21 -0600 )edit
1

That's what I get for trying to help. Sometimes I wonder why I even bother. Ignorance is everywhere, and I keep running into it head-on!

ThomasMcA gravatar imageThomasMcA ( 2013-05-28 09:21:35 -0600 )edit

(My previous comment got corrupted upon edit) Just to be on the safe side - it was not me who Dow voted your answer :) The tools you've mentioned are invaluable when dealing with problems with GRUB so +1 from me. The gener guideline is, however, to use the measures directly available to user, e.g. simple commands come before third party tools. / Adding links to GRUB customizer and Fedora Wiki on GRUB.

Bucic gravatar imageBucic ( 2013-05-28 12:51:52 -0600 )edit
0

answered 2013-05-27 10:58:37 -0600

Choose your desktop environment at the user login screen, not from grub. There's absolutely no reason to maintain different Fedora installations just to have XFCE instead of GNOME.

edit flag offensive delete link more

Comments

I assure you I have a reason to configure my system as such. If you'd like to read more about this, please refer to the following forum topic http://phoronix.com/forums/showthread.php?78813-Simple-graphics-switching-through-BIOS (hint: separate installs are for separate graphics driver and xorg configurations) but let's not go back to the subject here. Especially that my question here applies to many general use scenarios involving two linux installs.

Bucic gravatar imageBucic ( 2013-05-27 11:32:00 -0600 )edit

I've skimmed over your forum post, and it looks like an odd way to solve the problem... that said, /etc/grub.d/40_custom is for user defined boot configurations.

randomuser gravatar imagerandomuser ( 2013-05-27 16:10:35 -0600 )edit

Question Tools

Stats

Asked: 2013-05-26 08:13:49 -0600

Seen: 2,387 times

Last updated: May 28 '13