If this is your first visit, be sure to
check out the Forum Rules by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

GRUB Problems

MOD EDIT: Use the "Edit this post button" instead of making multiple consecutive posts.

Reinstalled Backtrack R1 just a few weeks ago and everything was going great until for seemingly no reason, I got an "Error 22" message from grub one day. I was unable to boot into either Backtrack, or Windows 7. I'm now at the point where I can boot into Backtrack from my hard disk, but not Windows 7 as it does not show up in the grub menu.

Could someone help me edit my menu.lst or whatever else needs to be done to get grub to contain the correct entry for Windows 7?

I am getting confused by the different naming conventions used by grub and fdisk. Why does grub have no entry labeled Partition 1 or 3? Why does fdisk -l have no entry as /dev/sda2 or /dev/sda4? I assume they are related, but assuming never goes will in Backtrack.

The only thing I know for sure is that /dev/sda3 is my Windows 7 partition and I'd like to be able to boot into it. Been working on this for a while now and am getting frusterated. Hopefully someone here will have more insight than I do or will be better at googling.

Just writing it all out helped me plenty. Just needed to add

Code:

title Windows
root (hd0,2)
chainloader +1

to my menu.lst. Now I get to resolve a new error. "BOOTMGR is missing".

Sorry to post this and answer my own question 30 seconds later.

SOLVED (mostly)

Backtrack and grub are completely lost for now, but those are easy enough to reinstall. Finally fixed my MBR and am able to boot into Windows 7.

If you are receiving the "BOOTMGR is missing" because you know you deleted it like me, you should try the following.

1. Use GParted from either a live CD/USB or Backtrack
2. Right click on Windows partition, click manage flags
3. Set boot flag
4. Download Windows repair iso (specific to your version of Windows) and create live CD/USB (USB needed NTFS formating for me) using UNetbootin (Used friends computer)
5. You should see your Windows partition in the operating systems table of Windows repair, else you probably skipped step 1/2
6. First try using the "Automatic Startup Repair"
7. If this does not work, enter command line and use bootrec.exe to try and solve the problem.

The biggest thing for me (and for all users in forum I read) was setting the partition flag to boot. Otherwise Windows Recovery was unable to do anything.

Hope this helps someone else who was dumb enough to delete their bootmgr.