LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-22-2013, 01:18 PM   #1
contraversy
LQ Newbie
 
Registered: Jun 2012
Posts: 16

Rep: Reputation: Disabled
Trying to add Windows 7 Partition to Grub Menu


Hey guys,

I had Windows 7 installed on my computer, I added another HDD and installed Linux on it (Slackware 14). I setup Grub and now when I boot my PC the Grub Menu shows but it will only boot the Linux OS, not the windows OS.

I did some searching to setup my menu.lst

Code:
title Windows 7
rootnoverify (hd1,0)
makeactive
chainloader +1
When I choose to boot it, I get an error about an executable not found. Anyone have this setup and want to share their menu.lst file?

Also** It worked fine when it was all on the same HDD (Also, my linux is /dev/sda and my windows is /dev/sdb)


Thanks
 
Old 07-22-2013, 02:57 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 9,424

Rep: Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089Reputation: 2089
If windows 7 is on the second drive (hd1,0), you most likely need to map it. The command below should do it. If it doesn't you will need to post more details:

Quote:
title Windows 7
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Grub : Lost my windows partition, can't find menu.lst in /boot/grub.Someone can help? lucid_dino Ubuntu 9 11-01-2010 01:51 PM
Grub.conf to add a windows partition SpartacusJones Linux - Software 4 06-16-2007 12:01 AM
Grub will not let me add Windows XP to menu.lst BillyGalbreath Linux - General 7 12-27-2005 02:39 PM
add windows install to GRUB menu sall Linux - Hardware 4 07-29-2005 05:41 PM
GRUB - How to add Windows to boot menu? geekgyrrrl Linux - Newbie 4 06-04-2005 10:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:19 PM.

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