-
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?
Output from fdisk -l:
Code:
root@bt:~# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x19286b25
Device Boot Start End Blocks Id System
/dev/sda1 * 55703 60801 40957717+ 5 Extended
/dev/sda3 1120 55702 438435864 7 HPFS/NTFS
/dev/sda5 55703 60586 39230698+ 83 Linux
/dev/sda6 60587 60801 1726956 82 Linux swap / Solaris
Partition table entries are not in disk order
Here is the output from the grub command "geometry (hd0)"
Code:
grub> geometry (hd0)
drive 0x80: C/H/S = 60801/255/63, The number of sectors = 976773168, /dev/sda
Partition num: 2, Filesystem type unknown, partition type 0x7
Partition num: 4, Filesystem type is ext2fs, partition type 0x83
Partition num: 5, Filesystem type unknown, partition type 0x82
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.
-
Re: GRUB Problems
hi there... you should first try to boot on recovery mode..there you will find some commands that could help u..
sorry about this reply...