Stop Microsoft
		Operating Systems => Linux and UNIX => Topic started 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.
			
 
			
			- 
				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)
			 
			
			- 
				he had a "not found error" and he tried all hda numbers.  (hdb1, hdb1, hdb01, etc)
			
 
			
			- 
				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.
			 
			
			- 
				could you please tell how to do that.  the both of us are linux n00bs.  sorry.
			
 
			
			- 
				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.
			 
			
			- 
				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.