The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    where does GRUB reside?

    Discussion in 'Linux Compatibility and Software' started by Wayne99, May 4, 2011.

  1. Wayne99

    Wayne99 Notebook Consultant

    Reputations:
    0
    Messages:
    164
    Likes Received:
    10
    Trophy Points:
    31
  2. Volker

    Volker Notebook Consultant

    Reputations:
    49
    Messages:
    232
    Likes Received:
    2
    Trophy Points:
    30
    Grub loads in two stages. The first stage is usually in the MBR (an area of the disk that is not part of one of the partitions) and contains only the absolute minimum to load and run the second stage. The second stage is typically in the /boot Linux partition which also holds the Linux kernel.
     
  3. Wayne99

    Wayne99 Notebook Consultant

    Reputations:
    0
    Messages:
    164
    Likes Received:
    10
    Trophy Points:
    31
    Ok, so do I need to worry about that second stage if i delete my Linux partition? if it gets deleted will my computer still boot normally?
     
  4. Volker

    Volker Notebook Consultant

    Reputations:
    49
    Messages:
    232
    Likes Received:
    2
    Trophy Points:
    30
    No if you delete stage2 then your computer will not boot.

    I'd suggest you print out your /etc/grub.conf and have some install media handy. In the worst case you then boot your install media to the grub menu. From there you can manually boot anything thats on the hdd by typing in the respective grub commands.
     
  5. Wayne99

    Wayne99 Notebook Consultant

    Reputations:
    0
    Messages:
    164
    Likes Received:
    10
    Trophy Points:
    31
    I looked in Linux etc and found a grub.d folder with only one readable file in it. I think it was menu.lst

    is that what you are referring to?
     
  6. Wayne99

    Wayne99 Notebook Consultant

    Reputations:
    0
    Messages:
    164
    Likes Received:
    10
    Trophy Points:
    31
    Correction-menu.lst is in boot/grub/menu.lst

    the only file in etc/grub.d was called memtest. Same for Ubuntu and Mint
     
  7. timberwolf

    timberwolf Notebook Consultant

    Reputations:
    131
    Messages:
    288
    Likes Received:
    0
    Trophy Points:
    30
    Erm, of the two linux distros that you've got installed, can you tell us which of the two stage 2 is being used?

    If you did a default install of each linux distro, it may be the last distro that you installed, but any subsequent software updates of packages that were performed might for the relevant packages (e.g. possibly kernel or driver related packages?, rebuilds of the initramfs?) may have re-run the grub update from that distro and possibly switching where GRUB looks for stage 2.

    If I was doing this, I'd find out how to fix the MBR by installing Microsoft's boot code e.g. recovery mode and fixmbr. Then you can use a live linux CD to delete the linux partitions and afterwards you would still be able to boot Windows. I'm assuming Windows is important to the OP?
     
  8. Wayne99

    Wayne99 Notebook Consultant

    Reputations:
    0
    Messages:
    164
    Likes Received:
    10
    Trophy Points:
    31
  9. timberwolf

    timberwolf Notebook Consultant

    Reputations:
    131
    Messages:
    288
    Likes Received:
    0
    Trophy Points:
    30
    I didn't know the windows tool would be willing to delete the linux partitions that makes it easier. I think your research has been the right way to go about it.
     
  10. Wayne99

    Wayne99 Notebook Consultant

    Reputations:
    0
    Messages:
    164
    Likes Received:
    10
    Trophy Points:
    31
    I don't like nasty surprises. :)