Re: Dualboot Two Hard Drives

Originally Posted by Trinity1976

I have no file called 'menu.lst' in my grub directory. Does anyone know if things are different in Karmic?

I didn't either - and that was why I wasn't able to boot directly into Ubuntu. I had to reinstall grub and then run "update-grub" which then asked me if I wanted to create a menu.lst which then solved my boot problem (after I edited it to accommodate the Dell Utility Partition on my Windows drive.)

Re: Dualboot Two Hard Drives

I think the new equivalent is grub.cfg. I tried lots of different combinations of master and slave with my drives and couldn't even get Windows to boot up if I selected the drive manually in the Boot menu.

So I've given up on dual-booting and am going to set up a Virtual Box instead. Windows was on a very old 20GB hard-drive anyway, and it's probably best I get rid of it.

Re: Dualboot Two Hard Drives

HI. this post has been really helpful so thanks. i've had problems doing this before, and i managed to get it working once so i'm fairly confident i can do it again... but something isn't quite working right.. so i could really use some help. Thanks in advance for any tips

Right now, i've got windows 7 installed on a slave 500 Gig IDE drive and ubuntu 9.10 freshly installed on a 250 Gig Sata drive. I installed them both seperately with only one hard drive connected at a time. when i boot with both hard drives connected it's not giving me the option to boot either, it just automatically boots into ubuntu. which is great because it means i can just go into terminal and change the boot bios right? so here's my drive configureation when i type :

So i think i just need to tweek the line that i put in the edited menu.lst
gksudo gedit /boot/grub/menu.lst
title Windows XP Professional
root (hd1,0)
savedefault
makeactive
chainloader +1
map (hd0) (hd1)
map (hd1) (hd0)

replace windows xp professional with Windows 7

and change the Hd0 HD 1 Lines but.. i cant figure what i need to change. any tips? or anything else i need to change? i tried putting it in unchanged just the way i pasted it there and i thought it would work.. but it didn't seem to do anything. I used to have XP and ubuntu running like this on 2 hard drives and it worked great so i hope i can figure this out. Thanks for your time!

(Qqmike wrote:grub-mkconfig Detecting other OSs
grub-mkconfig automatically runs os-prober to detect other OSs on your PC (assuming os-prober is installed, which it will be in any normal installation).

grub-mkconfig: Is grub.cfg in sync with core.img?
=> Run first: grub-install
To be sure you get the best and the correct grub.cfg file, especially if there's been a change/update to core.img, it would be safe to runsudo grub-install
before running
sudo grub-mkconfig -o /boot/grub/grub.cfg

XP on a non-first hard drive: (hdx,y), x > 1
Qqmike recommend:
See the following section titled "Booting XP on a non-first hard drive: The drivemap command in GRUB 2."

=> => Fact is, you might be able to use the GRUB 2 utility grub-mkconfig or grub-install to do this work for you: they might detect Windows properly and adjust for Windows being on a non-first HD (by implementing the drivemap commands automatically). (For the commands grub-mkconfig and grub-install, see Notes about some of the new GRUB 2 commands (in Reply #1 above); also see SECTION 3: Fixing Things)

Booting XP on a non-first hard drive The drivemap command in GRUB 2
Qqmike wrote: "I will present you with safe options that will not harm your GRUB 2 or dual-booting setup.

For a more compact Method 2 and for technical notes and other useful details about how drivemap works, see Reply #17. (Later, Reply # 17 may be incorporated here.)

The Quick-and-Dirty Solution

Method 1
To boot Windows XP installed to (hd1,1), use the following menuentry (in a script you write as a text file (and make executable) in the folder /etc/grub.d):

=> The drivemap command in GRUB 2 replaces the map command in GRUB Legacy.
=> That's all you need to know to make your grub.cfg work.

=> => Fact is, you might be able to use the GRUB 2 utility grub-mkconfig or grub-install to do this work for you: they might detect Windows properly and adjust for Windows being on a non-first HD (by implementing the drivemap commands automatically). (For the commands grub-mkconfig and grub-install, see Notes about some of the new GRUB 2 commands (in Reply #1 above); also see SECTION 3: Fixing Things"

EDIT 1
USING -sudo grub-install- Herman recommend to specify the Disk you wish to Install Grub: