Author Topic: grub help.  (Read 555 times)

bayne

  • Newbie
  • *
  • Posts: 7
  • Kudos: 0
grub help.
« 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.

slave

  • Member
  • **
  • Posts: 1,136
  • Kudos: 0
    • http://www.fuckmicrosoft.com
grub help.
« Reply #1 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)

bayne

  • Newbie
  • *
  • Posts: 7
  • Kudos: 0
grub help.
« Reply #2 on: 11 November 2003, 08:12 »
he had a "not found error" and he tried all hda numbers.  (hdb1, hdb1, hdb01, etc)

slave

  • Member
  • **
  • Posts: 1,136
  • Kudos: 0
    • http://www.fuckmicrosoft.com
grub help.
« Reply #3 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.

bayne

  • Newbie
  • *
  • Posts: 7
  • Kudos: 0
grub help.
« Reply #4 on: 11 November 2003, 08:29 »
could you please tell how to do that.  the both of us are linux n00bs.  sorry.

bayne

  • Newbie
  • *
  • Posts: 7
  • Kudos: 0
grub help.
« Reply #5 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.

insomnia

  • Member
  • **
  • Posts: 587
  • Kudos: 0
grub help.
« Reply #6 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.
Those who can make you believe absurdities can make you commit atrocities.
    Voltaire

Injustice is happening now; suffering is happening now. We have choices to make now. To insist on absolute certainty before starting to apply ethics to life decisions is a way of choosing to be amoral.
R. Stallman

http://www.pvda.be/