Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Operating Systems > Linux, Unix

Reply
 
LinkBack Thread Tools
Old 06-30-08   #1 (permalink)
Linux Lobbyist
 
Pap3r's Avatar
 
intel nvidia

Join Date: Feb 2008
Location: ~/
Posts: 465

Rep: 33 Pap3r is acknowledged by some
Unique Rep: 29
Folding Team Rank: 350
Trader Rating: 0
Default Adding Windows to GRUB

So here's the deal. Now that I am in Linux again, I want windows to show on the GRUB Menu, and here's what I have done.

This is an excerpt form my menu.lst
Code:
title		Ubuntu 7.10, kernel 2.6.22-15-generic
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.22-15-generic root=UUID=39c66b2d-533a-40fe-adf9-fb22af18b247 ro quiet splash
initrd		/boot/initrd.img-2.6.22-15-generic
quiet

title		Ubuntu 7.10, kernel 2.6.22-15-generic (recovery mode)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.22-15-generic root=UUID=39c66b2d-533a-40fe-adf9-fb22af18b247 ro single
initrd		/boot/initrd.img-2.6.22-15-generic

title		Ubuntu 7.10, kernel 2.6.22-14-generic
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=39c66b2d-533a-40fe-adf9-fb22af18b247 ro quiet splash
initrd		/boot/initrd.img-2.6.22-14-generic
quiet

title		Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=39c66b2d-533a-40fe-adf9-fb22af18b247 ro single
initrd		/boot/initrd.img-2.6.22-14-generic

title		Ubuntu 7.10, memtest86+
root		(hd0,0)
kernel		/boot/memtest86+.bin
quiet

title		Microsuck Winblowz
root		(hd0,0)
savedefault
makeactive
chainloader	+1

### END DEBIAN AUTOMAGIC KERNELS LIST
I have added windows, but when I boot into it, it says something about no execution. This is the output of fdisk -l
Code:
[pap3r][UBox][~]$ sudo fdisk -l
[sudo] password for pap3r:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe318e318

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       14023   112639716   83  Linux
/dev/sda2           14024       19082    40636417+   7  HPFS/NTFS
/dev/sda3           19083       19457     3012187+   5  Extended
/dev/sda5           19083       19457     3012156   82  Linux swap / Solaris
Obviously I am doing something wrong, as windows doesn't boot, but only shows on the GRUB menu I'm thinking that it has to do with the (hd0,0)... but I don't know what.

See any errors jumping out?

EDIT

What do the options under where I added Windows title do? I.e., savedefault and makeactive. I know that GRUB boots by default with number assignments, which is set to Linux, and I want it to stay that way. Will savedefault alter that?
__________________
Q6600 G0 @ 3409
4600+ Manchester @ 2809.9
Member of the LGC
Quote:
Originally Posted by GoHigh
All that work in my bathroom for three hours and for what... 2c. All that stroking... back and forth...

System: Mod
CPU
Q6600 G0 @ 3240MHz
Motherboard
Asus P5Q
Memory
2x1g OCZ Reaper DDR2
Graphics Card
XFX 8800GT Alpha Dog Edition 767/1833
Hard Drive
WD 160G SATA
Sound Card
Onboard
Power Supply
Rosewill 550w SLI
Case
TT Tsunami
CPU cooling
Vendetta 2 w/ 3000rpm Ultra Kaze
GPU cooling
Stock
OS
Ubuntu
Monitor
Syncmaster 730B
Pap3r is offline I fold for Overclock.net   Reply With Quote
Old 06-30-08   #2 (permalink)
Networking Nut
 
ShamrockMan's Avatar
 
intel ati

Join Date: Apr 2008
Posts: 30

Rep: 6 ShamrockMan Unknown
Unique Rep: 6
Trader Rating: 0
Default

Your telling GRUB to boot windows off of the wrong partition.

(hd#,#)
First number is the hard-drive, second is the partition of the hard-drive.

Change the windows line to this, and it should work:
Code:
title		Microsuck Winblowz
root		(hd0,1)
savedefault
makeactive
chainloader	+1
__________________
System: Blacky
CPU
Q6600
Motherboard
ASUS Maximus Formual SE
Memory
2GB DDR2
Graphics Card
ATi 4870 512mb
Hard Drive
2x 150GB 10K Raptors, 3x 300gb
Sound Card
Asus Xonar D2X
Power Supply
SilverStone SST-ST60F 600w
Case
LanLi PC-61B
CPU cooling
Zalman 120MM copper
GPU cooling
Stock (with AS5)
OS
Windows Vista Ultimate
Monitor
24" Acer 1900x1600
ShamrockMan is offline   Reply With Quote
Old 06-30-08   #3 (permalink)
Linux Lobbyist
 
Pap3r's Avatar
 
intel nvidia

Join Date: Feb 2008
Location: ~/
Posts: 465

Rep: 33 Pap3r is acknowledged by some
Unique Rep: 29
Folding Team Rank: 350
Trader Rating: 0
Default

Quote:
Originally Posted by ShamrockMan View Post
Your telling GRUB to boot windows off of the wrong partition.

(hd#,#)
First number is the hard-drive, second is the partition of the hard-drive.

Change the windows line to this, and it should work:
Code:
title		Microsuck Winblowz
root		(hd0,1)
savedefault
makeactive
chainloader	+1
Yeah, I was leaning on that being the error's location. THanks for the clarification!
__________________
Q6600 G0 @ 3409
4600+ Manchester @ 2809.9
Member of the LGC
Quote:
Originally Posted by GoHigh
All that work in my bathroom for three hours and for what... 2c. All that stroking... back and forth...

System: Mod
CPU
Q6600 G0 @ 3240MHz
Motherboard
Asus P5Q
Memory
2x1g OCZ Reaper DDR2
Graphics Card
XFX 8800GT Alpha Dog Edition 767/1833
Hard Drive
WD 160G SATA
Sound Card
Onboard
Power Supply
Rosewill 550w SLI
Case
TT Tsunami
CPU cooling
Vendetta 2 w/ 3000rpm Ultra Kaze
GPU cooling
Stock
OS
Ubuntu
Monitor
Syncmaster 730B
Pap3r is offline I fold for Overclock.net   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 08:06 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.11805 seconds with 9 queries