LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 05-30-2010, 08:31 PM   #1
Caram
LQ Newbie
 
Registered: May 2010
Distribution: Arch, Debian, Fedora
Posts: 7

Rep: Reputation: 0
Grub and Windows 7


Hello. I accidentally removed the Windows 7 Bootloader when I installed Archlinux. My setup is:
/dev/sda This had the Bootloader. Now has Grub and Archlinux
/dev/sdb This has my Windows 7 installation.

Now, I'm wondering what options I need to add to menu.lst to be able to boot my Windows 7 install.

Thanks!

(Sorry if Windows related questions aren't allowed here. Just lemme know.)

I should probably add some additional information. Right now my Windows option in Grub looks like:

title Windows
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1

Selecting this gives me BOOTMGR is missing.

Last edited by Caram; 05-30-2010 at 10:00 PM. Reason: Additional information.
 
Old 05-30-2010, 08:50 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,491

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Probably the wrong partition - recovery/vendor maybe. Let's see this from a root terminal "fdisk -l".
Win7 chainloads fine from grub - I lost hibernation (for Win7) though.
 
Old 05-30-2010, 09:04 PM   #3
Caram
LQ Newbie
 
Registered: May 2010
Distribution: Arch, Debian, Fedora
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
Probably the wrong partition - recovery/vendor maybe. Let's see this from a root terminal "fdisk -l".
Win7 chainloads fine from grub - I lost hibernation (for Win7) though.
Here you go.
 
Old 05-30-2010, 09:29 PM   #4
brucehinrichs
Member
 
Registered: Mar 2008
Location: US
Distribution: Debian Sid; Sabayon, UbuntuStudio, Slackware-multilib 13.1, Peppermint Ice, CentOS
Posts: 575

Rep: Reputation: 67
Quote:
/dev/sda This had the Bootloader. Now has Grub and Archlinux
By "Bootloader" do you mean the windows bootloader? If so, I would disable /dev/sda (either in the BIOS or by physically detaching the cable) and use your windows install disk to reinstall the (windows) bootloader to /dev/sdb. Powerdown, re-enable /dev/sda and your grub chainloader entry (as it is now) should allow you to boot into windows again.

Last edited by brucehinrichs; 05-30-2010 at 09:31 PM.
 
1 members found this post helpful.
Old 05-30-2010, 09:35 PM   #5
Caram
LQ Newbie
 
Registered: May 2010
Distribution: Arch, Debian, Fedora
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by brucehinrichs View Post
By "Bootloader" do you mean the windows bootloader? If so, I would disable /dev/sda (either in the BIOS or by physically detaching the cable) and use your windows install disk to reinstall the (windows) bootloader to /dev/sdb. Powerdown, re-enable /dev/sda and your grub chainloader entry (as it is now) should allow you to boot into windows again.
Great, thanks. Will give it a go.

Super appreciated.
 
Old 05-30-2010, 09:38 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,491

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Let's see the menu.lst as well in that case (referring to the listing in post #3). And from the grub boot menu, get into command mode and let's see the output from
Code:
geometry (hd0)
geometry (hd1)

Last edited by syg00; 05-30-2010 at 09:47 PM. Reason: added reference comment.
 
1 members found this post helpful.
Old 05-30-2010, 09:59 PM   #7
Caram
LQ Newbie
 
Registered: May 2010
Distribution: Arch, Debian, Fedora
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by brucehinrichs View Post
By "Bootloader" do you mean the windows bootloader? If so, I would disable /dev/sda (either in the BIOS or by physically detaching the cable) and use your windows install disk to reinstall the (windows) bootloader to /dev/sdb. Powerdown, re-enable /dev/sda and your grub chainloader entry (as it is now) should allow you to boot into windows again.
Awesome, absolutely brilliant. Did the trick just fine.

I was so afraid I would have to reinstall.
 
  


Reply

Tags
grub, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB won't boot into windows 7, and windows 7 recovery erases ubuntu... amiejay Linux - Newbie 2 01-03-2010 02:07 AM
Putting 3 windows OS into Grub Menu without going thru windows boot loader c_mack93 Ubuntu 8 11-13-2009 10:23 PM
Help of GRUB, How to Linux, Windows XP and Windows 200 ERBRMN Linux - General 4 04-25-2006 09:26 PM
SuSE 9.1 and Windows Xp refuse to live in harmony: error loading windows through GRUB sanctumtacete Linux - Newbie 3 10-19-2004 08:47 AM
Boot windows 98,windows XP and linux by GRUB Swift&Smart Linux - General 6 02-22-2003 10:11 AM


All times are GMT -5. The time now is 07:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration