Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Adding Windows to GRUB
New Posts  All Forums:Forum Nav:

Adding Windows to GRUB

post #1 of 3
Thread Starter 
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:
titleUbuntu 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

titleUbuntu 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

titleUbuntu 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

titleUbuntu 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

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

titleMicrosuck 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?
Mod
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @ 3390MHz Asus P5Q XFX 8800GT Alpha Dog Edition 767/1833 2x1g OCZ Reaper DDR2 
Hard DriveOptical DriveOSMonitor
WD 160G SATA Light-on Lightscribe Drive Ubuntu Syncmaster 730B 
KeyboardPowerCaseMouse
G15 Rosewill 550w SLI TT Tsunami MX518 
Mouse Pad
None 
  hide details  
Reply
Mod
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @ 3390MHz Asus P5Q XFX 8800GT Alpha Dog Edition 767/1833 2x1g OCZ Reaper DDR2 
Hard DriveOptical DriveOSMonitor
WD 160G SATA Light-on Lightscribe Drive Ubuntu Syncmaster 730B 
KeyboardPowerCaseMouse
G15 Rosewill 550w SLI TT Tsunami MX518 
Mouse Pad
None 
  hide details  
Reply
post #2 of 3
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:
titleMicrosuck Winblowz
root(hd0,1)
savedefault
makeactive
chainloader+1
post #3 of 3
Thread Starter 
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:
titleMicrosuck Winblowz
root(hd0,1)
savedefault
makeactive
chainloader+1
Yeah, I was leaning on that being the error's location. THanks for the clarification!
Mod
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @ 3390MHz Asus P5Q XFX 8800GT Alpha Dog Edition 767/1833 2x1g OCZ Reaper DDR2 
Hard DriveOptical DriveOSMonitor
WD 160G SATA Light-on Lightscribe Drive Ubuntu Syncmaster 730B 
KeyboardPowerCaseMouse
G15 Rosewill 550w SLI TT Tsunami MX518 
Mouse Pad
None 
  hide details  
Reply
Mod
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @ 3390MHz Asus P5Q XFX 8800GT Alpha Dog Edition 767/1833 2x1g OCZ Reaper DDR2 
Hard DriveOptical DriveOSMonitor
WD 160G SATA Light-on Lightscribe Drive Ubuntu Syncmaster 730B 
KeyboardPowerCaseMouse
G15 Rosewill 550w SLI TT Tsunami MX518 
Mouse Pad
None 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Adding Windows to GRUB