LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 09-26-2003, 05:57 PM   #1
cmandan
LQ Newbie
 
Registered: Sep 2003
Location: california
Posts: 25

Rep: Reputation: 15
grub.conf


hi all:

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.

Thanks,
Chirag
 
Old 09-26-2003, 05:58 PM   #2
cmandan
LQ Newbie
 
Registered: Sep 2003
Location: california
Posts: 25

Original Poster
Rep: Reputation: 15
grub.conf

hi all:

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.

Thanks,
Chirag
 
Old 09-26-2003, 06:35 PM   #3
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
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

this aint got much to do with networking
 
Old 09-26-2003, 06:46 PM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
What is your partitioning scheme and configs for /etc/fstab and /boot/grub/grub.conf?

Installing a bootloader
Multiboot with GRUB Mini-HOWTO
Linux+Win9x+Grub HOWTO
Code:
 root@uilleann # fdisk -l

Disk /dev/hdc: 255 heads, 63 sectors, 4867 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdc1   *         1      4867  39094146   83  Linux

Disk /dev/hda: 255 heads, 63 sectors, 4865 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1      1215   9755991    c  Win95 FAT32 (LBA)
/dev/hda2          1215      2429   9751455    7  HPFS/NTFS
/dev/hda3          2429      2441     99855   83  Linux
/dev/hda4          2442      4865  19470780    5  Extended
/dev/hda5          2442      2504    506016   82  Linux swap
/dev/hda6          2505      2931   3429846   83  Linux
/dev/hda7          2932      3358   3429846   83  Linux
/dev/hda8          3359      3785   3429846   83  Linux
/dev/hda9          3786      4212   3429846   83  Linux
/dev/hda10         4213      4865   5245191   83  Linux

Disk /dev/hdb: 255 heads, 63 sectors, 9729 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdb1   *         1      1244   9986917+  83  Linux
/dev/hdb2          1244      2518  10238886   83  Linux
/dev/hdb3          2519      3793  10241437+  83  Linux
/dev/hdb4          3794      9729  47680920   83  Linux
Code:
# Duron 950 Red Hat 7.3 /etc/fstab file
/dev/hda7	/               reiserfs	defaults	1 1
/dev/hda3	/boot           ext3		defaults	1 2
none            /dev/pts        devpts		gid=5,mode=620  0 0
/dev/hda9	/home           reiserfs	defaults	1 2
/dev/hdc1	/mnt/storage    vfat		defaults	0 0
#/dev/hdc1	/mnt/storage    ext3		defaults	0 0
/dev/hda1	/mnt/win98	vfat		defaults	0 0
/dev/hda2	/mnt/win2k	ntfs		defaults	0 0
none            /proc           proc		defaults	0 0
none            /dev/shm        tmpfs		defaults	0 0
#/dev/hdb1	/pub            ext3		defaults	1 2
/dev/hdb4	/pub            ext3		defaults	1 2
/dev/hda10	/snd            reiserfs	defaults	1 2
#/dev/hda6	/mnt/gentoo     reiserfs	defaults	1 2
#/dev/hda8	/mnt/mandrake   ext3		defaults	1 2
/dev/hda5	swap            swap		defaults	0 0
/dev/cdrom	/mnt/cdrom	iso9660		noauto,owner,ro 0 0
/dev/fd0        /mnt/floppy     auto		noauto,owner    0 0
Code:
# 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
 
Old 09-26-2003, 07:44 PM   #5
cmandan
LQ Newbie
 
Registered: Sep 2003
Location: california
Posts: 25

Original Poster
Rep: Reputation: 15
ok..my partitions are as follows...

/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

Pls help,
thanks,
chris
 
Old 09-26-2003, 07:48 PM   #6
cmandan
LQ Newbie
 
Registered: Sep 2003
Location: california
Posts: 25

Original Poster
Rep: Reputation: 15
hi kev,

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

thanks,
C
 
Old 09-26-2003, 07:49 PM   #7
cmandan
LQ Newbie
 
Registered: Sep 2003
Location: california
Posts: 25

Original Poster
Rep: Reputation: 15
also,

grub-install '(hd0)' gives me
/dev/hda1 does not have any corresponding bios drive
 
Old 09-26-2003, 09:58 PM   #8
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.
 
Old 09-27-2003, 03:13 AM   #9
Backslash
LQ Newbie
 
Registered: Apr 2003
Location: Belgium
Distribution: Red Hat 9.0 (Shrike)
Posts: 23

Rep: Reputation: 15
Hi,

Did you try something like # grub --install-partition=/dev/hda1 ?

Hope this helps

--Backslash
 
Old 09-27-2003, 07:24 AM   #10
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
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.
 
Old 09-27-2003, 07:32 AM   #11
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
This isn't a networking question so it is being moved to Linux->General
 
Old 09-27-2003, 07:35 AM   #12
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Rep: Reputation: 30
Quote:
Originally posted by cmandan
also,

grub-install '(hd0)' gives me
/dev/hda1 does not have any corresponding bios drive
try 'grub-install /dev/hda --recheck'
 
Old 09-27-2003, 11:51 PM   #13
cmandan
LQ Newbie
 
Registered: Sep 2003
Location: california
Posts: 25

Original Poster
Rep: Reputation: 15
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...

pls help
 
Old 09-28-2003, 03:34 AM   #14
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
all i can suggest is what ive already said http://www.linuxquestions.org/questi...399#post503399
 
Old 09-28-2003, 04:34 AM   #15
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
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?

Last edited by megaspaz; 09-28-2003 at 04:41 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nano -w /boot/grub/grub.conf Tbagz Linux - Newbie 2 10-31-2005 06:42 PM
grub refuses to read grub.conf 0pal_t0ad Linux - Newbie 2 03-27-2005 04:40 AM
create lilo.conf or grub.conf through commands newpenguin Linux - Software 1 11-28-2003 08:22 PM
commands work with interactive grub, but not in grub.conf richardg Linux - Newbie 2 11-23-2003 04:36 AM
lilo.conf and grub.conf no read access shanenin Linux - Software 1 10-02-2003 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration