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.
but it says file not found...
though partition is recognised correctly...
do i need to modify grub.conf ???
how to do that???
pl help!!
Are you sure your root partition is (hd0,5) which would be hda6 since grub counts partitions starting from zero.
You can either edit the grub entries right when it tries to boot or you can boot via a live-cd and then change the grub configuration file. The file is most likely located in /boot/grub. File name can be either menu.lst or grub.conf.
press "c" to get a Grub prompt if you have not already done it.
Ask Grub where is the partition that has grub.conf by
Code:
find /grub/grub.conf
or just
Code:
find grub.conf
You can ask Grub to display the grub.conf by "cat" command
My guess is you may have a problem with /etc/fstab. I don't like Fedora's way of addressing its root by a label in a hard disk and change it to the standard device name, as used in every other Linux, in all the Red Hat I have.
This is the way you can get Grub to display the way it boots every system so that you can manully boot each one yourself if you want to alter the paramters.
Also Grub obeys the "tab" key so if you type
Code:
kernel /boot/vmlinuz-
and then press the "tab" key Grub will find a match and comes back with a suggestion of
kernel wasn't found and this was the output of 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,7)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,7)/grub/splash.xpm.gz
#hiddenmenu
title Fedora Core 5 (2.6.15-1.2054_FC5smp)
root (hd0,7)
kernel boot/vmlinuz-2.6.15-1.2054_FC5smp ro root=LABEL=/1 rhgb quiet
initrd boot/initrd-2.6.15-1.2054_FC5smp.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1
Could you post the output of fdisk -l (run this as root)
Note that the root (hdX,Y) entry must point to the partition which contains the /boot directory. This might not be the same as where the kernel will try to mount the root (/) of the filesystem
I always install a Linux in a single partition and so my /boot is a subdirectory of / in every case. That is why my /boot/grub/grub is the same as another user's /grub/grub.conf stored in a dedicated /boot partition. Also I also edit menu.lst and disregard grub.conf.
In the above it would suggest whever we have /etc/grub.conf we should have /grub/conf as a symbolic link (and also menu.lst). I know Grub cannot read a LVM and that is why every Red Hat must have a separate /boot partition (unless you do not use LVM and use a single partition like me). The /boot partition is always non-LVM.
Therefore Grub cannot access the /etc/grub.conf, as it will be inside the LVM, and must boot according to the grub.conf stored in the /boot partition or directory.
-------------------------
kanishk,
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.