grub.lst, .conf locations
Would someone please tell me where these files are typically located? I did a search of my system, but came up blank:
grub.lst grub.conf Thanks in advance |
grub.conf can be found in
/boot/grub look in /etc/fstab where to mount it |
have u installed grub package
and if u have done so then u should in the above location regards gaurav |
changing grub
There is a grub.conf and menu.lst file in the /boot/grub folder. OK, now that I've located them, I want to change these files so that I only see a choice for DOS and my latest kernel at the boot screen menu. Right now I see a choice for 3 different kernels. Do I need to change both of these? I think it requires commenting out the lines with of the older kernel listings.
thanks |
You only have to modify the grub.conf, menu.lst is a symbolic link to grub.conf.
By comment the rest out you are always able to restore them. But have a look at default=x The default could point to the wrong selection |
thanks...what does that line default=x do?
|
What I mean is, I dont wnat to screw up this file, so that I cannot choose the desired OS. I need to know if default=x points to any particular choice, and what the consequences are of not geeting this configured correctly...
My grub.conf file is as follows: # 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 (hd1,0) # kernel /vmlinuz-version ro root=/dev/hdb2 # initrd /initrd-version.img #boot=/dev/hda default=3 timeout=10 splashimage=(hd1,0)/grub/splash.xpm.gz title Red Hat Enterprise Linux WS (2.4.21-15.0.4.EL) root (hd1,0) kernel /vmlinuz-2.4.21-15.0.4.EL ro root=LABEL=/ hdd=ide-scsi initrd /initrd-2.4.21-15.0.4.EL.img title Red Hat Enterprise Linux WS (2.4.21-15.0.3.EL) root (hd1,0) kernel /vmlinuz-2.4.21-15.0.3.EL ro root=LABEL=/ hdd=ide-scsi initrd /initrd-2.4.21-15.0.3.EL.img title Red Hat Enterprise Linux WS (2.4.21-4.EL) root (hd1,0) kernel /vmlinuz-2.4.21-4.EL ro root=LABEL=/ hdd=ide-scsi initrd /initrd-2.4.21-4.EL.img title DOS rootnoverify (hd0,0) chainloader +1 thanks |
Every line with the entry title is boot environment.
and the line default=3 makes title Red Hat Enterprise Linux WS (2.4.21-4.EL) the environment it will boot if you make no choice Now if you "remove" boot environment 1 and 2 and don't change default=3 into default=1 you could have a problem |
thanks, Win XP is the default, but should I assume the default entry applies to the Linux only?
|
I manged to change this file with no problems. The entries are numbered 0-x from the top down. therefore, default=1 is now my Windows OS.
thanks again |
Grub.lst not found
In my ubuntu Maverick meerkut, neither grub.lst nor menu.lst are found in the /boot/grub/ folder. I just see a grub.conf file.
|
Quote:
|
All times are GMT -5. The time now is 08:59 PM. |