LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 02-01-2013, 09:38 AM   #1
codraziel
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Rep: Reputation: Disabled
changing grub configuration on centos 6 is not actually doing anything


Hi all ,I have a centos 6.3(final) dedicated server running at the moment which was just reinstalled.

When trying to install openvz I got the following message during the yum installation:

grubby fatal error: unable to find a suitable template

I then decided to manually edit the grub.conf and menu.lst files(which werent linked for some reason)
after adding the necessary entries into those files I rebooted, for some reason it still ran the default kernel.

then out of interest I tried changing the menu timeout, and to my surprise not even that worked.
Anybody know why none of my changes to grubs configuration are taking?

I would like to avoid reinstalling since its kind of pricey
 
Old 02-01-2013, 09:03 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 12,807

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
I then decided to manually edit the grub.conf and menu.lst files(which werent linked for some reason)
they are supposed to be linked

if you edit one you automatically edit the other

so only edit one of them

i normally just edit grub.conf

it is my understanding that "openvz" replaces the default kernel with a different one

did you rebuild the boot image using "dracut" ?
for example something like this
Code:
su -

mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-Original.img

dracut /boot/initramfs-$(uname -r).img $(uname -r)
 
Old 02-01-2013, 09:16 PM   #3
codraziel
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Yea, it loads a different kernel, which is usually easily configured in the grub.conf/menu.lst.

I have never even heard of dracut let alone used it :/ what is its function?
 
Old 02-02-2013, 08:57 PM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 12,807

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
see the manual page
Code:
man dracut
-----------
dracut --help
or
https://dracut.wiki.kernel.org/index.php/Main_Page

it is in /sbin
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Dual Boot Slackware with CentOS using CentOS GRUB frankbell Slackware 9 10-26-2011 11:04 AM
LXer: PV-Grub on CentOS 5.2 PV DomU at Xen 3.3 CentOS 5.2 Dom0 (all 64-bit) LXer Syndicated Linux News 0 10-05-2008 10:12 PM
Grub keeps changing my boot configuration. Cyberman Linux - Software 8 09-25-2008 12:05 PM
Changing GRUB-GRUB, GRUB-LILO and vice versa andreas_skw Linux - Newbie 1 06-05-2008 06:40 AM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 08:01 PM


All times are GMT -5. The time now is 08:12 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration