Find the answer to your Linux question:
Results 1 to 6 of 6
i am using redhat linux 4.0 unfortunatly i am deleted grub.conf. so i am able to login linux box. explian me how to cure this problem...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2006
    Posts
    33

    Smile how to install grub redhat


    i am using redhat linux 4.0 unfortunatly i am deleted grub.conf. so i am able to login linux box. explian me how to cure this problem

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    boot up from RH installation CD/DVD and execute this code at boot: prompt
    Code:
    linux rescue
    chroot /mnt/sysimage
    grub-install /dev/sda
    press Ctrl+D two times. Machine will reboot and GRUB will be back in bussiness...




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Dec 2006
    Posts
    33

    Smile Grub>

    i done all above steps but--


    linux rescue
    chroot /mnt/sysimage
    grub-install /dev/hda

    after rebooting it will show only grub prompt
    GRUB>
    i able to go to any run levels

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    okkk ! i assume that you have only one HardDisk

    Code:
    linux rescue
    chroot /mnt/sysimage
    grub
    prompt will change to 'grub>'

    Code:
    grub> find /boot/grub/stage1
    grub><type output of find command>
    grub>setup(hd0)
    quit
    exit
    exit




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Jun 2005
    Posts
    3

    root was on /dev/hda8 and after installing windows xp its changed to /dev/hda9

    I was having windows 2000 prof and Redhat Linux 7.2, I formated the c: drive with fat32 and installed windows xp prof. After which my Redhat Linux 7.2 stopped working. When I tried Linux Rescue, it didn't find any linux partition to mount it to /sys/image. When I am typing fdisk -l on the shell, it shows me the linux partition but perviously root was on /dev/hda8 and after installing windows xp its changed to /dev/hda9 and similarily boot also from /dev/hda5 to /dev/hda7.
    Pls. anybody there to help me out to start my linux?

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Quote Originally Posted by alam
    I was having windows 2000 prof and Redhat Linux 7.2, I formated the c: drive with fat32 and installed windows xp prof. After which my Redhat Linux 7.2 stopped working. When I tried Linux Rescue, it didn't find any linux partition to mount it to /sys/image. When I am typing fdisk -l on the shell, it shows me the linux partition but perviously root was on /dev/hda8 and after installing windows xp its changed to /dev/hda9 and similarily boot also from /dev/hda5 to /dev/hda7.
    Pls. anybody there to help me out to start my linux?
    Hi alam !

    Welcome to the LinuxForums !
    start a New Thread and post the output of fdisk -l command in that.





    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •