|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Operating Systems > Linux, Unix | |
Adding Windows to GRUB
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | ||||||||||||||
|
Linux Lobbyist
|
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 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 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 LGCQuote:
|
||||||||||||||
|
|
|
|
#2 (permalink) | |||||||||||||
|
Networking Nut
|
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
|
|||||||||||||
|
|
|
|
|
#3 (permalink) | |||||||||||||||
|
Linux Lobbyist
|
Quote:
![]()
__________________
Q6600 G0 @ 3409 4600+ Manchester @ 2809.9 Member of the LGCQuote:
|
|||||||||||||||
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|