Professional Web Applications Themes

How to reinstall GRUB MBR after overwrite by W2K - Linux Setup, Configuration & Administration

On a SuSE 8.2 / W2K dual boot system, using Grub's boot menu, the MBR was overwritten after I had to re-install W2K because of a virus :-(( Bad windows manners again :-( Now, the linux system (on /dev/hda8) is not bootable anymore. I have tried to boot into my Linux installation using the SuSE 8.2 rescue system, but this didn't work. The rescue system starts and gives me a command prompt, but I don't know how to install grub from there so that it would then would boot linux from /dev/hda8. Thanks very much for your help. Pascal...

  1. #1

    Default How to reinstall GRUB MBR after overwrite by W2K

    On a SuSE 8.2 / W2K dual boot system, using Grub's boot menu, the MBR
    was overwritten after I had to re-install W2K because of a virus :-((
    Bad windows manners again :-(

    Now, the linux system (on /dev/hda8) is not bootable anymore. I have
    tried to boot into my Linux installation using the SuSE 8.2 rescue
    system, but this didn't work. The rescue system starts and gives me a
    command prompt, but I don't know how to install grub from there so
    that it would then would boot linux from /dev/hda8.

    Thanks very much for your help.

    Pascal
    Pascal Guest

  2. #2

    Default Re: How to reinstall GRUB MBR after overwrite by W2K

    Pascal wrote:
     
    That is normal. The Mandrake rescue disk takes you to a menu with a
    specific entry to reinstall lilo. If a SuSE user doesn't come up with
    something better, do this:

    At your command prompt, make sure that you are logged in as root. Type
    "lilo" or "sbin/lilo". You should see your original lilo config go back.
    If it already includes an entry for W2K, you are finished.

    HTH,

    Doug.
    --
    Nobody realizes that some people expend tremendous energy merely to be
    normal.
    - Albert Camus.

    Doug Guest

  3. #3

    Default Re: How to reinstall GRUB MBR after overwrite by W2K

    On 18 Jan 2004 01:04:28 -0800, ch (Pascal)
    wrote:
     

    A thread above you had approximately the same problem. Here was the
    solution which worked for him (on Red Hat):
    ================================================== =====
    Even simpler. Installing Windows probably only blew away your Master
    Boot Record (which now points only to Windows). Use the same CD or
    floppies you installed RedHat 9 with, and type "linux rescue" at the
    CD boot prompt. It will scan your disks for your Linux directories and
    try to automatically mount them at "/mnt/sysimage.
    Do a "chroot /mnt/sysimage". RedHat 9 normally uses grub, not LILO.
    Take a look at "/etc/grub.conf" and /etc/fstab and confirm that your
    partitions are where they should be: they should be unmoved if you
    installed Windows on the new drive by adding the new drive instead of
    replacing the old one.

    If nothing changed, run "grub-install /dev/hda" and a-w-a-y-y-y you
    go....
    ================================================== =======

    There might be some changes from the Red Hat way on your SUSE distro,
    but basically I would expect it to do the same (might mount the
    partition somewhere else like /mnt/windows or just /mnt or something).

    The main point is that you can reinstall GRUB in the MBR of the first
    disk with the command in the last line in the post above.

    If you didn't have GRUB working with Windows before, of course now
    your WIndows won't boot. But you can edit /etc/grub.conf to fix that.


    --
    Richard Steven Hack
    "Whatever does not kill me makes me stronger" -
    and YOU have not killed me!
    Richard Guest

Similar Threads

  1. How can I install grub on MBR so that it prompts grub for booting Windows 98
    By learner in forum Linux Setup, Configuration & Administration
    Replies: 2
    Last Post: December 3rd, 02:46 PM
  2. Overwrite the O/S ?
    By R. in forum AIX
    Replies: 3
    Last Post: November 1st, 03:20 AM
  3. ok to overwrite MBR?
    By Andre in forum Linux Setup, Configuration & Administration
    Replies: 10
    Last Post: October 28th, 04:50 AM
  4. Overwrite DLL?
    By Qwip in forum ASP
    Replies: 6
    Last Post: October 14th, 02:38 PM
  5. Overwrite
    By Mike Bynum in forum Windows XP/2000/ME
    Replies: 4
    Last Post: July 21st, 11:47 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139