LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-31-2010, 04:50 AM   #1
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Rep: Reputation: 30
Grub boot loader?


Dear All
In my Red Hat 7.2 , the /boot/grub/grub.conf has the following data :
"default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.7-10)
root (hd0,0)
kernel /vmlinuz-2.4.7-10 ro root=/dev/hda5
initrd /initrd-2.4.7-10.img"
But when I reboot my Red Hat server , I don't see the Grub menu to say edit the boot kernel . Can you please let me know how can I activate it?
Thank you
 
Old 01-31-2010, 07:44 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
The grub menu should be displayed on reboot. Since it isn't displayed, I suspect something in the reboot procedure is by-passing grub.

Please give details of the reboot procedure you use.
 
Old 01-31-2010, 08:04 AM   #3
carbonfiber
Member
 
Registered: Sep 2009
Location: Sparta
Posts: 237

Rep: Reputation: 46
No idea how things are set up on RH 7.2, what does this say:

Code:
ls -al /boot/grub
 
Old 01-31-2010, 08:40 AM   #4
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
In you're grub.conf is there not a line like hidden menu or somethink like that ?
If so make it a remark.
 
Old 01-31-2010, 10:33 AM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
In my Red Hat 7.2 , the /boot/grub/grub.conf has the following data :
grub.conf Are you sure ?

My (legacy) grub uses the file /boot/grub/menu.lst for describing the menu and boot options.
 
Old 01-31-2010, 11:47 PM   #6
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by bigrigdriver View Post
The grub menu should be displayed on reboot. Since it isn't displayed, I suspect something in the reboot procedure is by-passing grub.

Please give details of the reboot procedure you use.

Thank you for your reply . To reboot my server , I issue 'init 6' and then I see the Red Hat icon appearing with a timer but when I press the 'e' key to edit the boot kernel it does not enter to the Grub edit menu and the timer will expire and the boot process will begin without letting me to edit the boot kernel . Please let me know what is wrong in my case that does not permit me to enter the Grub edit.
Thank you
 
Old 01-31-2010, 11:54 PM   #7
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by carbonfiber View Post
No idea how things are set up on RH 7.2, what does this say:

Code:
ls -al /boot/grub

Please find below my '/boot/grub' :
[root@mc-0 root]# ls -la /boot/grub
total 241
drwxr-xr-x 2 root root 1024 Sep 13 13:00 .
drwxr-xr-x 4 root root 1024 Sep 13 12:53 ..
-rw-r--r-- 1 root root 82 Sep 13 13:00 device.map
-rw-r--r-- 1 root root 10848 Sep 13 13:00 e2fs_stage1_5
-rw-r--r-- 1 root root 9744 Sep 13 13:00 fat_stage1_5
-rw-r--r-- 1 root root 8864 Sep 13 13:00 ffs_stage1_5
-rw------- 1 root root 543 Sep 13 13:00 grub.conf
lrwxrwxrwx 1 root root 11 Sep 13 13:00 menu.lst -> ./grub.conf
-rw-r--r-- 1 root root 9248 Sep 13 13:00 minix_stage1_5
-rw-r--r-- 1 root root 12512 Sep 13 13:00 reiserfs_stage1_5
-rw-r--r-- 1 root root 54044 Sep 5 2001 splash.xpm.gz
-rw-r--r-- 1 root root 512 Sep 13 13:00 stage1
-rw-r--r-- 1 root root 120000 Sep 13 13:00 stage2
-rw-r--r-- 1 root root 8512 Sep 13 13:00 vstafs_stage1_5
Thank you
 
Old 01-31-2010, 11:58 PM   #8
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by ronlau9 View Post
In you're grub.conf is there not a line like hidden menu or somethink like that ?
If so make it a remark.

Please find below my 'grub.conf' :
[root@mc-0 root]# more /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda5
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.7-10)
root (hd0,0)
kernel /vmlinuz-2.4.7-10 ro root=/dev/hda5
initrd /initrd-2.4.7-10.img
Thank you
 
Old 02-01-2010, 12:03 AM   #9
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by tredegar View Post
grub.conf Are you sure ?

My (legacy) grub uses the file /boot/grub/menu.lst for describing the menu and boot options.

Please find below my '/boot/grub/menu.lst' :
[root@mc-0 root]# more /boot/grub/menu.lst
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda5
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.7-10)
root (hd0,0)
kernel /vmlinuz-2.4.7-10 ro root=/dev/hda5
initrd /initrd-2.4.7-10.img
Thank you
 
Old 02-01-2010, 01:53 AM   #10
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by tredegar View Post
grub.conf Are you sure ?

My (legacy) grub uses the file /boot/grub/menu.lst for describing the menu and boot options.

Thanks for your reply . Can you please confirm if the following can be used to activate the grub menu on my server ?
#grub-install /dev/hdax
Is it a safe procedure to try with ? Please confirm.
Thank you
 
Old 02-01-2010, 02:13 AM   #11
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

Rep: Reputation: 55
Quote:
Originally Posted by hadimotamedi View Post
Thanks for your reply . Can you please confirm if the following can be used to activate the grub menu on my server ?
#grub-install /dev/hdax
Is it a safe procedure to try with ? Please confirm.
Thank you
grub-install /dev/hdax will install grub on hdax. This will over write your existing partition tables.

I hope your issue is not related with this, If you are able to boot into your OS and all partitions are getting mounted properly, then I hope there is no point in overwriting your MBR using grub-install or setup.

Please wait, some one may get back to you..
 
Old 02-01-2010, 02:39 AM   #12
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by vinaytp View Post
grub-install /dev/hdax will install grub on hdax. This will over write your existing partition tables.

I hope your issue is not related with this, If you are able to boot into your OS and all partitions are getting mounted properly, then I hope there is no point in overwriting your MBR using grub-install or setup.

Please wait, some one may get back to you..
Thanks for your message . So you mean it can harm my server ?
 
Old 02-01-2010, 03:27 AM   #13
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by vinaytp View Post
grub-install /dev/hdax will install grub on hdax. This will over write your existing partition tables.

I hope your issue is not related with this, If you are able to boot into your OS and all partitions are getting mounted properly, then I hope there is no point in overwriting your MBR using grub-install or setup.

Please wait, some one may get back to you..

It seems that we can try for directly editting the '/boot/grub/menu.lst' w/o any harm to the server . Am I right ?
Thank you
 
Old 02-01-2010, 07:10 AM   #14
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by hadimotamedi View Post
It seems that we can try for directly editting the '/boot/grub/menu.lst' w/o any harm to the server . Am I right ?
Thank you
Yes you can edit the menu.lst .
Use a real linux text editor like nano or pico or kwrite
No need to say that you have to do it as root or sudo or su.
But also learn the syntax or ask if what you like to add or create is correct.
 
  


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
wireless Keyboard not working to select boot options (Grub boot loader) psrini_vasan Fedora 7 12-16-2009 05:45 PM
Unable to boot into GRUB loader: GRUB command shell boots up: urgent issue wombat53 Linux - Software 9 09-04-2009 06:20 AM
How to change from grub boot loader to lilo boot loader linuxjamil Linux - Software 1 05-27-2008 01:47 PM
Two hard disks - dual boot ( XP - Linux ) using microsoft boot loader, not grub cristy88 Linux - General 2 12-17-2007 06:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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