Stop Microsoft

Operating Systems => Linux and UNIX => Topic started by: bayne on 11 November 2003, 07:03

Title: grub help.
Post by: bayne on 11 November 2003, 07:03
my friend is having problems.  grub messed up and he wants to know if there is a way he can reinstall it with out having to reinstall red hat.  i'd be grateful for any help.
Title: grub help.
Post by: slave on 11 November 2003, 07:14
Boot using your Red Hat installation cd/rescue disk
at the prompt type "linux rescue"

when you get a command line type:

/sbin/grub-install /dev/hda (or whatever hard disk contains your master boot record)
Title: grub help.
Post by: bayne on 11 November 2003, 08:12
he had a "not found error" and he tried all hda numbers.  (hdb1, hdb1, hdb01, etc)
Title: grub help.
Post by: slave on 11 November 2003, 08:19
Oh sorry, you may need to chmod to your installation directory and mount your /boot partition too (it says this somewhere when you do a rescue)

Sorry if I mislead you.
Title: grub help.
Post by: bayne on 11 November 2003, 08:29
could you please tell how to do that.  the both of us are linux n00bs.  sorry.
Title: grub help.
Post by: bayne on 11 November 2003, 08:34
he doesn't know how to use chmod.  when he tries to mount/dev/hdcfix (which is the partition with red hat on it)  it says cannot read /etc/stab it says no such file or directory.  he also tried to mouth / boot, which did not work.

sorry if we're confusing the hades out of you.  he tells me the terms over the phone and i can't always hear exaclty what he's saying.
Title: grub help.
Post by: insomnia on 11 November 2003, 17:39
If you start from a shell, you first have to chroot.

#chroot /mnt/sysimage

than type:

#grub-install /dev/hda (to install GRUB in the MBR)
 
exit.