LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-14-2010, 09:08 PM   #1
pgb205
Member
 
Registered: Nov 2007
Posts: 129

Rep: Reputation: 15
System Boots From grub.conf in unknown location


I've upgraded my centos box to a new kernel and when looking at
/etc/boot/grub/grub.conf I do see old and new kernel lines.
When rebooting however the old kernel is still the only option.
I've searched entire drive for any other grub.conf files but found nothing. I've even tried rename the new vmlinuz file to have the same filename as the old one so that maybe then that mysterious grub.conf would pick up the new kernel but no luck--the old kernel is still being booted up. There are two hard drives in the box and they are raid1 mirrored.
 
Old 02-14-2010, 10:58 PM   #2
LazerPhreak
Member
 
Registered: Dec 2009
Location: USA
Distribution: Ubuntu Server / Desktop / UNR
Posts: 117

Rep: Reputation: 17
Hello there!

Please open a terminal and type
Code:
sudo update-grub
and restart. If that does not work, please post any errors.
 
Old 02-18-2010, 05:15 PM   #3
pgb205
Member
 
Registered: Nov 2007
Posts: 129

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by LazerPhreak View Post
Hello there!

Please open a terminal and type
Code:
sudo update-grub
and restart. If that does not work, please post any errors.
I don't believe centos has this script, unlike ubuntu
 
Old 02-19-2010, 09:03 AM   #4
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware-15.0; -current
Posts: 245

Rep: Reputation: 60
Look for /boot/grub/menu.lst (**N.B. the extension is "lowercase-L s t" not "one s t".**)

If you don't find anything in /boot/ look at /etc/fstab and see if /boot is listed as a mount point. If it shows up in /etc/fstab but not when you run 'df', then try 'sudo mount /boot.' Then look again for /boot/grub/menu.lst .
 
Old 02-19-2010, 01:54 PM   #5
pgb205
Member
 
Registered: Nov 2007
Posts: 129

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by JimBrewster View Post
Look for /boot/grub/menu.lst (**N.B. the extension is "lowercase-L s t" not "one s t".**)

If you don't find anything in /boot/ look at /etc/fstab and see if /boot is listed as a mount point. If it shows up in /etc/fstab but not when you run 'df', then try 'sudo mount /boot.' Then look again for /boot/grub/menu.lst .
menu.lst on centos is just a link to /boot/grub/grub.conf

I see entries for both old and new kernel. But upon reboot as stated previously only old kernel is seen.
 
Old 02-19-2010, 02:07 PM   #6
LazerPhreak
Member
 
Registered: Dec 2009
Location: USA
Distribution: Ubuntu Server / Desktop / UNR
Posts: 117

Rep: Reputation: 17
http://www.beginlinux.com/server_tra...v_admin_m/grub

Try following this tutorial, see if that helps at all.
 
Old 02-19-2010, 03:10 PM   #7
pgb205
Member
 
Registered: Nov 2007
Posts: 129

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by LazerPhreak View Post
http://www.beginlinux.com/server_tra...v_admin_m/grub

Try following this tutorial, see if that helps at all.
Now I get this (as root)

grub-install hd0
/dev/sda1 does not have any corresponding BIOS drive.


even though 'mount' shows

/dev/sda1 mounted on /
/dev/sda3 mounted on /home

after trying grub-install --recheck /dev/sda I get
grub-install does not support reporbing of device.map when
using a device-mapper based boot device.

does this mean i have either soft or hard raid running and if so
what other options to I have to fix this issue.

ls /dev/mapper <ENTER>
control

and nothing else

Last edited by pgb205; 02-19-2010 at 03:21 PM.
 
  


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
Boots to grub; can't FIND grub.conf, start1 pushtostart Fedora 10 10-09-2006 05:01 PM
grub boots system recovery ololad8 Linux - Newbie 2 07-08-2006 11:32 AM
location of grub.conf zchoyt Linux - Software 1 08-10-2005 10:26 PM
How do I select which kernel the server boots with? grub.conf? abefroman SUSE / openSUSE 3 06-20-2005 02:56 PM
Is there a way to change which kernel/os boots without modifying grub.conf? niverson Linux - Software 2 01-05-2005 04:14 PM

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

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