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.
Snake do you have one hard drive or two hard drives...If you have one hard drive (which i think is the case) then your hard drive can not be hdb, it should be hda. This also seems to be the case if you see what LDZ420 pointed out.
All your kernel images point to hd0 which is the first hard drive (hda)...if they were hd1 then it would be hdb1.
Quote:
title Centos
root (hd0,7)
kernel /vmlinuz-2-6-9-5.0.3 ro root=/dev/hdb8
I think you are just missing the exact location of the kernel image. I believe it is wouldn't be in the root partition but in the /boot directory...
try this,
kernel /boot/vmlinuz-2-6-9-5.0.3 ro root/dev/hdb8
Edit: my apologies if i've given you wrong directions...
hey tux, thanks for your help. just to clear things up, i only have one drive. i have no idea why is hdb and not hda. come to think about it, its kinda of weird.
let me try your suggestion see if i get somewhere. hate to keep bothering you, but can you explain the paramaters needed in grub so that i can have a better understanding of what im doing.
below is my partition table, maybe this can help clear things a bit more. a brief summary of what i did, created a /boot partition for centos but did not install grub during installation. created a /root partition for centos. im sharing the /swap and /home so i did not created them during installation. by the way , i tried your last suggestion and im getting " file not found" .
e]# /sbin/fdisk -l
Disk /dev/hdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 12473 100189341 7 HPFS/NTFS
/dev/hdb2 12474 12505 257040 83 Linux
/dev/hdb3 12506 14417 15358140 83 Linux
/dev/hdb4 14418 24321 79553880 5 Extended
/dev/hdb5 14418 15437 8193118+ 83 Linux
/dev/hdb6 15438 15533 771088+ 82 Linux swap
/dev/hdb7 15534 15552 152586 83 Linux
/dev/hdb8 15553 16572 8193118+ 83 Linux
I think your problem is locating the kernel image...I suggest you look for it thoroughly...your grub is giving error "file not found" because you are pointing it to a place where there is no kernel image.
And another question: Are you sure that the installation didn't create a seperate /boot partition? Have you run "fdisk -l" in FC3 to list your drives and partitions? ("fdisk" need to be run as root.)
Ok as you remember I am a rookie so I'm not sure if im on to something. But I looked at your previous post and something stuck out.
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,1)
# kernel /vmlinuz-version ro root=/dev/hdb5
# initrd /initrd-version.img #boot=/dev/hdb /*drive that grub looks for kernel*/
/boot for fedora (hdb2)
/home hdb3
hdb4 extended partition approx 78gb
/root for fedora 8gb hdb5
swap hdb6 hdb7 /boot for centos
hdb8 /root for centos
Now I am not sure, so someone correct me if I am wrong. But maybe grub looks for boot partition finds /boot for fedora (hdb2) and then it says I can’t find that Centos kernel.
Forget this. I’m out. And then gives you the "file not found"?
I’m not sure like I said I’m just a rookie. But maybe you should just have one boot partition and just have your kernel reside in there [/boot for fedora (hdb2)]?
// Side note
Another thing that came to mind is that you may have one hard drive but it is connected to the 2nd set of connectors. ( IDE cables have 2 connectors) this could be how you have one hard drive but Linux says that it is hdb and not had. Not sure but possible
thanks for the help, but i think i'll re-install centos again and allow grub to install this time around. i'll copy my current grub.conf file from fedora so i can add that info after i install centos again. hopefully this will work. i'll keep reading about grub though
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.