Sponsored Content
Top Forums UNIX for Dummies Questions & Answers "/boot/grub/grub.conf" VS "/etc/grub.conf" Post 302723487 by stunn3r on Tuesday 30th of October 2012 08:59:50 AM
Old 10-30-2012
Quote:
Originally Posted by Neo
Please post the contents of both files and we can easily tell you the difference Smilie
understanding Parameters is not a problem, I would never had bothered any of you for a question whose answer I could get by a single google search.

I just want to know why we need two grub.conf ? are they linked in any way ? What is the difference in there functionality.

just to end your curiosity Smilie :

.boot/grub/grub.conf
HTML Code:
# 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/vg00/root
#          initrd /initrd-version.img
#boot=/dev/sda
# default=0 # commented out by Proliant HBA install script
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-274.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-274.el5 ro root=/dev/vg00/root rhgb quiet crashkernel=128M@16M elevator=noop
        initrd /initrd-2.6.18-274.el5.img
/etc/grub.conf:
HTML Code:
# 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/vg00/root
#          initrd /initrd-version.img
#boot=/dev/sda
# default=0 # commented out by Proliant HBA install script
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-194.8.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-194.8.1.el5 ro root=/dev/vg00/root rhgb quiet crashkernel=128M@16M clock=pmtmr divider=10 iommu=soft elevator=noop
        initrd /initrd-2.6.18-194.8.1.el5.img

title Red Hat Enterprise Linux Server (2.6.18-194.3.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-194.3.1.el5 ro root=/dev/vg00/root rhgb quiet crashkernel=128M@16M clock=pmtmr divider=10 iommu=soft elevator=noop
        initrd /initrd-2.6.18-194.3.1.el5.img

title Red Hat Enterprise Linux Server (2.6.18-194.11.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-194.11.1.el5 ro root=/dev/vg00/root rhgb quiet crashkernel=128M@16M clock=pmtmr divider=10 iommu=soft elevator=noop
        initrd /initrd-2.6.18-194.11.1.el5.img
---------- Post updated at 06:29 PM ---------- Previous update was at 06:28 PM ----------

Quote:
Originally Posted by Scrutinizer
What does
Code:
ls -l /boot/grub/grub.conf /etc/grub.conf

give?
Quote:
Originally Posted by fpmurphy
Sounds like you are on Red Hat or a downstream distribution which uses Legacy GRUB. In this case the real configuration file is menu.lst. Both of the files you mention should simply be links to /boot/grub/menu.lst.
Code:
[wadhwaso@nxetlr22 ~]$ ll !$
ll /boot/grub/grub.conf
-rw------- 1 root root 705 Oct 26 15:02 /boot/grub/grub.conf
[wadhwaso@nxetlr22 ~]$ ll /etc/grub.conf
-rw------- 1 root root 1258 Jan 17  2012 /etc/grub.conf


Not links

Last edited by Scrutinizer; 10-30-2012 at 10:02 AM.. Reason: code tags
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

better information source than "man rc.conf"?

i find the man page really cryptic. does anyone else have a source that explains how to use this file better? (1 Reply)
Discussion started by: xyyz
1 Replies

2. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

3. Shell Programming and Scripting

Parse "masters" ip from named.conf

Hi there, Im' trying to make a script to parse the BIND configuration file from my slave DNS server and obtain a certain parameter. The named.conf file has this format: zone "0.170.20.10.in-addr.arpa" { type slave; file "0/./db.0.170.20.10.in-addr.arpa.bak"; allow-notify {... (2 Replies)
Discussion started by: Citricut
2 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. Red Hat

Can we specify which grub.conf to use in grub-install.

Hi, Can we specify which grub.conf to use while installing grub on RHEL. We are working on application which requires different grub configurations needed, depending on certain criteria we need to update grub with correct grub.conf. Can we use grub-install for this purpose? (4 Replies)
Discussion started by: successlin
4 Replies

6. Red Hat

Grub.conf kernel field boot messages verbosity configuration

I am trying to understand what are the differences of boot messages verbosity levels for the kernel field in grub.conf From my research, there appear to be three levels: quiet verbose debug I have also found documents that specify removing quiet from the kernel field. If this is done, is... (1 Reply)
Discussion started by: thaebich
1 Replies

7. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

8. Solaris

Changing "rx_queue_number" in "ixgbe.conf". Reboot or Network Restart?

Hi all, First post here. Working on Solaris 10, on a Sun t4-4, need to change RX queue depth(ethernet, not HBA) and was wondering if i could get by with just restarting the network or if i should just bounce the whole shebang. Apologies if i missed a similar thread. if there is one, please... (2 Replies)
Discussion started by: caspnx
2 Replies

9. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
All times are GMT -4. The time now is 11:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy