Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Where do you specify the location of grub.conf for grub to look up during the boot up??
I am getting GRUB printed on the top left corner of the blank screen and the boot-up halts...It looks like grub is not able to detect my grub.conf file in the /boot/grub directory.
Where do you specify the location of grub.conf for grub to look up during the boot up??
I am getting GRUB printed on the top left corner of the blank screen and the boot-up halts...It looks like grub is not able to detect my grub.conf file in the /boot/grub directory.
even if grub cant find its conf file it loads upto a prompt, if all it does is say GRUB that means it cant find its second stage loader, i suggest you reinstall it in the mbr, the command in the grub console is either setup or install, i forget
# Duron 950 Red Hat 7.3 /boot/grub/grub.conf file
default=0
timeout=10
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
title Red Hat Linux 7.3
root (hd0,2)
kernel /vmlinuz-2.4.20-18.7 ro root=/dev/hda7 hdd=ide-scsi mem=nopentium
initrd /initrd-2.4.20-18.7.img
title Mandrake 9.0 Linux
kernel (hd0,7)/boot/vmlinuz root=/dev/hda8 quiet devfs=mount hdd=ide-scsi vga=788 mem=nopentium
initrd (hd0,7)/boot/initrd.img
title Gentoo Linux
root (hd0,2)
kernel (hd0,2)/boot/bzImage root=/dev/hda6 hdd=ide-scsi mem=nopentium
title Windows
rootnoverify (hd0,0)
chainloader +1
/dev/hda1 is mounted on boot, /dev/hda2 is mounted on / and /dev/hda3 is swap partition
grub.conf
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=Label=/
initrd /initrd-2.4.20-8.img
ok, when i run grub command, it gives me some binary data instead of a grub prompt..
also, grub-install '(hd0)' says that there is no Bios associated with /dev/hda1
thanks for your response. when i type in /sbin/grub on the prompt that i have got using the rescue disk, i get some binary characters. How do i get the grub console? It straight brings me to a blank screen when it boots that has GRUB on the top left corner...nothing else. i would really appreciate your help here
I would suggest this possibility. Grub wants to know where the rest of the boot/grub files are located. They are located relative to the root partation (in your schema that's /dev/hda2). Your grub.conf says it's at (hd0,0) which is incorrect; that's the /boot directory. So, try changing (hd0,0) to (hd0,1) to tell grub where the root partition is (/dev/hda2). Grub should then be able to find /boot/grub relative to the root partition.
by cmandan when i type in /sbin/grub on the prompt that i have got using the rescue disk, i get some binary characters.
umm, i dont know, ive never got that before. are you using redhat? because i remember using it a while ago and its grub was a bit dodgy on my hardware so i compiled my own. all i can think of is for you to download the latest grub stable, and compile it yourself.
i get the same binary characters with every option of grub-install mentioned above...with --recheck it gives me /dev/hda does not have coreesponding boot drive
i also tried hda1, hda2, (hd0,0), (hd0), (hd0,2) and some other options but with the same result...
can you boot into linux with your rescue disks? if you can run the "grub-install /dev/hda" command from a shell terminal.
this should work, as i had my dad run this command from his terminal when grub didn't work right and he had to use a boot disk to get into linux.
also a question pertaining to this subject... is the reason why cmanadan is getting wierd characters because of trying to install from the boot/grub prompt? i mean at that stage is /dev/hda even mounted?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.