LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-10-2016, 05:22 AM   #1
rchinasky
LQ Newbie
 
Registered: Jan 2016
Posts: 5

Rep: Reputation: Disabled
Question grub.conf missing but server boots fine


Hello,

I have an old centos server 5.11 with cpanel, and last day after a server update I notice that the running version of kernel it is not the same as the one present in /boot:

root@sol00 [/boot]# uname -r
2.6.18-274.el5

root@sol00 [/boot]# ls
./ ../ config-2.6.18-407.el5 grub/ initrd-2.6.18-407.el5.img symvers-2.6.18-407.el5.gz System.map-2.6.18-407.el5 vmlinuz-2.6.18-407.el5 .vmlinuz-2.6.18-407.el5.hmac

root@sol00 [/boot]# ls grub
./ ../

Also as you can see the grub directory is empty and there is no grub.conf file



this is my fstab

root@sol00 [/boot]# cat /etc/fstab
LABEL=/ / ext3 defaults,noatime,usrquota,grpquota 1 1
tmpfs /dev/shm tmpfs defaults 0 0
/swapfile swap swap defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/usr/tmpDSK /tmp ext3 defaults,noauto 0 0
/dev/cciss/c0d1p1 /mnt/datos ext3 rw 0 0

where LABEL=/ is /dev/cciss/c0d0p1


I have verify that GRUB is the loader doing this:

root@sol00 [/boot]# dd if=/dev/cciss/c0d0 bs=512 count=1 2>/dev/null | strings | grep -Eoi 'grub|lilo|acronis|reboot'
GRUB



And those my installed kernel that as you can see differs from running one:

root@sol00 [/boot]# rpm -qa | grep kernel | sort
kernel-2.6.18-407.el5
kernel-headers-2.6.18-407.el5


So I do not understand why server is booting fine if there is no grub.conf and why running kernel version differs from the installed one.

I hope you can help me, it is weird.

Thanks for your time.
 
Old 01-10-2016, 10:53 PM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Then post:
1. /boot/*
2. /boot/grub(2)/grub.conf
 
Old 01-11-2016, 05:05 AM   #3
rchinasky
LQ Newbie
 
Registered: Jan 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
I do it again:

root@sol00 [/]# ls -alh /boot/
total 5,6M
drwxr-xr-x 3 root root 4,0K ene 8 16:45 ./
drwxr-xr-x 30 root root 4,0K ene 9 19:53 ../
-rw-r--r-- 1 root root 69K nov 11 14:40 config-2.6.18-407.el5
drwxr-xr-x 2 root root 4,0K ene 9 13:12 grub/
-rw------- 1 root root 2,6M ene 8 16:45 initrd-2.6.18-407.el5.img
-rw-r--r-- 1 root root 115K nov 11 14:40 symvers-2.6.18-407.el5.gz
-rw-r--r-- 1 root root 974K nov 11 14:40 System.map-2.6.18-407.el5
-rw-r--r-- 1 root root 1,9M nov 11 14:40 vmlinuz-2.6.18-407.el5
-rw-r--r-- 1 root root 158 nov 11 14:40 .vmlinuz-2.6.18-407.el5.hmac
root@sol00 [/]# ls -alh /boot/grub/
total 12K
drwxr-xr-x 2 root root 4,0K ene 9 13:12 ./
drwxr-xr-x 3 root root 4,0K ene 8 16:45 ../

There is no grub.conf ?
 
Old 01-11-2016, 06:56 AM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Is there a /boot/grub2?
 
Old 01-11-2016, 06:57 AM   #5
rchinasky
LQ Newbie
 
Registered: Jan 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
There is no. It is really strage! and if I reebot the server it boots normally ...
 
Old 01-11-2016, 09:12 AM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
what is the output of fdisk -l
 
Old 01-11-2016, 09:24 AM   #7
rchinasky
LQ Newbie
 
Registered: Jan 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
root@sol00 [/]# fdisk -l

Disco /dev/cciss/c0d0: 299.9 GB, 299966445568 bytes
255 heads, 63 sectors/track, 36468 cylinders
Unidades = cilindros de 16065 * 512 = 8225280 bytes

Disposit. Inicio Comienzo Fin Bloques Id Sistema
/dev/cciss/c0d0p1 * 1 13 104391 83 Linux
/dev/cciss/c0d0p2 14 36468 292824787+ 8e Linux LVM

Disco /dev/cciss/c0d1: 900.1 GB, 900151926784 bytes
255 heads, 32 sectors/track, 215454 cylinders
Unidades = cilindros de 8160 * 512 = 4177920 bytes

Disposit. Inicio Comienzo Fin Bloques Id Sistema
/dev/cciss/c0d1p1 1 215454 879052304 83 Linux



root@sol00 [/]# df -kh
S.ficheros Tamaņo Usado Disp Uso% Montado en
/dev/cciss/c0d0p1 263G 232G 19G 93% /
tmpfs 3,0G 0 3,0G 0% /dev/shm
/dev/cciss/c0d1p1 826G 594G 190G 76% /mnt/datos
/usr/tmpDSK 1012M 34M 927M 4% /tmp

Last edited by rchinasky; 01-11-2016 at 09:26 AM.
 
Old 01-12-2016, 05:15 AM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
at grub boot menu hit c for command line then
Code:
set
to see what the prefix for grub is. This should give you enough info to figure out where the grub.cfg is located that is being used

Last edited by colorpurple21859; 01-12-2016 at 05:16 AM.
 
Old 01-12-2016, 07:31 AM   #9
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
People, is called 'menu.lst', not grub.conf.

Try:

Quote:
cat /boot/grub/menu.lst
 
Old 01-12-2016, 07:52 AM   #10
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,537

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
CentOS uses grub.conf instead of menu.lst although if I remember correctly, it usually had both files in the grub directory. CentOS 5.11 used Grub Legacy by default so if Grub2 is installed, the OP would have installed it and that would be something I would expect he would remember. Interesting problem though. I guess the good thing is that it still boots.
 
Old 01-12-2016, 09:26 AM   #11
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
lol I was thinking the op was referring to grub.cfg with the grub.conf. Since the op has two drives grub boot may be on the other drive.
 
Old 01-12-2016, 01:17 PM   #12
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
Ahh, sorry about the menu.lst noise, the files are missing. The simplest way to fix this, is to re-install grub on that machine, it should re-add all the files and regenerate the config file too (at least I think so).
 
Old 01-15-2016, 05:35 AM   #13
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
what is the output of mount -l
 
Old 01-19-2016, 02:21 AM   #14
rchinasky
LQ Newbie
 
Registered: Jan 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
this is the output:

root@sol00 [~]# mount -l
/dev/cciss/c0d0p1 on / type ext3 (rw,noatime,usrquota,grpquota) [/]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/cciss/c0d1p1 on /mnt/datos type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/usr/tmpDSK on /tmp type ext3 (rw,noexec,nosuid,loop=/dev/loop0)
/tmp on /var/tmp type none (rw,noexec,nosuid,bind)
 
Old 01-19-2016, 05:25 AM   #15
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
This is strange mount -l shows /dev/cciss/c0d0p1 on /. Isn't this the boot partition shouldn't /dev/cciss/c0d0p2 be mounted on / as a mounted lvm?
 
  


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
Fedora 9 boots (long delay) as single core if I go to GRUB menu, otherwise boots fine saravkrish Fedora 1 05-27-2008 07:59 AM
Boots to grub; can't FIND grub.conf, start1 pushtostart Fedora 10 10-09-2006 05:01 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
RH 8 - boots fine from floppy, not from Grub equack Linux - Newbie 29 03-26-2003 10:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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