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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-31-2010, 05:50 AM
|
#1
|
Member
Registered: Aug 2009
Posts: 228
Rep:
|
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
|
|
|
01-31-2010, 08:44 AM
|
#2
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
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.
|
|
|
01-31-2010, 09:04 AM
|
#3
|
Member
Registered: Sep 2009
Location: Sparta
Posts: 237
Rep:
|
No idea how things are set up on RH 7.2, what does this say:
|
|
|
01-31-2010, 09:40 AM
|
#4
|
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:
|
In you're grub.conf is there not a line like hidden menu or somethink like that ?
If so make it a remark.
|
|
|
01-31-2010, 11:33 AM
|
#5
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153
|
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.
|
|
|
02-01-2010, 12:47 AM
|
#6
|
Member
Registered: Aug 2009
Posts: 228
Original Poster
Rep:
|
Quote:
Originally Posted by bigrigdriver
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
|
|
|
02-01-2010, 12:54 AM
|
#7
|
Member
Registered: Aug 2009
Posts: 228
Original Poster
Rep:
|
Quote:
Originally Posted by carbonfiber
No idea how things are set up on RH 7.2, what does this say:
|
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
|
|
|
02-01-2010, 12:58 AM
|
#8
|
Member
Registered: Aug 2009
Posts: 228
Original Poster
Rep:
|
Quote:
Originally Posted by ronlau9
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
|
|
|
02-01-2010, 01:03 AM
|
#9
|
Member
Registered: Aug 2009
Posts: 228
Original Poster
Rep:
|
Quote:
Originally Posted by tredegar
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
|
|
|
02-01-2010, 02:53 AM
|
#10
|
Member
Registered: Aug 2009
Posts: 228
Original Poster
Rep:
|
Quote:
Originally Posted by tredegar
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
|
|
|
02-01-2010, 03:13 AM
|
#11
|
Member
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707
Rep:
|
Quote:
Originally Posted by hadimotamedi
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..
|
|
|
02-01-2010, 03:39 AM
|
#12
|
Member
Registered: Aug 2009
Posts: 228
Original Poster
Rep:
|
Quote:
Originally Posted by vinaytp
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 ?
|
|
|
02-01-2010, 04:27 AM
|
#13
|
Member
Registered: Aug 2009
Posts: 228
Original Poster
Rep:
|
Quote:
Originally Posted by vinaytp
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
|
|
|
02-01-2010, 08:10 AM
|
#14
|
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:
|
Quote:
Originally Posted by hadimotamedi
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.
|
|
|
All times are GMT -5. The time now is 10:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|