I need to add my windows installations to the grub menu.
I have windows 7 and windows xp on hd0 and windows xp on hd1.
Using 'sudo update-grub' doesn't seem to help.
So how do i fix this?
I need to add my windows installations to the grub menu.
I have windows 7 and windows xp on hd0 and windows xp on hd1.
Using 'sudo update-grub' doesn't seem to help.
So how do i fix this?
My PC: AMD Phenom II X4 960T 3GHz, 8GB RAM, 500GB WD SATA HDD, 160 GB WD PATA HDD (slave), AMD 880G chipset, AMD Radeon 6450 graphics + 1GB DDR3 video memory
Windows 7=/dev/sda2
windows xp 1=/dev/sda3
windows xp 2=/dev/sdb1
My PC: AMD Phenom II X4 960T 3GHz, 8GB RAM, 500GB WD SATA HDD, 160 GB WD PATA HDD (slave), AMD 880G chipset, AMD Radeon 6450 graphics + 1GB DDR3 video memory
Windows 7=/dev/sda2
windows xp 1=/dev/sda3
windows xp 2=/dev/sdb1
My PC: AMD Phenom II X4 960T 3GHz, 8GB RAM, 500GB WD SATA HDD, 160 GB WD PATA HDD (slave), AMD 880G chipset, AMD Radeon 6450 graphics + 1GB DDR3 video memory
I see in your mini-profile that you use 9.04 (you probably haven't updated it), remember Jaunty still uses GRUB legacy (0.97) and update-grub won't work.
If you indeed have Karmic and GRUB2, os-prober is probably not working and you'll have to add the entries manually.
Edit your 40_custom file, located at /etc/grub.d/:
This is how I have my Windows partition, you'll have to change it according to your settings:Code:$ gksudo gedit /etc/grub.d/40_custom
The menuentry string is what you will see in your grub menu, you may want to put "windows xp/7" instead; the --fs-uuid --set number can be found with:Code:#!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. menuentry "Videogames" { insmod ntfs set root=(hd0,1) search --no-floppy --fs-uuid --set 400aa41b7790b28a drivemap -s (hd0) ${root} chainloader +1 }
Oh and remember, now in GRUB2, hd0,1 = sda1; hd1,2 = sdb2, etc...Code:$ sudo blkid
No, I do use jaunty and the legacy GRUB!
I had some issues with Karmic (downloaded via bittorrent) so I stuck to jaunty...
So, what do i do?
My PC: AMD Phenom II X4 960T 3GHz, 8GB RAM, 500GB WD SATA HDD, 160 GB WD PATA HDD (slave), AMD 880G chipset, AMD Radeon 6450 graphics + 1GB DDR3 video memory
You can install "startupmanager":
If I recall correctly, this application can detect and add other OS's to your GRUB, I may be wrong though, I haven't used the app in a very long time.Code:$ sudo apt-get install startupmanager
Anyways, you can always fix it manually by editing the menu.list file located at /boot/grub/:
This is a sample of a Windows XP entry:Code:$ gksudo gedit /boot/grub/menu.lst
In GRUB legacy, we have to use the old notation: hd0,0 = sda1, hd1,2 = sdb3, etc...Code:title Windows XP rootnoverify (hd0,0) makeactive chainloader +1
You can always reinstall grub too, boot from the LiveCD, open a terminal and run:
Code:$ sudo grub > root (hd0,0) > setup (hd0) > exit
Last edited by darolu; April 15th, 2010 at 08:23 AM.
Windows combines its boot into one, the first one with the boot flag, moving boot files so grub can only boot the one that windows uses.
To get each MS to have its own boot loader make a partition and set its boot flag on, then install the 2nd product in it. Multibooters, Pictures here worth 1000+ words
http://www.multibooters.co.uk/multiboot.html
A user who installed two windows & it worked to boot from grub directly
http://ubuntuforums.org/showthread.php?t=1271600
If you want to boot each and the install is one a primary partition, you may be able to move boot flag and run the repairs to make each windows bootable. But then a boot from the first windows will only work for that one not all of them.
For more info on UEFI boot install & repair - Regularly Updated :
http://ubuntuforums.org/showthread.php?t=2147295
Please use Thread Tools above first post to change to [Solved] when/if answered completely.
Bookmarks