problem installing GRUB

Discussion regarding the installation and configuration of Linux distributions.
Post Reply
mohdali2
Havaldaar
Posts: 125
Joined: Sun Jan 26, 2003 4:54 pm

problem installing GRUB

Post by mohdali2 »

I am facing problem installing grub on my harddisk.

i have two harddisk i.e. hda , hdc linux Fedora Core 4 is installed on second partiition of hda but when i install windowsxp on third partiition of hda it remove the grub, now when i tried to install GRUB after booting the PC from linux rescue mode with the following command i received error.


#chroot /mnt/sysimage
#/sbin/grub-install /dev/hda
not a valid device or block

If anyone knows please help.

Regards
Muhammad Ali
venky145
Havaldaar
Posts: 118
Joined: Thu Jan 13, 2005 2:35 pm
Location: qatar
Contact:

grub

Post by venky145 »

hai


write manually grub.conf file in /etc/grub.conf

default=0
title=REDHAT
timeout=3

root(hd0)
kernel /vmlinuz-(version number ) ro root=/dev/hda1w or hd2 or what else
initrd /initrd-(version number)




happy :)
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re: problem installing GRUB

Post by LinuxFreaK »

Dear mohdali2,
Salam,
mohdali2 wrote:#chroot /mnt/sysimage
#/sbin/grub-install /dev/hda
not a valid device or block
# chroot /mnt/sysimage
# fdisk -l
# /sbin/grub-install /dev/hd?
# exit
#exit


Best Regards.
Farrukh Ahmed
mohdali2
Havaldaar
Posts: 125
Joined: Sun Jan 26, 2003 4:54 pm

Post by mohdali2 »

Thanks for your reply and Sorry for delay after doing the
following step:

# chroot /mnt/sysimage

When I see the /dev directory it does not contains any file.

Regards
Muhammad Ali
mohdali2
Havaldaar
Posts: 125
Joined: Sun Jan 26, 2003 4:54 pm

Re: grub

Post by mohdali2 »

venky145 wrote:hai


write manually grub.conf file in /etc/grub.conf

default=0
title=REDHAT
timeout=3

root(hd0)
kernel /vmlinuz-(version number ) ro root=/dev/hda1w or hd2 or what else
initrd /initrd-(version number)




happy :)
I still not understand why u write root(hd0) my root is hd0,1
because linux is intalled on 2nd partition of hda and I would
like to installed GRUB in MBR of hda.

Regards
Muhammad ALi
Post Reply