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
problem installing GRUB
grub
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
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
-
- Site Admin
- Posts: 5132
- Joined: Fri May 02, 2003 10:24 am
- Location: Karachi
- Contact:
Re: problem installing GRUB
Dear mohdali2,
Salam,
# fdisk -l
# /sbin/grub-install /dev/hd?
# exit
#exit
Best Regards.
Salam,
# chroot /mnt/sysimagemohdali2 wrote:#chroot /mnt/sysimage
#/sbin/grub-install /dev/hda
not a valid device or block
# fdisk -l
# /sbin/grub-install /dev/hd?
# exit
#exit
Best Regards.
Farrukh Ahmed
Re: grub
I still not understand why u write root(hd0) my root is hd0,1venky145 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
because linux is intalled on 2nd partition of hda and I would
like to installed GRUB in MBR of hda.
Regards
Muhammad ALi