Restoring lilo after reinstallation of windows

Ask a Question related to Linux Setup, Configuration & Administration, Design and Development.

  1. #1

    Default Restoring lilo after reinstallation of windows

    Hi guys,

    Hope some of you gurus can help me out. After reinstalling my evil
    windoz, it has overwritten the previous mbr that has lilo installed.
    Is there anyway i can recover it or is there any software i can
    download that lets me have the option of loading into my linux OS
    again? The obvious option is of course to reinstall my linux again but
    i got some important files in my linux partition... Any help would be
    appreciated.

    Also, if the only solution is to reinstall linux, is there anything i
    can do to prevent this from ever happening again? Like is there a way
    i can back up my MBR before i had done the Windows installation?
    Thanks guys.

    Best Regards,
    Khai
    GamerKhai Guest

  2. Similar Questions and Discussions

    1. Reinstallation problem
      Could someone help me please? iMac, OS X. Inadvertently I interrupted a OS X software update and had to reinstall the operating system which I did...
    2. Contribute 3 reinstallation
      I purchased contribute 3 and installed it in my old powerbook. I recently got a new computer (and no longer have the old computer) and now have...
    3. reinstallation problems
      i'm reinstalling coldfusion, after having removed it for various reasons, and am having trouble getting to the administrator. trying to get to it...
    4. Veritas reinstallation failing
      I am trying to install Veritas Backup Exec 9.1 for Win Servers, on a Domain Controller/ Terminal Services Server, but it errors out. It was...
    5. Elements 2.0 reinstallation problem
      Ooops. Have you tried calling Adobe Customer Support? (Assuming you had it registered.) I've had this error come up during a reinstallation, too, but...
  3. #2

    Default Re: Restoring lilo after reinstallation of windows

    GamerKhai wrote:
    > Hope some of you gurus can h
    .... do NOT multi-post ... you have answers in another group.
    ..
    --
    /// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
    \\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
    \\\ [url]http://pages.sbcglobal.net/mtobler/mjt_linux_page.html[/url] ///
    Magnocartic, adj.: Any automobile that, when left unattended,
    attracts shopping carts. - Sniglets, "Rich Hall & Friends"

    mjt Guest

  4. #3

    Default Re: Restoring lilo after reinstallation of windows

    [email]gamerkhai@yahoo.com[/email] (GamerKhai) writes:

    ]Hi guys,

    ]Hope some of you gurus can help me out. After reinstalling my evil
    ]windoz, it has overwritten the previous mbr that has lilo installed.
    ]Is there anyway i can recover it or is there any software i can
    ]download that lets me have the option of loading into my linux OS
    ]again? The obvious option is of course to reinstall my linux again but
    ]i got some important files in my linux partition... Any help would be
    ]appreciated.

    ]Also, if the only solution is to reinstall linux, is there anything i
    ]can do to prevent this from ever happening again? Like is there a way
    ]i can back up my MBR before i had done the Windows installation?
    ]Thanks guys.

    Sure. Easy.
    Take your first installation CD and put it into the drive. Just after the spash screen it asks
    if you want to upgrade /install-- press enter or other, press F1. Press F1 and then type
    rescue
    Then do mkdir /linux
    mount /dev/hda1 /linux
    (assuming your Mandrake boot partition was on /dev/hda1)
    Check to make sure (ie see if the file /linux/etc/lilo.conf exists and has in it
    what you want)
    Then do
    lilo -r /linux
    and it should be reinstalled.
    remove the cdrom, reboot and away you go.


    Bill Unruh Guest

  5. #4

    Default Re: Restoring lilo after reinstallation of windows

    GamerKhai wrote:
    > Hi guys,
    >
    > Hope some of you gurus can help me out. After reinstalling my evil
    > windoz, it has overwritten the previous mbr that has lilo installed.
    > Is there anyway i can recover it or is there any software i can
    > download that lets me have the option of loading into my linux OS
    > again? The obvious option is of course to reinstall my linux again but
    > i got some important files in my linux partition... Any help would be
    > appreciated.
    >
    > Also, if the only solution is to reinstall linux, is there anything i
    > can do to prevent this from ever happening again? Like is there a way
    > i can back up my MBR before i had done the Windows installation?
    > Thanks guys.
    Most modern Linux installation CD's can be used to boot into a "rescue"
    mode, which mounts the Linux directories and allows you to "chroot" to
    the mount point and re-run lilo or grub-install to replace your MBR.

    Next time, make a Linux boot floppy *right* before re-installing
    Windows. It'll be faster.

    Nico Kadel-Garcia Guest

  6. #5

    Default Re: Restoring lilo after reinstallation of windows

    Nico Kadel-Garcia <nkadel@verizon.net> wrote in message news:<Vfrab.12593$hl4.1389@nwrdny01.gnilink.net>.. .
    > GamerKhai wrote:
    >
    > > Hi guys,
    > >
    > > Hope some of you gurus can help me out. After reinstalling my evil
    > > windoz, it has overwritten the previous mbr that has lilo installed.
    > > Is there anyway i can recover it or is there any software i can
    > > download that lets me have the option of loading into my linux OS
    > > again? The obvious option is of course to reinstall my linux again but
    > > i got some important files in my linux partition... Any help would be
    > > appreciated.
    > >
    > > Also, if the only solution is to reinstall linux, is there anything i
    > > can do to prevent this from ever happening again? Like is there a way
    > > i can back up my MBR before i had done the Windows installation?
    > > Thanks guys.
    >
    > Most modern Linux installation CD's can be used to boot into a "rescue"
    > mode, which mounts the Linux directories and allows you to "chroot" to
    > the mount point and re-run lilo or grub-install to replace your MBR.
    >
    > Next time, make a Linux boot floppy *right* before re-installing
    > Windows. It'll be faster.
    ---------------------------------------------------

    What if after using the rescue mode in the installation disk, after
    running /sbin/lilo it says it can't find the lilo.conf file? Does that
    mean I am not running lilo but grub? How do u reinstall grub?

    And this might be an easy question to some people, but how do u make a
    linux boot floppy? Is there a command?
    GamerKhai Guest

  7. #6

    Default Re: Restoring lilo after reinstallation of windows

    [email]gamerkhai@yahoo.com[/email] (GamerKhai) writes:

    ]Nico Kadel-Garcia <nkadel@verizon.net> wrote in message news:<Vfrab.12593$hl4.1389@nwrdny01.gnilink.net>.. .
    ]> GamerKhai wrote:
    ]>
    ]> > Hi guys,
    ]> >
    ]> > Hope some of you gurus can help me out. After reinstalling my evil
    ]> > windoz, it has overwritten the previous mbr that has lilo installed.
    ]> > Is there anyway i can recover it or is there any software i can
    ]> > download that lets me have the option of loading into my linux OS
    ]> > again? The obvious option is of course to reinstall my linux again but
    ]> > i got some important files in my linux partition... Any help would be
    ]> > appreciated.
    ]> >
    ]> > Also, if the only solution is to reinstall linux, is there anything i
    ]> > can do to prevent this from ever happening again? Like is there a way
    ]> > i can back up my MBR before i had done the Windows installation?
    ]> > Thanks guys.
    ]>
    ]> Most modern Linux installation CD's can be used to boot into a "rescue"
    ]> mode, which mounts the Linux directories and allows you to "chroot" to
    ]> the mount point and re-run lilo or grub-install to replace your MBR.
    ]>
    ]> Next time, make a Linux boot floppy *right* before re-installing
    ]> Windows. It'll be faster.

    ]---------------------------------------------------

    ]What if after using the rescue mode in the installation disk, after
    ]running /sbin/lilo it says it can't find the lilo.conf file? Does that
    ]mean I am not running lilo but grub? How do u reinstall grub?

    Uh, I gave detailed instructions on what you had to do. Apparently you
    did not follow them. You do NOT run lilo after typing recue mode.
    You MUST first mount the drive on which your / partition sits and you
    MUST run lilo in chroot mode.

    You may of course be running grub but (while you have never told us
    which distro you use) I suspect it is lilo.



    ]And this might be an easy question to some people, but how do u make a
    ]linux boot floppy? Is there a command?

    In which distro?

    Bill Unruh Guest

  8. #7

    Default Re: Restoring lilo after reinstallation of windows

    GamerKhai wrote:
    > Nico Kadel-Garcia <nkadel@verizon.net> wrote in message news:<Vfrab.12593$hl4.1389@nwrdny01.gnilink.net>.. .
    >
    >>GamerKhai wrote:
    >>
    >>
    >>>Hi guys,
    >>>
    >>>Hope some of you gurus can help me out. After reinstalling my evil
    >>>windoz, it has overwritten the previous mbr that has lilo installed.
    >>>Is there anyway i can recover it or is there any software i can
    >>>download that lets me have the option of loading into my linux OS
    >>>again? The obvious option is of course to reinstall my linux again but
    >>>i got some important files in my linux partition... Any help would be
    >>>appreciated.
    >>>
    >>>Also, if the only solution is to reinstall linux, is there anything i
    >>>can do to prevent this from ever happening again? Like is there a way
    >>>i can back up my MBR before i had done the Windows installation?
    >>>Thanks guys.
    >>
    >>Most modern Linux installation CD's can be used to boot into a "rescue"
    >>mode, which mounts the Linux directories and allows you to "chroot" to
    >>the mount point and re-run lilo or grub-install to replace your MBR.
    >>
    >>Next time, make a Linux boot floppy *right* before re-installing
    >>Windows. It'll be faster.
    >
    >
    > ---------------------------------------------------
    >
    > What if after using the rescue mode in the installation disk, after
    > running /sbin/lilo it says it can't find the lilo.conf file? Does that
    > mean I am not running lilo but grub? How do u reinstall grub?
    Did you "chroot" to the newly mounted root file system? This is "chroot
    /mnt/sysimage" with a RedHat system. With grub, first your read the
    manual pages, then you read the grub.conf file (in /etc/grub.conf or
    /boot/grub/grub.conf where the other one is symbolically linked to), and
    see where it says "I put the MBR here". Then you run "grub-install",
    typically although not always with "grub-install /dev/hda".
    > And this might be an easy question to some people, but how do u make a
    > linux boot floppy? Is there a command?
    Yup. You look it up on Google, or type "man -k boot", and for RedHat
    with the software installed it's "mkbootdisk".

    Nico Kadel-Garcia Guest

Posting Permissions

  • You may not post new threads
  • You may 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