Linux - NewbieThis 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.
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.
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
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
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
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
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
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.
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 ?
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.