LinuxQuestions.org
Help answer threads with 0 replies.
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 08-15-2007, 12:25 AM   #1
krimsonking
LQ Newbie
 
Registered: Jun 2007
Location: Melbourne, Australia
Distribution: openSUSE, Ubuntu
Posts: 12

Rep: Reputation: 0
Question Booting Windows from grub


Hi, I am trying to setup grub to boot my Windows drive, but not sure exactly how to go about it. I have found some tutorials on how to do this, but they deal with having the two os's on the same drive, where as mine are on two individual SATA drives. I know I need to edit the /boot/grub/menu.lst file, but not sure of the exact syntax required. Any advice would be greatly appreciated, Thanks.

Just updating, I have added an entry to menu.lst, which is:
title Windows
root (sd2,0)
chainloader +1

Windows is located on /dev/sdc1, so I think this should be correct, but when I boot to it I get a grub 23 error: unable to parse number.

Last edited by krimsonking; 08-15-2007 at 01:23 AM. Reason: further info
 
Old 08-15-2007, 02:38 AM   #2
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
title Windows
rootnoverify (hd2,0)
map (hd0) (hd2)
map (hd2) (hd0)
makeactive
chainloader +1

Last edited by jay73; 08-15-2007 at 02:39 AM.
 
Old 08-15-2007, 03:12 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,131

Rep: Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987
As per jay73, but change all "hd2" to "hd1" if you only have 2 disks.
 
Old 08-15-2007, 05:13 AM   #4
krimsonking
LQ Newbie
 
Registered: Jun 2007
Location: Melbourne, Australia
Distribution: openSUSE, Ubuntu
Posts: 12

Original Poster
Rep: Reputation: 0
Hi, after making the changes suggested I now get an error saying that the disk is not bootable, although I know it is. Below is the readout from fdisk:

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 262 2104483+ 82 Linux swap / Solaris
/dev/sda2 * 263 2873 20972857+ 83 Linux
/dev/sda3 2874 9729 55070820 83 Linux

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 14594 117218304 7 HPFS/NTFS

Disk /dev/sdc: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 7097 57004018 7 HPFS/NTFS
/dev/sdc2 7140 14593 59874255 7 HPFS/NTFS

Disk /dev/sdd: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdd1 * 1 30402 244196352 c W95 FAT32 (LBA)
 
Old 08-15-2007, 06:04 AM   #5
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Maybe sdc does not correspond to hd2 because of BIOS settings? From the GRUB menu, select the windows boot line, press E, select the rootnoverify line and press E again. Delete the last bits so that you have only
rootnoverify (hd2,
and use the tab key to find out how that disk is partitioned. If you don't see any partitions at all, you can be sure that sdc is hd1 (or even hd3) and not hd2. Substitute
rootnoverify (hd2,
with
rootnoverify (hd1,
or
rootnoverify (hd3,
and retry completion.
If you do see the windows partititions this time, you need to edit GRUB to use
rootnoverify (hd1,0)
or
rootnoverify (hd3,0).
 
  


Reply

Tags
boot, dual, 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
DISCUSSION: Booting Windows on second HD with Grub talLinux LinuxAnswers Discussion 5 02-13-2007 09:37 AM
Booting windows with grub m3tal Linux - General 12 11-07-2006 03:56 PM
GRUB not booting to windows qwert1029in Linux - Newbie 1 07-08-2006 07:00 PM
GRUB windows xp not booting mirage Linux - Newbie 2 05-14-2003 02:10 PM
booting windows xp with grub! help!! fisch79 Linux - Software 1 02-20-2003 09:03 PM


All times are GMT -5. The time now is 10:24 PM.

Main Menu
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