problem installing GRUB

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

problem installing GRUB

Postby mohdali2 » Wed Dec 20, 2006 4:08 pm

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

Postby venky145 » Wed Dec 20, 2006 5:47 pm

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

Postby LinuxFreaK » Thu Dec 21, 2006 9:55 am

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

Postby mohdali2 » Sat Jan 06, 2007 10:49 pm

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

Postby mohdali2 » Sat Jan 06, 2007 10:56 pm

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


Return to “Installation”

Who is online

Users browsing this forum: No registered users and 1 guest