LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 01-22-2011, 11:42 AM   #1
bptknx
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Rep: Reputation: 0
Smile How do I configure GRUB to boot Windows7 and Linux?


Hello, I have installed Elive /Debian on my Acer laptop and it is working great (beautiful functional linux distro) having Windows7 first, however I have lost the ability to also boot Windows7. I have the GRUB boot manager installed on a my primary Linux partition, but would like some instruction on how to configure so that I will also have the option to boot Windows7, adding it to the list on the GRUB boot menu...

I have deleted the windows Recovery partition because if used it would recover back to an earlier version of Windows. I will eventually resize the ntfs partition and create another logical drive on that partition for a windows image. So here is a list of partitions;

unallocated ..............10 Gib
/dev/sda2 ntfs.........126.8 Gib Windows7
/dev/sda3 linux-swap....2.93 Gib
/dev/sda4 reiserfs......6.83 Gib Elive
/dev/sda1 ext3..........2.50 Gib Want to use as /home directory for linux

Thanks for your help,
Bptknx
 
Old 01-22-2011, 12:19 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You could've kept recovery patition and installed grub to / on sda3. Will windows boot without recovery parttition?
 
Old 01-22-2011, 12:43 PM   #3
corbintechboy
Member
 
Registered: Sep 2003
Location: Kentucky
Posts: 480
Blog Entries: 1

Rep: Reputation: 51
Code:
title Windows
rootnoverify (hd0,1)
makeactive
chainloader +1
Add to /boot/menu.lst and run grub on your controlling distro.

Good to go!

Edit: Just to add, the "(hd0,1)" is telling you the first drive, second partition (numbering starts at zero).

Last edited by corbintechboy; 01-22-2011 at 12:49 PM.
 
Old 01-22-2011, 12:53 PM   #4
bptknx
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EDDY1 View Post
You could've kept recovery patition and installed grub to / on sda3. Will windows boot without recovery parttition?
Hi Eddy1,
I am pretty sure that Windows can boot without the recovery partition, however since I am new to Linux I am nor sure how to install grub to sda3 / . Any instruction would be appreciated. Thanks
 
Old 01-22-2011, 12:58 PM   #5
corbintechboy
Member
 
Registered: Sep 2003
Location: Kentucky
Posts: 480
Blog Entries: 1

Rep: Reputation: 51
Quote:
Originally Posted by bptknx View Post
Hi Eddy1,
I am pretty sure that Windows can boot without the recovery partition, however since I am new to Linux I am nor sure how to install grub to sda3 / . Any instruction would be appreciated. Thanks
Go into your controlling distro (the one managing grub).

sudo nano /boot/menu.lst

use the arrow keys scroll down to after the Linux entries (you will see them).

Enter what I placed above.

Hit ctrl+x hit enter twice and it will be saved. Reboot and Windows should be there, scroll to windows on the list and see if it works.
 
Old 01-22-2011, 01:04 PM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Depending on whic linux os you choose you really don't have to manually partition prior to installation, just make sure that there is empty space on drive. After you install a linux os you'll be able to go back and see what partition formats look like. If you're a real newbie like me, I'd sugsest installing something like linuxmint, suse, Ubuntu, because they have an installer that will direct you on installation. You can play with partitions after you get a feel of the different systems.
 
Old 01-22-2011, 01:47 PM   #7
hughetorrance
Member
 
Registered: Aug 2009
Location: London North West
Distribution: x86_64 Slack 13.37 current : +others
Posts: 459

Rep: Reputation: 59
Two things to consider,you should have your windoze on the first partition sda1 which if its legacy GRUB is (hda,0) and if its GRUB2 its (hda,1).

Next: you are only allowed 4 primary partitions and you have used them all so your unallocated 10GB is unusable,so you have to turn one of the partitions into an extended one, into which you can add more logical partitions.
 
Old 01-25-2011, 06:28 PM   #8
bptknx
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Talking Achieved duel boot

Hi corbintechboy,
Thank you for the help... As it was, I did not have sudo access and had to research how to configure adding myself to the sudoers list... after that, it was simple to edit the .../grub/menu.lst file as you instructed and achieved duel boot with Windows 7. I also expanded the Windows partition eliminating the unallocated space, and gaining 10Gib. However the Windows master boot record was corrupted, so I fixed that with a Windows 7 install disk. Bptknx
 
  


Reply



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
triple boot Ubuntu/Windows7/WindowsXP problem dasoberdick Ubuntu 5 01-02-2011 08:16 PM
trying to uninstall debian5 or dual boot with windows7 one2know Linux - Software 2 08-26-2010 03:08 PM
New windows7 netbook, how to set up dual boot? sls54 Linux - Newbie 16 08-09-2010 11:02 PM
How do i configure GRUB to actually boot an OS? Lyle Linux - Newbie 9 05-23-2010 07:13 AM
dual boot problem: windows7 and ubuntu baxzius Linux - Newbie 2 02-03-2010 04:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 09:34 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
Open Source Consulting | Domain Registration