If you do try to fix your grub2 boot please let me know if this solved it.
]]>So after I ruined everything tring to fix the windows boot loader, this is what I did, and I'm not proud of it..
ok so when I installed win7 I did it on its own HDD while the linux hdd was unplugged.. I needed windoze... emergency.... So Now that I plugged in my linux hdd windows obvously got pissed it wasnt first to boot..... which is why grub couldnt boot it- the windows didnt even know where it was... SOOO I changed the order, put the windows drive first, fixxed the MBR in windows.. Booted into windows, used a program that adds linux to the windows bootloader and bam... now I can boot into both... yes its hacked... no Im not proud of this....... ugghh
thanks though. mark as solved.. I dont know how.. lol
]]>linux /<tab><tab>
It works here.
Sorry
Edit: btw, do you remember how you tried to reinstall grub?
grub-install /dev/sdx
should have worked regardless of the state of the partitions themselves because it writes to the MBR, not to a boot sector of a partition, so I'm curious why it didn't work for you.
]]>This is not a definite answer, just some things I would have tried if I were you.
First, I always use "chainloader +1" without any (hdx,x). I don't think it matters but that's how it works here.
Secondly, a few times I was surprised by the number grub gave to a physical HD. I would try making sure what (hd1,0) contains. You can check by going to grub console (press "c" at the menu), writeset root=(hd1,0)
and then write
linux /<tab>
grub's autocompletion would show you the files and folders the partition contains. This way, when you are sure you are on the right partition by seeing windows files there, you can write
chainloader +1 boot
to boot Windows. If it works, change grub.cfg.
Something to note: As you said, Windows 7 needs a primary partition to put its boot information in. Maybe you installed something after Windows which overwritten the boot information for windows 7. To fix that you will have to fix the boot of Windows from its installation cd, and then boot Arch from a live media with grub and run grub-install again. I had to do it once.
I think you may be right about that partition being over written.... With the given info above, you can see fdisk shows that partition as boot.... Not being able to install grub and fix my system after a window install is what led me to reinstalling arch in the first place.... It was running strong since 2010......
Any way, I tried the tab trick and it didn't auto complete anything.. Though I don't know how it would.. I do know that /dev/sda2 is my windows partition.
thanks
]]>ezik
]]>set root=(hd1,0)
and then write
linux /<tab>
grub's autocompletion would show you the files and folders the partition contains. This way, when you are sure you are on the right partition by seeing windows files there, you can write
chainloader +1
boot
to boot Windows. If it works, change grub.cfg.
Something to note: As you said, Windows 7 needs a primary partition to put its boot information in. Maybe you installed something after Windows which overwritten the boot information for windows 7. To fix that you will have to fix the boot of Windows from its installation cd, and then boot Arch from a live media with grub and run grub-install again. I had to do it once.
]]>.... You really think I didn't go straight to the wiki?? Please don't assume that I haven't searched my self, I've been on every damn page about grub 2 and windows.... I need help. Direction.... Not a damn link I've seen a million times.
Anyone with actual insite to how I can fix this please post... I should have posted the necessary info to someone who knows grub 2 and multi HDDs
]]>Notice it doesn't show /dev/sda2 ......
thanks.
]]>So Windows is on /dev/sda (a 250GB hdd with a "Stuff" partition as well)
/dev/sda1 boot* I think this is also the "win7 100MB system partition"
/dev/sda2 Where Windows 7 is*
/dev/sda3 extended*
/dev/sda5 Stuff*
Arch is on a separate 40GB hdd = /dev/sdb
/dev/sdb1 boot*
/dev/sdb2 swap*
Here's the kicker The 40GB drive aka /dev/sdb is first to boot according to my bios, so I boot Arch no problem with grub2, now for the life of me I cant get windows 7 to boot.
I put
# (2) Windows 7
menuentry "Windows 7" {
set root=(hd0,0) also tried hd0,1 through 3
chainloader (hd0,0)+1
}
in /etc/grub.d/40_custom and ran grub-mkconfig -o /boot/grub/grub.cfg
Any help please. I need to get into windoze...
Thanks
P.S. This is a FRESH install of Arch.
]]>