GRUB loader lost - how to reactivate it?

By VicRic · 4 replies
Sep 16, 2007
  1. Hi,

    I'm sure this question has been asked hundreds of times before but I couldn't quite find the answer I wanted while Searching; so here it goes again:

    I have a desktop machine with dual boot:
    1) Linux Fedora Core 6
    2) Windows

    Actually I had it working fine before; using the GRUB Linux loader it gave me the option to boot either Fedora or Windows. The Windows o.s. was then Windows 2000 Server installed on C drive.

    Then just today, loading first Windows 2000, I installed Windows Vista Home Premium onto E drive.

    Now the only loader available is the Windows one which gives me the option to load either Windows Vista or Windows 2000.

    I know the GRUB sector is still there waiting to be activated again but I forgot now how to do it.

    Here's a copy of my disk partition map:

    I'm quite sure the GRUB loader must be in the "102Mb sector" depicted on the previous image.

    What is the proper way to reactivate it?
    Should I use the Fedora Core 6 install DVD -which I do have- or should I do it from the Vista Disk Management?

  2. Mictlantecuhtli

    Mictlantecuhtli TS Evangelist Posts: 4,345   +11

    Boot with Fedora DVD, type linux rescue on the boot prompt.

    When you get to the command line in the rescue mode, type:


    Then in GRUB's command line:

    root (hd0,0) - this tells GRUB that the boot partition is the first one on the first disk

    setup (hd0) - this writes the boot sector on the first disk

    quit - guess what this does

    Then exit to reboot.
  3. VicRic

    VicRic TS Rookie Topic Starter Posts: 44

    Thanks Mictlantecuhtli,

    how about creating a LILO boot disk on another machine, could I use it on my problem machine?

    I have access to another machine that has Fedore Core 6 as well; would I find there any option to create a LILO boot disk? It would have to be a boot CD because my problem machine doesn't have a floppy drive.

    Is there such a thing as a GRUB boot disk (as in diskette or CD)?

  4. Oan

    Oan TS Rookie

    Hello I got almos the same problem, but i think i did not install grub correctly,

    I got a new dell inspiron 1501 delivered yesterday and saw that vista took 51% of the ram in standby and so on and was thinking about debian already when i order it. So yesterday I downloaded Debian 4.0 for amd64 and installed but there was some problems occured in the install becous I did not create a swap and I got to the grub installer found windows vista and continued, then it announced a error and skipped the step and I installed LILO and now I think my windows is lost, is thgere any way I could install grub correctly and find windows now? I tried
    apt-get install grub
    But it only gave me "0 new packages 0 updated 2 untuched.

    Anyone got any help for me how to get it properly, should I try to install debian from scratch again and make a swap partition from the partition its installed now?

    Only thing I done since I installed debian is
    apt-get install kde 
    apt-get install x-window-system
    apt-get install firefox
  5. Rick

    Rick TechSpot Staff Posts: 4,572   +65

    Assuming your issue is configuration:
    Assuming your grub is toast:
    Side note - if you aren't familiar with vi or vim, I'd recommend using pico or nano. They are pretty straight forward to use for basic text editing. Also, if you are editing your grub config in a graphical environment, gksudo gedit (for Gnome) or gksudo kate (for KDE) work well too. You may already know this, but if you don't, now you do! :)
Topic Status:
Not open for further replies.

Similar Topics

Add your comment to this article

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...