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

Re: grub configuration question



On Tue, 6 May 2003 16:16:30 +0200
Qian Gong <q.gong@tue.nl> wrote:

> It sounds should be like below if your debian /boot is within the first
> primary partition on your second hard drive.
> 
>  	title debian 2.4.18-686
>  	root (hd1,0)
>  	kernel /boot/vmlinuz-2.4.18-686 root=/dev/sdb1
>  	initrd /boot/initrd.img-2.4.18-686
> 
> You can simply verify the existence of related files.

This would work if grub were installed on the second hard drive, and he
wanted to use those grub files to boot. In this case he wants to use the
copy of grub that's already on his RedHat partition.

The "root (hdx,y)" parameter tells the first stage of grub where to find
other grub files, so in the original poster's case it should be (hd0,0) (as
long as grub is on the first partition).

Specifying "kernel /boot/...." as you suggest won't work for him because
that would tell grub to look for the kernel on the same partition as the
grub files. His kernel is on a completely different hard drive, and his
syntax "kernel (hd1,0)/boot/vmlinuz..." is correct for that situation.

I didn't notice before, but his syntax for initrd isn't correct. He should
have specified "initrd (hd1,0)/boot/initrd..." just as he did for the
kernel.

Kevin



Reply to: