bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: still no luck with grub


From: Daniel Senderowicz
Subject: Re: still no luck with grub
Date: Sat, 31 Jan 2004 11:36:56 -0800 (PST)

Things are getting worse out here. Before I was getting the
"grub>" prompt. But after I did the "setup" I only get a string
"GRUB" and hangs. Furthermore, on the setup that anaconda did
automatically during the RH installation, the HD was (hd0), but
after doing the "setup" it changed to (hd1). Here is the
transaction:

grub> root (hd1,0)
 Filesystem type is ext2fs, partition type 0x83

grub> setup (hd1)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... yes
 Checking if "/grub/stage2" exists... yes
 Checking if "/grub/e2fs_stage1_5" exists... yes
 Running "embed /grub/e2fs_stage1_5 (hd1)"...  16 sectors are embedded.
succeeded
 Running "install /grub/stage1 (hd1) (hd1)1+16 p (hd1,0)/grub/stage2 
/grub/grub.conf"... succeeded
Done.
                                                                                
grub>

I also did the same but with:

grub> root (hd1,0)/boot

but the end result is the same. Please HHHHHHEEEEEELLLLLLLPPPPPPPP!

Thanks.

Dan


>Daniel Senderowicz wrote:
>> OK, I did a bit of progress here. I manage to boot the system
>> with the kernel of the hard disk by simply typing the same
>> commands written in the "grub.conf" file, that is:
>> 
>> grub> root (hd0,0)
>> grub> kernel /vmlinuz-2.4.20-28.9smp ro root=LABEL=/
>> grub> initrd /initrd-2.4.20-28.9smp.img
>> 
>> But my question still remains: why doesn't it do it
>> automatically?
>> 
>> Dan
>> 
>> 
>It is not working because you are using the syntax wrongs.
>
>root (hd0,0)   <- This is telling grub the device and partition that the 
>vmlinuz is stored on. This is "NOT your linux root partition". It 
>depends which partition the /boot directory is stored. vmlinuz should 
>really be in the /boot directory.
>grub then finds the grub config by looking in (hd0,0)/grub.
>So, if you don't have a root partition, and the /boot directory is on 
>the root partition, the grub root command should be: -
>root (hd0,0)/boot
>
>kernel (hd0,0)/vmlinuz root=/dev/hdc6
>^....(1).............^ ^.....(2)....^
>
>1) This is telling grub where to find vmlinuz
>2) Are linux kernel parameters, and are not used by grub at all.
>
>Cheers
>James




reply via email to

[Prev in Thread] Current Thread [Next in Thread]