View Full Version : Dualboot Two Hard Drives
confused57
May 21st, 2006, 01:01 AM
This guide only applies to Ubuntu 9.04 and earlier versions, which use legacy grub. Later versions use grub2, which is significantly different, but grub2 has a much better automated detection of other OSes. There are several excellent Grub2 guides that you might want to consult, if you're using Ubuntu 9.10 or later:
http://ubuntuforums.org/showthread.php?t=1195275
http://ubuntuforums.org/showthread.php?t=1285897
http://members.iinet.net/~herman546/p20.html
As a beginner, I wanted to set up a dual boot without installing Grub to windows and was able to find two excellent links for doing this:
http://www.ubuntuforums.org/showthread.php?t=124989&highlight=Jumper+settings
http://ubuntuforums.org/showthread.php?p=677880#post677880
The excellent instructions provided by "lha" worked flawlessly for installing on 2 IDE drives.
I also found links to dualboot with a SATA and an IDE drive:
http://www.ubuntuforums.org/showthread.php?t=46003&highlight=dual+boot+sata
http://www.ubuntuforums.org/showthread.php?t=192954
http://www.ubuntuforums.org/showthread.php?t=275728&page=3
The above IDE + SATA threads are probably outdated, but I'll leave them FYI.
Hope this helps someone looking for an alternate method of dualbooting with 2 hard drives...
I have my personal computer set up to dualboot using the method described in the first two links, lha has give me his "blessings" to write up a HowTo with his instructions. This is an alternate method of dualbooting Ubuntu and Windows, using 2 hd, without installing grub to Windows or altering your Windows installation.
First, disconnect your Windows drive, then connect the drive you want to install Ubuntu on as the primary IDE master drive. After installing Ubuntu, allow the updater to install all the necessary updates, this may take awhile. Shutdown your computer and reconnect your Windows drive as slave, then restart, your computer will boot into Ubuntu.
You will need to edit your menu.lst file:
(Open a terminal, copy & paste one line at a time, press "enter" each time)
cd /boot/grub
sudo cp menu.lst menu.lst_backup
gksudo gedit menu.lst
The first line changes to the grub directory, the second line makes a backup of your menu.lst file, and the third line opens the menu.lst file using the gedit text editor.
Copy and paste the following lines above the line
###BEGIN AUTOMAGIC KERNEL LIST
title Windows XP
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
If grub gives an error when rebooting, you can try rootnoverify (hd1,0) instead of root (hd1,0) in the second line.
Note: If you prefer Ubuntu to boot by default, you can copy & paste the above entry at the very end of your menu.lst, instead of above ###BEGIN AUTOMAGIC....
To automatically display the grub menu at bootup, find the line
hidden
and replace with
#hidden
To adjust the time grub is displayed at bootup, change the timeout(in seconds)...I'd suggest 10 seconds(default is 3).
Quit and save settings.
Note: If for some reason you need to restore your original menu.lst:
cd /boot/grub
sudo cp menu.lst_backup menu.lst
Reboot your computer, it will automatically boot to Windows, unless you choose Ubuntu within the time grub is displayed.
If you want to uninstall Ubuntu, you can make the Windows drive primary master and reformat or unplug the Ubuntu drive.
If you want to remove Windows, then you can unplug the Windows drive or reformat it, then open menu.lst
gksudo gedit /boot/grub/menu.lst
and remove the Windows entry in grub.
Installing on a Dell Dimension 4550:
I tried the above method trying to set up a dualboot on my Dell Dimension 4550, but when I tried to boot into Windows, I got "Error 21:Selected disk does not exist".
I finally was able to get it to work by:
Boot into Ubuntu, open up a terminal:
sudo fdisk -l
The -l is a lowercase "L"
cat /etc/fstab
From these two commands, I was able to determine that hdb, which was the slave drive with windows actually had 2 partitions. The first partition was a 35 Mb Dell utility and the second partition was Windows, so I changed the Windows root from (hd1,0) to (hd1,1) in the /boot/grub/menu.lst. However, I continued to get the error21 message...I thought maybe the jumper settings on the slave drive were incorrect. Fortunately, I entered bios setup by pressing "F2" during bootup and found out that the Primary ide controller for hd1 was turned "off" by default...I changed it to "Auto" detect. Grub booted directly into Windows and I'm enjoying dualboot of Windows and Dapper on my Dell computer.
It is possible to set up a dualboot with Windows & Ubuntu on separate hard drives, with both hard drives connected during the install of Ubuntu:
http://www.ubuntuforums.org/showpost.php?p=2195398&postcount=47
if you want to be absolutely sure not to overwrite your Windows mbr, then disconnect your Windows drive during Ubuntu installation.
An excellent tool to download before installing Ubuntu is the Super Grub Disk:
http://users.bigpond.net.au/hermanzone/SuperGrubDiskPage.html
the Super Grub Disk is capable of restoring Windows mbr or reinstall grub...and can boot either Windows or Ubuntu.
confused57
May 21st, 2006, 06:21 AM
The definitive guide for dualbooting Windows and Ubuntu on a single hard drive, using the alternate cd, can be found at Herman's site:
http://users.bigpond.net.au/hermanzone/
For Dapper Desktop CD:
http://www.psychocats.net/ubuntu/installing
The guides can be used to install on 2 different hard drives, but Windows would need to be the master drive and Ubuntu the slave drive. You would select "IDE drive hdb" to install Ubuntu onto and install Grub to Windows(hda) when prompted. Windows doesn't like it when it's not the first OS in a dualboot system, therefore, it has to be on the master drive when using this method. (The menu.lst(Grub) Windows entry, provided in the links in my first post method, has a mapping command, which fools Windows into thinking it is the first OS.)
If you decide to uninstall Ubuntu, heaven forbid, you'd need to boot up your computer with the Windows installation CD, go to recovery mode and enter fixmbr, which restores your Windows mbr(deletes Grub). Then you could reformat the slave drive from Windows.
Note: I would recommend anyone installing grub onto their Windows mbr when setting up a dual boot with Ubuntu to download the Windows 98SE OEM boot floppy from bootdisk.com as described here:
http://www.users.bigpond.net.au/hermanzone/p18.htm
If for some reason Ubuntu or grub becomes corrupted, you would need to repair your mbr in order to boot Windows, by booting up with the Win98SE boot floppy and enter fdisk /mbr. The boot floppy would be useful for anyone not having a Windows install cd, or as a backup for those that do have one.
I opted to post this method as a reply, rather than editing my first post, since it is a different way of setting up a dualboot with 2 hd. Any adivce from more experienced Ubuntu Linux users concerning dualbooting would be welcomed.
I feel that having one link with various options concerning dualbooting with 2 hd, most importantly with Herman's guide, would give a beginner alternative methods for setting up a dualboot Windows/Ubuntu system. My initial intent was to offer only the dualboot method by "lha", but other options would be helpful, in my opinion...so that beginners would have a choice depending on their system, their experience with computers & linux, and their preferences...
Here's a thread with one person's solution to dual boot dual hard drives:
http://www.ubuntuforums.org/showthread.php?t=259422
If your computer supports selecting which drive to boot in bios:
http://www.ubuntuforums.org/showthread.php?t=275728
Tip: Before installing Ubuntu on your system, you should try running the liveCD to ensure that there are no hardware incompatibilities and to familiarize yourself with the Ubuntu OS.
Note: If you're installing Ubuntu to dualboot with Windows on a single hard drive, Windows MUST be on a partition located prior to Ubuntu...e.g. Windows on hda1, Ubuntu on hda2.
shoki
August 2nd, 2006, 12:42 AM
To everybody that brought this information to this place at this time... Thank you so much!!! What an awesome eloquent way to do this. Virgin Windows Install, Virgin ubuntu Install move one jumper, edit one text file and you are in heaven... ;) (with 2 virgins) sorry I couldn't resist.
Anyway than you very much. This kind of solution is what makes Liniux such a great OS.
--Shoki
confused57
August 2nd, 2006, 08:40 AM
To everybody that brought this information to this place at this time... Thank you so much!!! What an awesome eloquent way to do this. Virgin Windows Install, Virgin ubuntu Install move one jumper, edit one text file and you are in heaven... ;) (with 2 virgins) sorry I couldn't resist.
Anyway than you very much. This kind of solution is what makes Liniux such a great OS.
--Shoki
Thanks, for me it was the more desirable option, don't have to worry about repairing your Windows mbr,etc and as you mentioned, it's quite easy to set up. You summed it up nicely.
shakyone
August 3rd, 2006, 09:09 AM
Confused57,
I also want to thank you. I was trying to figure a method to insulate the wife from ever dealing with the fact that I put Ubuntu on the computer. Why, because she is dependent on Windows to remote-connect to her place of employment. She is very wary that I will screw up the computer permanently and for good reason.
I have been searching for a method to use NTLDR with a Linux-Ubuntu option, but it was looking procedurally complicated and a little risky, since it involved tinkering with the Windows drive MBR.
After reading your method I realized there is the “ever present” Windows recovery option of returning the Windows drive back to the Master IDE position from the slave position. Last night I demonstrated the recovery option to the wife after following your procedure for installing Ubuntu and modifying GRUB. She is satisfied since the recovery demonstration gave absolutely ZERO indication that the PC ever functioned using the Linux OS, nor did it indicate a hard drive was ever removed. All because the MBR in the Windows drive is left intact throughout your method. My Ubuntu/XP computer works like charm with XP set as the default OS on GRUB. Wife is happy, and I get to have my fun too. Have a great day!
Josh_b
August 17th, 2006, 03:03 AM
I'm pretty sure (Me=Linux Newbie) there is a quicker way, without having to change all the files and such as in your how-to.
This is the way I did it:
I have a SATA drive for Windows XP and and IDE drive for Ubuntu 6.06. In the BIOS, I set the CD-ROM as first device (when installing Linux) and then the IDE drive to be the first hdd to start-up. After that just install Linux (with GRUB) and Bob's your uncle.
If I go back into BIOS and set the SATA drive as default hdd, then the GRUB doesn't show, and if I set the IDE as default, then GRUB shows, with Linux as default OS.
Hope that helps,
Josh
confused57
August 17th, 2006, 11:28 AM
I'm pretty sure (Me=Linux Newbie) there is a quicker way, without having to change all the files and such as in your how-to.
This is the way I did it:
I have a SATA drive for Windows XP and and IDE drive for Ubuntu 6.06. In the BIOS, I set the CD-ROM as first device (when installing Linux) and then the IDE drive to be the first hdd to start-up. After that just install Linux (with GRUB) and Bob's your uncle.
If I go back into BIOS and set the SATA drive as default hdd, then the GRUB doesn't show, and if I set the IDE as default, then GRUB shows, with Linux as default OS.
Hope that helps,
Josh
Thanks for sharing and your method has proven to be another method of setting up a 2 hard drive dualboot.
The Desktop Live CD doesn't allow you to select where to install grub, so the "howto" I described ensures that grub doesn't overwrite your Windows mbr...definitely takes a little longer disconnecting and reconnecting drives. I assumed there were other methods of setting up a dualboot(2 hard drives) without installing grub to the Windows mbr and I welcome anyone adding to this "howto" with an alternate installation option.
Update: Starting with Ubuntu Feisty 7.04, the Desktop Live CD does allow you to specify where to install grub by clicking on the "Advanced" button during installation & typing in a different location, instead of the default (hd0)...e.g. you could enter /dev/sda, /dev/sdb, etc.
GroverDill
August 21st, 2006, 11:50 PM
title Windows XP
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
This worked great for me, except I orginally had these commands mistyped in grub. It should be noted that there is a SPACE between (hd0) and (hd1) in both the 'map' lines. Otherwise, Grub responds with an error 11: unrecognized device string.
That unix is so literal... :)
Thanks for the solution, all. It's very cool.
confused57
August 22nd, 2006, 12:17 AM
It's actually better to copy & paste commands and entries, because it is difficult to tell where the spaces are in the typed commands, etc.
mxreader
September 6th, 2006, 12:20 AM
I am trying to find a solution to getting Ubuntu to boot off Grub on the IDE XP MBR (Ubuntu is on SATA). I am reading here to see if I can learn something that may help.
The early post gave a link
http://www.ubuntuforums.org/showthread.php?t=46003&highlight=dual+boot+sata
but there the commands are:
6. In Ubuntu go to Applications/System Tools/Terminal. You will need to open a text editor and change the grub menu file:
$cd /boot/grub
$sudo gedit menu.lst
now look for an entry (near the end) that reads like something like this:
title Microsoft Windows XP Professional
root (hd1,0)
savedefault
chainloader +1
and change it to this:
title Microsoft Windows XP Professional
root (hd1,0)
map (hd1,hd0)
map (hd0,hd1)
chainloader +1
7. save the file
8. reboot and test boot into XP
Notice the difference in the map ..... commands?
man I am confused now.
confused57
September 6th, 2006, 08:28 AM
I've always entered the mapping commands as shown in my earlier post, which have worked for me...I'm not familiar with entering them the way you pointed out from the link.
I'm assuming you're able to boot Ubuntu and not Windows...when you installed Ubuntu to the SATA drive you had both drives connected?
If you're able to boot Ubuntu, what is your entry in /boot/grub/menu.lst for booting it, e.g. root (hd0,0) or root (hd1,0)?
If you will, post the output of:
sudo fdisk -l
The -l is a small "L".
As a note, when there is a combination of IDE and SATA drives, Ubuntu usually installs grub to the IDE drive...therefore, it's probably recommended for someone doing fresh installs to install Windows to the SATA drive, then Ubuntu to the IDE drive.
Since you have Windows on the IDE drive, I would think an entry similar to this would boot it:
title Windows XP
root (hd0,0)
makeactive
chainloader +1
mxreader
September 7th, 2006, 04:36 AM
I'm assuming you're able to boot Ubuntu and not Windows...when you installed Ubuntu to the SATA drive you had both drives connected?
No, otherway, I can't boot into the installed Ubuntu (eventhough the installation seemed to work fine). Fortunately I can select XP from the GRUB (I'm using XP now).
I can also boot up from the liveCD and then press F6 to boot the liveCD Ubuntu.
If you're able to boot Ubuntu, what is your entry in /boot/grub/menu.lst for booting it, e.g. root (hd0,0) or root (hd1,0)?
If you will, post the output of:
sudo fdisk -l
The -l is a small "L".
I got 3 problems with the Ubuntu install. I cannot mount the Ubuntu filesystem. The other prob. is that I cannot get Wireless working... (note: I got the DWL-G520+ working in Breezy by modifying the interfaces file).
Sooo... its not possible to copy and paste commands and outputs.
Anyway, I did the fdisk -l and this is more or less what came up:
Disk /dev/hda: 80.0 G....
Device Boot Start....
/dev/hda1 * ...........................HPFS/NTFS
/dev/hda2 .............................W95 Ext'd (LBA)
/dev/hda5 .............................HPFS/NTFS
/dev/hda6 .............................HPFS/NTFS
Disk /dev/sda: 80.0 G....
Device Boot Start....
/dev/sda1 * ...........................Linux
/dev/sda2 .............................Extended
/dev/sda5 .............................Linux swap...
I tried the mounting instructions given at "hermanzone" to mount Ubuntu from a liveCD... at least I think I am doing that.
sudo mkdir /mnt/ubuntu
sudo mount -t ext3 /dev/sda1 /mnt/ubuntu
But I got an error message:
"Wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or other error....".
OK I must be typing wrong mount instruction to mount Ubuntu?
As a note, when there is a combination of IDE and SATA drives, Ubuntu usually installs grub to the IDE drive...therefore, it's probably recommended for someone doing fresh installs to install Windows to the SATA drive, then Ubuntu to the IDE drive.
Mine is not a fresh install of XP, but a fresh install of Ubuntu.
confused57
September 7th, 2006, 03:14 PM
You could install the driver in Windows to read your Ubuntu Linux drive:
http://www.fs-driver.org/
I'm assuming again, but it's probable that Ubuntu installed grub to your IDE drive...so if you removed Ubuntu, you might not be able to boot Windows. Here's a guide to repairing your Windows mbr:
http://www.users.bigpond.net.au/hermanzone/p18.htm
When the grub menu is displayed, try highlighting your entry to boot Ubuntu and pressing "e" for edit and see what is there(should be root (hd1,0)...I assume the root for booting Windows is (hd0,0).
Here's an excellent guide for reinstalling grub from the live cd:
http://www.ubuntuforums.org/showthread.php?t=224351
I don't know how comfortable you are with disconnecting and connecting hard drives, but if it were my system and none of the above methods worked...I'd consider repairing the Windows mbr using the guide above, with the SATA drive disconnected, once I got Windows mbr repaired and booting properly...I'd disconnect the IDE drive, reconnect the SATA drive and install Ubuntu...and if Ubuntu installs and works OK, maybe using bios to determine which drive to boot into. I've seen other posters use this method for dualbooting, just an option. Another option, "might" be to set the SATA to boot to first and put a Windows entry in grub to boot the IDE drive similar to the one I mentioned in my first post in this thread.
I'm just throwing out ideas that you may or may not want to try...I don't use SATA drives, so I can't give you any guidance from experience. Is your SATA controller on your mobo or is it pci, which can be quite problematic? There is probably a working solution, but you'll just have to try some different things(after backing up any important data you don't want to lose). Good luck.
Add: Here's a link discussing SATA & Linux issues:
http://linuxmafia.com/faq/Hardware/sata.html
mxreader
September 7th, 2006, 06:38 PM
Thanks confused57.
I think I will not attempt the driver installation because it says Ext2, and the commands that I've been told to try (for mounting) are Ext3. Sounds risky.
The answer to the next two questions you asked are yes.
Since I can't seem to mount the installed Ubuntu from the liveCD, there is no point to fixing the GRUB soooo I think your solution to dualbooting using BIOS to select (which I have used before in Breezy) is the one I will attempt next.
I just hope that the fixmbr is going to work OK. I've got the genuine XP CD so I will use the Recovery Console path.
Cheers mate.
mo79
October 12th, 2006, 07:32 PM
Hi confused57,
I have a Dell Dim. 4550 and just want to ask/confirm that Dell's boot menu and boot sequence only allow you to choose the master drive don't they? So the only way to dual boot without Grub writing over the WinXP boot record is to follow your instructions at the start of this thread?
Alternatively, do you know if it's possible to have a boot floppy that when read will automatically/manually boot the secondary drive (i.e. in this scenario XP would be master, Ubuntu slave, and unless the boot floppy [or even a boot CD] is in then XP will be the default drive to load)?
I was looking at this http://adrian15.raulete.net/grub/tiki-index.php ...
Cheers for any light. ;)
confused57
October 12th, 2006, 10:20 PM
Hi confused57,
I have a Dell Dim. 4550 and just want to ask/confirm that Dell's boot menu and boot sequence only allow you to choose the master drive don't they? So the only way to dual boot without Grub writing over the WinXP boot record is to follow your instructions at the start of this thread?
Alternatively, do you know if it's possible to have a boot floppy that when read will automatically/manually boot the secondary drive (i.e. in this scenario XP would be master, Ubuntu slave, and unless the boot floppy [or even a boot CD] is in then XP will be the default drive to load)?
I was looking at this http://adrian15.raulete.net/grub/tiki-index.php ...
Cheers for any light. ;)
My Dell works great set up the way I outlined at the beginning of this thread...it automatically boots into Windows... in fact, if the grub menu wasn't displayed, you'd never know I had Ubuntu installed on another drive. The mapping commands fool Windows into thinking it is the first hard drive, so it boots with no problems...be sure to also read the section on installing on a Dell Dimension 4550(set hd1 to "auto" and use rootnoverify (hd1,1), since the 1st partition is a Dell utility). I used rootnoverify by mistake & it worked OK, so I didn't go back and change it to root (hd1,1), as described.
Yes, you could install grub to floppy, using the alternate install cd:
http://www.ubuntuforums.org/showthread.php?t=188819
shoki
October 17th, 2006, 11:17 PM
Is there anyway to have it so ubuntu starts first unless you go into the menu?
I use ubuntu 99 percent of the time and having to catch grub to boot to ubuntu everytime is a pain.
Thanks,
--Shoki
confused57
October 17th, 2006, 11:26 PM
Is there anyway to have it so ubuntu starts first unless you go into the menu?
I use ubuntu 99 percent of the time and having to catch grub to boot to ubuntu everytime is a pain.
Thanks,
--Shoki
Yes, just move your Windows entry to the very end of your /boot/grub/menu.lst...just follow the directions at the beginning of this thread to backup your menu.lst, before making changes.
shoki
October 18th, 2006, 12:56 PM
Awesome!
Thanks again. I did do this before getting the reply and it could not be more simple to set up. Really cool.
--Shoki
pcawdron
November 6th, 2006, 07:08 AM
Excellent instructions, just copy and paste and away we go...
Hey, one question, how do I reverse the order? At the moment the default is windows. How do I make it second in the list so the default is Ubuntu?
I wasn't game to play around with the settings in the file without asking.
Many thanks,
Peter
confused57
November 6th, 2006, 12:56 PM
Excellent instructions, just copy and paste and away we go...
Hey, one question, how do I reverse the order? At the moment the default is windows. How do I make it second in the list so the default is Ubuntu?
I wasn't game to play around with the settings in the file without asking.
Many thanks,
Peter
That's no problem, just move your Windows entry to very end of the menu.lst file...you can copy & paste or retype, then delete the other entry...probably wouldn't hurt to make a backup of your menu.lst, before you make the changes(see instructions at the beginning of this thread).
Village
November 23rd, 2006, 07:17 PM
Alright,
I've done as the HowTo suggested and I've got my computer to boot XP first on my Dell 4550 (I also had to do the bit with changing the hd1,0).
Now my question is though;
I have a third IDE Hard Drive, which has all my windows files on it. What's the best and safest way to install that to only be found by my Windows OS?
Currently my Ubuntu 6.10 is on IDE1 and Windows on IDE2, I have a third though a PCI adapter that I was planning on attaching the "storage" HDD on.
Any suggestions?
Thanks in advance,
Village
BarFly
December 6th, 2006, 04:59 PM
Wow, that works nicely. Thank you all. I've had the cover off of my computer for quite some time, thinking I will figure out how to dual boot from two HDD's... Never had the time until now when I am sick as a dog and not at work.
strange_cathect
January 11th, 2007, 10:43 PM
A little help?
I followed these directions for dualbooting Ubuntu and XP on two separate Hard Drives. But it hasn't been successful.
1. I disconnected the HD with XP on it and hooked up the new drive using the cables from the original drive. Ubuntu installed perfectly. I updated and was able to boot into Ubuntu without problems.
2. I then proceeded to edit the menu.lst file as directed in this post. I used cut-and-paste.
3. On reboot, I initially got an error message that the "drive doesn't exist."
4. Now my machine boots to windows every time after briefly flashing Grub on startup. I am unable to boot into Ubuntu.
Any ideas?
confused57
January 11th, 2007, 11:18 PM
A little help?
I followed these directions for dualbooting Ubuntu and XP on two separate Hard Drives. But it hasn't been successful.
1. I disconnected the HD with XP on it and hooked up the new drive using the cables from the original drive. Ubuntu installed perfectly. I updated and was able to boot into Ubuntu without problems.
2. I then proceeded to edit the menu.lst file as directed in this post. I used cut-and-paste.
3. On reboot, I initially got an error message that the "drive doesn't exist."
4. Now my machine boots to windows every time after briefly flashing Grub on startup. I am unable to boot into Ubuntu.
Any ideas?
Did you change the timeout in your menu.lst to something like 10(seconds), the default is 3 seconds and you definitely do not want to reduce the time?
If you have enough time when grub briefly flashes, press your arrow down key...hopefully, this will highlight your Ubuntu entry.
The only thing I can think is to make sure your hard drive jumper settings are correct and go into your bios setup & make sure both drives are set to "auto" or "enabled".
Haupt
January 13th, 2007, 12:56 AM
I have 2 SATA HD's in my laptop(HP dv8000t). and i dont know how master and slave works with my setup. My windows is on my primary drive and my secondary is only formatted so far to NTFS. and because its a laptop i dont what would happen if i replace the primary drive with the secondary. Plz help.
confused57
January 13th, 2007, 03:20 AM
I have 2 SATA HD's in my laptop(HP dv8000t). and i dont know how master and slave works with my setup. My windows is on my primary drive and my secondary is only formatted so far to NTFS. and because its a laptop i dont what would happen if i replace the primary drive with the secondary. Plz help.
See reply #22 by bulldog, in this thread:
http://www.ubuntuforums.org/showthread.php?t=275728&page=3
He was able to set his system up without disconnecting his Windows drive by setting his bios to boot first from the drive he was going to install Ubuntu on. You "might" be able to do this by setting your 2nd hard drive to boot first(drive you're going to install Ubuntu on). You're right, master & slave doesn't apply to SATA drives, you just have SATA controller 1 with Windows and controller 2 with your other hard drive. If you want to be absolutely sure that your Windows mbr isn't overwritten, you'd probably need to disconnect your Windows drive...you may be able to leave your other drive connected, as is, select in bios to boot first to this drive & install Ubuntu on it. Add your Windows entry in /boot/grub/menu.lst, reconnect your Windows drive & bootup with your Ubuntu drive as the first boot device.
If you want to PM bulldog about his method, feel free...he's quite knowledgable with dualbooting and is willing to assist anyone with their setup.
I assume you're using the desktop live cd to test your system, if you are, you might want to boot up the live cd, open a terminal(Applications---Accessories---Terminal),enter:
sudo fdisk -l
The -l is a small "L".
If Ubuntu detects both your SATA drives, you shouldn't have any problems installing.
The biggest problem Ubuntu has had in the past is detecting some of the newer SATA controllers, but that is improving in newer versions of Ubuntu with newer kernels.
The desktop live cd automatically installs grub to the mbr(if the drive you're installing Ubuntu on is the first boot device, it "should" install on this drive), however the alternate install cd allows you to select where to install grub(mbr, floppy, partition)...I've always installed with the alternate cd.
If you want to consider the alternate cd, here's an excellent guide(with screenshots):
http://users.bigpond.net.au/hermanzone/
I know this a lot of info to digest and feel free to ask if anything is unclear.
If you leave your Windows drive connected during install and it's mbr gets overwritten, it can be repaired:
http://www.users.bigpond.net.au/hermanzone/p18.htm
Good Luck...
Added: The results of "sudo fdisk -l" should show your SATA drive connected to controller #1 as sda, and controller #2 as sdb...if you select in bios to boot first to the drive on controller #2 when installing Ubuntu, it will be designated hd0 in grub and the Windows drive on #1 will be hd1.
If you switched the drive you want to install Ubuntu on to controller #1, set it in your bios to boot first, then sda would be hd0, and sdb with Windows would hd1...sda and sdb just refers to which SATA controller the drive is connected to, but whichever drive is selected to boot first is hd0 in grub...
Haupt
January 13th, 2007, 02:55 PM
My bios only has Notebook Hard Drive as the hard drive in boot order but it sees my other hard drive other places. so i cant change my boot order. next week i'll try taking out the windows HD. Thanks for the help!! :)
UPDATE**
i tried to install today but it keep freezing right when it loading the kernel and my computer started making odd noises. :( Plz help.
tankhead
January 17th, 2007, 01:10 PM
Hello,
This sounds fantastic, its exactly what I have been looking for!
I am still learning so my trouble shooting skills are not there yet.
I have set up both my Xubuntu and Win 2000 Pro IDE drives as Master and Slave, respectively.
I have copied and pasted into the script into the menu.lst the following:
title Windows 2000
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
but whenever i select the Win2000Pro at start up my screen goes blank, but the monitor does not to to rest mode.
And it does nothing....
If i go into the bios and reslect either of the drives they will boot perfectly.
Does this not work with Xubuntu or win2000 for any reason? or because they are both IDE drives?
Any suggestions?
Many thanks!
confused57
January 17th, 2007, 02:46 PM
Hello,
This sounds fantastic, its exactly what I have been looking for!
I am still learning so my trouble shooting skills are not there yet.
I have set up both my Xubuntu and Win 2000 Pro IDE drives as Master and Slave, respectively.
I have copied and pasted into the script into the menu.lst the following:
title Windows 2000
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
but whenever i select the Win2000Pro at start up my screen goes blank, but the monitor does not to to rest mode.
And it does nothing....
If i go into the bios and reslect either of the drives they will boot perfectly.
Does this not work with Xubuntu or win2000 for any reason? or because they are both IDE drives?
Any suggestions?
Many thanks!
It should work fine with Xubuntu, you could try rootnoverify (hd1,0), instead of root (hd1,0).
Also, you might want to post the output of:
sudo fdisk -l
The -l is a small "L".
This will show your partition tables & might help troubleshoot your problem.
tankhead
January 17th, 2007, 08:58 PM
Thank you for the reply,
I tried the rootnoverify change with no change in behaviour.
here is the fdisk -l output:
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 9642 77449333+ 83 Linux
/dev/hda2 9643 9729 698827+ 5 Extended
/dev/hda5 9643 9729 698796 82 Linux swap / Solaris
Disk /dev/hdb: 30.0 GB, 30020272128 bytes
255 heads, 63 sectors/track, 3649 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 3649 29310561 7 HPFS/NTFS
Thank you,
Peter
confused57
January 17th, 2007, 10:41 PM
The Windows entry in grub "should" boot your Windows drive, based on the output of "sudo fdisk -l". Make not make a difference, but you can try rearranging the lines in the entry:
title Windows 2000 Pro
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
savedefault
makeactive
chainloader +1
then maybe try adding boot on a separate line below chainloader +1 , if the above doesn't work.
The only other things I can think of would be to make sure your slave drive jumper is correct(which it probably is, since you're able to boot from bios) and maybe check in bios for the slave drive settings(auto or enabled)...I'm just grasping at straws here, because the grub entry looks OK to boot Windows.
I'll check back if I can come up with something else...if you can't get Windows to boot from grub, you might want to start a new thread with a descriptive title in the Installation & Upgrade section of the forum.
Dominicus
January 20th, 2007, 10:30 PM
Tried this method tonight but I'm having problems with it. I believe I'm almost there. When GRUB redirects to the WinXP boot, I get:
Error 25: Disk read error
I then land on the Grub menu and can only boot to Ubuntu.
My fdisk -l output:
Disk /dev/hda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1216 9767488+ 83 Linux
/dev/hda2 1217 4255 24410767+ 83 Linux
/dev/hda3 24079 24321 1951897+ 82 Linux swap / Solaris
/dev/hda4 4256 24078 159228247+ 83 Linux
Partition table entries are not in disk order
Disk /dev/hdb: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 19929 160079661 7 HPFS/NTFS
My menu.lst snippet to load XP is per top instructions:
title Windows XP
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
Here's one that caught my attention: the device.map only has one entry:
(hd0) /dev/hda
The fstab file also seems to be missing the WinXP hdb entry:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hda1
UUID=1d1f812f-d99a-4c9e-a315-105d374eae4d / ext3 defaults,errors=remount-ro 0 1
# /dev/hda2
UUID=86b9a0aa-ed38-4179-b991-da9c9477da22 /home ext3 defaults 0 2
# /dev/hda4
UUID=1e1fa41b-1c1a-48c7-b79f-daddcbfaccef /storage ext3 defaults 0 2
# /dev/hda3
UUID=06254dcd-6b2d-4bcd-991a-088728f48c17 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hdd /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/ /media/floppy0 auto rw,user,noauto 0 0
Is there a way to trigger Edgy to load the WinXP slave hard drive?
confused57
January 20th, 2007, 10:53 PM
Here's a description of grub error 25 & possible solutions:
http://users.bigpond.net.au/hermanzone/SuperGrubDiskPage.html#25
Checking in bios that the slave drive controller is "enabled" or set to "auto", as well as suggestions in the above link, would be the first things that you might need to check.
If none of the above works, you might need to make sure your slave drive jumper is set correctly & your IDE cable is seated properly.
Dominicus
January 20th, 2007, 11:14 PM
I'm still trying to figure this out. I'll give a read to your suggestion.
If I boot to Ubuntu, I'm able to mount the WinXP drive and access the files with no problem. My BIOS has this slave drive properly identified (i.e. lists as "Hard Disk" and reads the correct capacity and model). The drive jumper is set to C-Sel to allow the BIOS to map as slave following its position in the cable.
So, I don't think this is an access problem, at least not while in Ubuntu.
Thanks for any additional thoughts. Dominicus
Dominicus
January 20th, 2007, 11:33 PM
I tried changing the "boot" part to "bootnoverify" and I did get different failure. Now Grub errors out with:
Error 5: Partition table invalid or corrupt
Hitting any key kicks me to the Grub menu and I'm able to boot Edgy. Darn! I'm writing from Edgy now and was able to permanently mount the WinXP hard disk to /media/windows, so Linux can in fact access this drive, but Grub doesn't seem to be able to pass the booting batton to load Windows.
Dual booting by switching IDE cables was not my idea of fun...Dominicus
confused57
January 21st, 2007, 01:31 AM
You might want to try to boot Windows, using the Super Grub Disk(approx 1 Mb download):
http://users.bigpond.net.au/hermanzone/SuperGrubDiskPage.html
There's also a list of grub errors listed in this link that may be helpful.
The Super Grub Disk is a useful utility tool to have around for booting problems.
Add: You did mean rootnoverify (hd1,0), instead of bootnoverify?
I wouldn't worry about hdb not showing in your device.map, since your slave drive wasn't connected when you installed Ubuntu.
Dominicus
January 21st, 2007, 06:00 AM
I moved my WinXP hard disk to its original spot as master drive. I was able to boot into XP with no problems. Doing some fresh data backups before continuing further with the troubleshooting.
Yes, I added the suffix 'noverify' as explained in some posts and the Grub error changed from "Error 25" (disk read error) to "Error 5" (partition table invalid or corrupt). Neither these errors make sense to me: if Grub can't read the XP drive, why can Ubuntu mount it? If the partition table is corrupt, why can I boot perfectly?
I just updated my BIOS just in case.
Another thing I noticed was Grub had four entries for Linux boot options (instead of the normal 2)
-WindowsXP
-linux-xxxxxxx-386
-linux-xxxxxxx-386 (safe mode)
-linux-xxxxxxx-generic
-linux-xxxxxxx-generic (safe mode)
-memtest...
Selecting the "386" option will actually boot correctly. Taking the "generic" path results in a broken X-server. I'll keep searching for solution!
Dominicus
January 21st, 2007, 08:30 AM
Several repairs, even re-installed Edgy into single partition. This removed the xxx-386 entries I had in the Grub menu, but Grub cannot get past this "Error 25"
I read about the Super Grub Disk, but I couldn't find enough documentation for me to trust myself not to mess my WinXP instead of fixing the boot issue. I believe the beauty of this method was you pull the XP drive out of the equation while you fiddle with Ubuntu, then just bring XP at the end with no change. Super Grub disk requires both hard drives installed for troubleshooting.
This is quite frustrating, what next?!
UPDATE: I did venture creating a Super Grub disk and trying to setup the Windows boot from slave position, but it also reports "Error 25".
UPDATE2: Gave up on this dual-boot setup. Grub did not cooperate. I guess I'll never know what was the issue causing the error. Here's what I ended up doing:
-Switched back the hard drives with WinXP as master and Linux as slave
-Backed up the MBR (http://users.bigpond.net.au/hermanzone/p13.htm#mbr_dd) of my XP master drive (just in case)
-Ran the regular Edgy desktop install CD (not the alternate). Gparted detected both drives and all the partitions I had done before with no problems
-Mapped the master NTFS drive to be mounted as /media/windows and made sure to uncheck format flag
-Mapped the slave partitions, and checked to format both '/' and '/home' partitions
-Grub got installed into the XP MBR and alas! a clean dual boot
Now I'm up...I can finally close the PC case and move to customizing the install.
I've got a dual-boot system.
Village
January 24th, 2007, 12:01 PM
Hi
I've got a Dell Dimension 4550 and I seem to be having problems. I've got two HDDs, one with Ubuntu and one with Windows. Currently Ubuntu is in HD1 and Windows HD2.
I've followed what you say about your GRUB menu and I've switched the drive to Auto.
I've been trying to set it up so that Ubuntu boots first and I can use Windows for Games etc, when I select it.
Now when I switch my computer on it now pops up with;
Primary Had disk drive 1 not found
strike the F1 key to continue, F2 to run the setup utility
I hit F1 and I get to the GRUB, which can boot Ubuntu but if I try to boot Windows I still get the Error 21: Selected disk does not exist message.
Any suggestions?
Thanks, is it just the 4550 that is like this?
Village
Village
January 26th, 2007, 04:00 PM
Ok, thought I would post my sudo fdisk -l if it helps.
Disk /dev/hda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 23944 192330148+ 83 Linux
/dev/hda2 23945 24321 3028252+ 5 Extended
/dev/hda5 23945 24321 3028221 82 Linux swap / Solaris
alex@alex-desktop:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hda1
UUID=8601ca78-c262-4017-b686-39f49c8d933d / ext3 defaults,errors=remount-ro 0 1
# /dev/hda5
UUID=6ba7751a-3ff5-41f6-8223-9dc22cc1c196 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hdd /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/ /media/floppy0 auto rw,user,noauto 0 0
Any advice, I'm pulling my hair out!
confused57
January 26th, 2007, 05:57 PM
Ok, thought I would post my sudo fdisk -l if it helps.
Any advice, I'm pulling my hair out!
Was your hdb with Windows connected when you did fdisk -l?
If it was, then you might want to check the jumper settings & make sure the IDE connector is fully & correctly inserted, as well as, the power connection.
I don't really know what else to look for, setting the slave drive controller to "auto" in bios corrected the grub error 21 for me...you might want to start another thread in the Beginner's section & maybe someone more experienced with computers can give you a solution...Good Luck.
gorilla_king
January 26th, 2007, 09:11 PM
thanks for this guide. i have been using ubuntu solely for the last year and a half and started get butt loads of buissness and need a windows machine to run some of the progs cause vmware was too slow and wine was unrealiable. so i added a 80 gig hard drive i had laying around. so thanks i had success with editing grub the normal way.
Gorlist
January 27th, 2007, 06:14 AM
Hi! right I also posted this else where on the forums encase its not directly Grub related...
Anyhow ive edited my Grub menu as suggested in the first post, rebooted and it loads fine, displays Windows XP and Ubuntu.. I can then boot into Windows with no problems, though if I select Ubuntu it comes up with:
/bin/sh: can't access tty ; job control turned off
(Along with a number of file or root errors above?)
If I then turn off the PC, unplug the Windows driver and restart, select Ubuntu from the Grub load it will then goes in fine without any issues.
Both harddrives are SATA.
Couple of side question:
- Grub doesn't seem to be work with my USB wireless Keyboard (though Legacy is turned on in Bios, & keyboard works fine for Bios.)
- How can I change the order displayed on the Grub, and remove old Kernals (I have read up on this though found it confusing).
Any suggestions would be greatly appreciated!
geek_Man
January 27th, 2007, 01:58 PM
<snip />
- How can I <snip /> remove old Kernals (I have read up on this though found it confusing).
Just put double hashes and a whitespace to the left of all the old kernel stuff. That should make it all disappear, but still be in the file in case you need it.
Michl
February 22nd, 2007, 12:47 PM
Alexander Grundner on:
http://www.ehomeupgrade.com/entry/2622/how-to_dual-boot_ubuntu
has a set of very easy instructions for ubuntu on the master and windows on the
slave that does not involve any editing of the menu.lst file. He writes:
"When you boot up the PC for the first time you'll see the GRUB boot loader shown here. Ubuntu is selected by default and gives you the option to scroll down and boot into Windows if you prefer.
Side note: Ubuntu is actually smart enough during the install process to detect you have Windows installed on your SLAVE drive and configures GRUB for you."
Later he writes that nothing is changed on the windows drive and if you want to
boot into windows directly without grub, you just make that disk the master.
Any views on this? I am just getting ready to install ubuntu on two disks, want to
make linux first, but don't want to change anything on the windows disk. ANd
of course, want this to be smooth as silk. :lolflag:
Michl
confused57
February 22nd, 2007, 04:03 PM
Alexander Grundner on:
http://www.ehomeupgrade.com/entry/2622/how-to_dual-boot_ubuntu
has a set of very easy instructions for ubuntu on the master and windows on the
slave that does not involve any editing of the menu.lst file. He writes:
"When you boot up the PC for the first time you'll see the GRUB boot loader shown here. Ubuntu is selected by default and gives you the option to scroll down and boot into Windows if you prefer.
Side note: Ubuntu is actually smart enough during the install process to detect you have Windows installed on your SLAVE drive and configures GRUB for you."
Later he writes that nothing is changed on the windows drive and if you want to
boot into windows directly without grub, you just make that disk the master.
Any views on this? I am just getting ready to install ubuntu on two disks, want to
make linux first, but don't want to change anything on the windows disk. ANd
of course, want this to be smooth as silk. :lolflag:
Michl
Yes, this should work, Ubuntu would be hd0(the "master" drive) and does add an entry to boot Windows without affecting the Windows mbr...when I first wrote the "howto", I was quite unfamiliar with Ubuntu or Linux and I wanted to be absolutely sure the Windows mbr wasn't overwritten...later on, I found out that the method that you found in the link should work...I've read of other people reporting this has worked for them. Ubuntu installer will automatically install grub to the hd0 mbr(Ubuntu), unless you choose otherwise, which in your case, you'd go with hd0.
As long as you've selected your Ubuntu drive as the first boot hard drive in bios(which would make it hd0), you shouldn't have any problems.
Don't try it, but you could probably install Ubuntu to your slave drive & if it's set in bios as your first booted hard drive, it "should" be recognized as hd0, even though it's connected to hdb. That's where people get into trouble installing on a pc with multiple hard drives, especially if there is a mix of IDE & SATA...Ubuntu may be installed on the 3rd hard drive set up to boot in bios, but grub is automatically installed to hd0, whichever hard drive is set to boot first. The Ubuntu installer is quite "adept" at detecting other OS and including entries in grub to boot them...you can't just go changing boot order, or switching hard drive positions after Ubuntu is installed and expect a system to boot...changes can be made to grub, but you have to "jump through hoops" & understand how grub works to get everything reconfigured in grub.
Thanks for bringing this up, let us know how your install went...good luck.
Alexander Grudner's new location for his how'to, thanks to ssican(post #150):
http://www.alexandergrundner.com/2007/12/17/how-to-dual-boot-windows-and-ubuntu-with-two-drives/
Michl
February 25th, 2007, 07:34 PM
Well, I am installed with ubuntu on the master. This part seems to
work. But now I am running into many new questions. Need to
take it slow.
Michl
beachreader
April 5th, 2007, 07:23 PM
Does any one know if the above code for a dual boot involving 2 hard drives win 98 (master) and lunix. thanks
beachreader
April 5th, 2007, 07:26 PM
will this dual boot solution also work with WIN 98 ? thks
confused57
April 5th, 2007, 11:12 PM
Does any one know if the above code for a dual boot involving 2 hard drives win 98 (master) and lunix. thanks
Yes, the mapping commands will work just as well with win98...You can have Ubuntu as master, set it to boot first in bios before installing(you can disconnect the Windows drive when you install, if you want to be sure)...or set your slave to boot first in bios, install Ubuntu to the slave drive.
tech_tronic
April 16th, 2007, 07:33 PM
Whats up, this is my first post and i've been trying to search for someone with a situation similar to my own. Basically my Windows drive is my 3rd Master and my Ubuntu drive is my 4th Master, both SATA drives... When i installed Ubuntu i disconnected my Windows drive to avoid grub overwriting the mbr and everything was successful. Today i plug my Windows drive back in and i can boot to that drive just fine using bios selection menu with both drives connected but not Ubuntu, when i disconnect the Windows drive again i can boot to my Ubuntu drive just fine...
With both drives connected Ubuntu starts to load then i get a black screen with this message
/bin/sh: can't access ttyl; Job control turned off
(initramfs)
Sorry if this is a primitive question but im so close to having everything work after the past two weeks with even worse luck, this is the farthest i've gotten. I would like to achieve this using bios without having to mess with grub because thats how i destroyed my windows partitions before, and fixmbr of course did not work for me, thats why i decided to get a second drive solely for Ubuntu, I appreciate any input anyone has to help me out, Thanks and glad to be a part of the community
Here is an error message....i think the drive is supposed to be mounted where my windows drive currently is since it was unplugged during install
mounting /dev/sda1 on /root failed: no such device
mounting /root/dev on /dev/ static /dev failed: no such file or directory
mounting /sys on /root /sys failed: no such file or directory
mounting /proc on /root /proc failed: no such file or directory
target file system doesn't have /sbin /init
confused57
April 16th, 2007, 09:16 PM
I just happen to be trying to help someone else in very much the same situation:
http://ubuntuforums.org/showthread.php?t=409355
I believe your Ubuntu drive is identified differently when your Windows drive is connected vs. when your Ubuntu drive is connected by itself. See my last reply in the above thread.
With both your drives connected, boot up the live cd, open a terminal, enter:
sudo fdisk -l
the -l is a small "L"
this should show how your Ubuntu & Window's drives are identified with both connected.
I'll repeat what I suggested in the thread: remove the live cd, boot your pc, at the grub menu, highlight your Ubuntu entry, press "e", then in the kernel line change the root to whatever "fdisk -l" returns(e.g. root=/dev/sda1), then press "b" to boot. This change is temporary, but can be made permanent by editing your /boot/grub/menu.lst & changing your #kopt line in menu.lst:
http://users.bigpond.net.au/hermanzone/p15.htm#kopt
Added: You may want to burn a copy of the Super Grub Disk:
http://users.bigpond.net.au/hermanzone/SuperGrubDiskPage.html
the SGD download page has been down the past few days, so this may not currently be an option.
Another possiblity, which may or may not work, is to switch the SATA controller connections for the hard drives when both drives are connected?
tech_tronic
April 16th, 2007, 10:38 PM
Confused thanks for the info, i had intentions of switching the sata cables around first before i read your post and decided to give it a shot after you suggested it....well it worked! im guessing because now the Ubuntu drive thinks or is sda1 again(3rd Master)which is where it needs to be mounted in order to boot correctly...each drive connected individually would be sda1 then once i reconnected the windows drive it pushed the ubuntu to sdb1? or whatever, thats why i got the error message.....I'm running xp and vista on one drive and Ubuntu on the other everything is working, it seems i can boot all three of my OS's finally w/o having to reconnect drives, Thanks for your help.
Signpost
April 17th, 2007, 12:00 AM
Been reading over this thread and others like it trying to get as much information as possible before I install Ubuntu. Unfortunately just about every thread I read refers to one SATA and one IDE drive. I have 2 SATA drives, 1 320gb that has windows xp installed and an 80gb that has a 2GB Extended Partition (at the end of the unallocated space) used for a windows pagefile. I plan to use the first section of the 80gb drive for a Ubuntu install, and maybe a small FAT32 partition for swapping files between windows and linux.
Currently my 320gb is on SER0 and the 80gb is on SER1 connections on the mobo. Is the method in the OP still the method I should follow or is there something else I have to do for SATA drives?
I can't wait till Thursday so I can get the new distribution and finally give Linux a try.
confused57
April 17th, 2007, 12:59 AM
Been reading over this thread and others like it trying to get as much information as possible before I install Ubuntu. Unfortunately just about every thread I read refers to one SATA and one IDE drive. I have 2 SATA drives, 1 320gb that has windows xp installed and an 80gb that has a 2GB Extended Partition (at the end of the unallocated space) used for a windows pagefile. I plan to use the first section of the 80gb drive for a Ubuntu install, and maybe a small FAT32 partition for swapping files between windows and linux.
Currently my 320gb is on SER0 and the 80gb is on SER1 connections on the mobo. Is the method in the OP still the method I should follow or is there something else I have to do for SATA drives?
I can't wait till Thursday so I can get the new distribution and finally give Linux a try.
One option might be to leave your hard drives connected as they are, but in bios set your 80gb drive to boot before your 320gb Window's drive before you boot up the live cd to install. By setting your 80gb drive to boot before your 320gb, grub should recognize this drive as (hd0) & install grub to your 80gb mbr and it "should" automatically add an entry to boot Windows.
The default is to install grub to (hd0), which should be your 80gb drive(if you reset your bios hd boot order)...you can always type in /dev/sdb as the location to install grub, this is assuming the installer recognizes your 80gb drive as sdb.
Signpost
April 19th, 2007, 05:17 PM
Well, I have tried to install Feisty and haven't had much success. I have the following partitions setup on my 80gb SATA to install Feisty.
Partition 1 - 62GB Ext3 Mounted to /home
Partition 2 - 10GB Ext 3 Mounted to / set as Active Partition
Partition 3 - 1.5GB Swap
Partition 4 - 2.5GB NTFS Windows Pagefile.
I go through the entire setup steps, no matter what I set my boot order in my BIOS the installer sees my 320gb as sda and my 80gb sdb. At the final confirmation screen I click the advanced button and change the Boot Installer location from (hd0) to /dev/sdb and then let it install. After the install it starts to restart, the bar lowers then when its almost about to restart it ejects the disc then says to remove the disc and hit enter. When I hit enter nothing happens so I have to hard reset with the reset button on my tower. After the restart (computer still set to boot first from 80gb; boot order is CD, 80gb, 320gb) the GRUB menu appears and I have all the grub options available plus Windows listed at the bottom. When I click any Ubuntu option it says it is unable to mount the partition, and when I click Windows it says invalid exe or something similar. My only choice is to restart the computer and change BIOS to boot from 320gb first and load Windows.
Anyone have any idea what is wrong or what I am doing wrong, or even what I can do to fix it?
confused57
April 19th, 2007, 09:25 PM
Well, I have tried to install Feisty and haven't had much success. I have the following partitions setup on my 80gb SATA to install Feisty.
Partition 1 - 62GB Ext3 Mounted to /home
Partition 2 - 10GB Ext 3 Mounted to / set as Active Partition
Partition 3 - 1.5GB Swap
Partition 4 - 2.5GB NTFS Windows Pagefile.
I go through the entire setup steps, no matter what I set my boot order in my BIOS the installer sees my 320gb as sda and my 80gb sdb. At the final confirmation screen I click the advanced button and change the Boot Installer location from (hd0) to /dev/sdb and then let it install. After the install it starts to restart, the bar lowers then when its almost about to restart it ejects the disc then says to remove the disc and hit enter. When I hit enter nothing happens so I have to hard reset with the reset button on my tower. After the restart (computer still set to boot first from 80gb; boot order is CD, 80gb, 320gb) the GRUB menu appears and I have all the grub options available plus Windows listed at the bottom. When I click any Ubuntu option it says it is unable to mount the partition, and when I click Windows it says invalid exe or something similar. My only choice is to restart the computer and change BIOS to boot from 320gb first and load Windows.
Anyone have any idea what is wrong or what I am doing wrong, or even what I can do to fix it?
What you can try is boot first to your Ubuntu drive, highlight your Ubuntu entry, press "e", then change the line with root to (hd0,x), then press "b" to boot...this is only temporary if it works. It can be made permanent in your boot/grub/menu.lst & an entry similar to the one in my first post may boot your Window's drive.
You'll also need to change the #groot line in your menu.lst(if the above works):
http://users.bigpond.net.au/hermanzone/p15.htm#groot
I'm not sure what's going on with grub recognition of your hard drives, unless Feisty id's drives differently from previous versions of Ubuntu.
Signpost
April 19th, 2007, 11:27 PM
Well, I got it working, I just moved the 80gb to SER0 and the 320gb to SER1 on my mobo and set 80gb to first boot. Everything is up and running. Now to figure out how to get sound and network access :lolflag:
tech_tronic
April 21st, 2007, 10:13 PM
Hey Signpost are your OS's time synchronization off at all?
Signpost
April 22nd, 2007, 11:15 PM
not that I have noticed. If they are its only a few seconds.
tech_tronic
April 24th, 2007, 01:26 AM
If i boot into an OS consistently the time remains constant but if i boot into ubuntu then back to windows or visa versa the time and date is off...? i think its because i switched the drives around on the mobo?? anyone got any ideas as to what could be causing it? Thanks
confused57
April 24th, 2007, 08:48 AM
If i boot into an OS consistently the time remains constant but if i boot into ubuntu then back to windows or visa versa the time and date is off...? i think its because i switched the drives around on the mobo?? anyone got any ideas as to what could be causing it? Thanks
I had the same problem switching between Windows & Ubuntu, this solved it for me:
http://ubuntuforums.org/showpost.php?p=698200&postcount=5
simon303
May 4th, 2007, 08:18 AM
I followed these instructions
First, disconnect your Windows drive, then connect the drive you want to install Ubuntu on as the primary IDE master drive. After installing Ubuntu, allow the updater to install all the necessary updates, this may take awhile. Shutdown your computer and reconnect your Windows drive as slave, then restart, your computer will boot into Ubuntu.
You will need to edit your menu.lst file:
(Open a terminal, copy & paste one line at a time, press "enter" each time)
cd /boot/grub
sudo cp menu.lst menu.lst_backup
gksudo gedit menu.lst
The first line changes to the grub directory, the second line makes a backup of your menu.lst file, and the third line opens the menu.lst file using the gedit text editor.
Copy and paste the following lines above the line
###BEGIN AUTOMAGIC KERNEL LIST
title Windows XP
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
Note: If grub gives an error when rebooting, you can try rootnoverify (hd1,0) instead of root (hd1,0) in the second line.
To automatically display the grub menu at bootup, find the line
hidden
and replace with
#hidden
To adjust the time grub is displayed at bootup, change the timeout(in seconds)...I'd suggest 10 seconds(default is 3).
Quit and save settings.
Now i have a computer that should boot with either winXP or ubuntu (winXP by default)
But it only boots ubuntu, when i try to boot winXP it goes to the loading windows screen, then very rapidly flashes a blue screen error (at least it looks like a blue screen error) then reboots the computer
any ideas??
confused57
May 4th, 2007, 09:55 AM
Post the output of:
sudo fdisk -l
the -l is a small "L"
and the boot entries of:
gedit /boot/grub/menu.lst
Did you try rootnoverify, instead of root...and possibly remove the savedefault line? Does your Window's drive boot OK, if selected to boot first in bios when still connected as slave?
simon303
May 4th, 2007, 01:34 PM
i tried rootnoverify, when i unplug the linux drive and boot XP off its drive (still connected as slave) it boots XP fine
confused57
May 4th, 2007, 02:01 PM
i tried rootnoverify, when i unplug the linux drive and boot XP off its drive (still connected as slave) it boots XP fine
Did "sudo fdisk -l" show your Windows on the first partition? Have you checked in bios with both hard drives connected to see if both drives are recognized correctly & enabled?
You might want to download the Super Grub Disk & see if it will boot your Windows(both drives connected):
http://users.bigpond.net.au/hermanzone/SuperGrubDiskPage.html
Other than root possibly pointing to the wrong partition or something in bios, I'm not sure what's going on with your system.
simon303
May 5th, 2007, 09:34 AM
"sudo fdisk -l" does show the windows disk as hdb
It all seems to be working now, I disconnected the ubuntu disk and booted windows off the windows disk leaving it set as primary and it booted fine. Then reconnected the ubuntu disk and booted windows using the grub menu and its working fine. Think windows just needed to 'get used to' running off a slave.
Only problem is that when in one os i cant get at the other's disk
fallencyi
July 4th, 2007, 10:21 PM
I just wanted to say thank you to everyone who has posted helpful info in this thread & confused57 for starting it.
I have been beating my head against a wall trying to figure this out. I found this thread & it for me with minor changes to the menu.lst file for the drive that windows sits on.
Thanks.
Yellowdog428
July 20th, 2007, 01:51 AM
I just want to thank you!
I am new to Linux/ubuntu and after installing on a partition on my laptop I wanted to add it to a old Maxtor 40 Gig I had around on my desktop and it worked FLAWLESSLY!!!!!
Followed the instructions on your first post and I now have Ubuntu on my desktop!
Thanks again!
Cheers!
Shampyon
August 11th, 2007, 11:14 PM
I'm about to buy a second SATA HDD. I already have Feisty installed on my current drive, and I want to install a stripped down gaming-specific version of XP on the new drive. Is there anything I need to know before I plug in the new drive and install XP, or will the instructions in the OP be all I need?
confused57
August 12th, 2007, 01:31 AM
I'm about to buy a second SATA HDD. I already have Feisty installed on my current drive, and I want to install a stripped down gaming-specific version of XP on the new drive. Is there anything I need to know before I plug in the new drive and install XP, or will the instructions in the OP be all I need?
Yes, I would think so...I personally think it would be advisable to disconnect your Feisty drive and connect your drive you're installing Windows to the SATA1 controller(the one I assume the Feisty drive is now connected). Once you get Windows installed, updated, & configured, then you should be able to reconnect your Feisty drive to the SATA1 controller and your Window's drive to the SATA2 controller.
Then you should be able to follow the directions in the OP to add an entry to boot Windows from grub. Good luck.
Shampyon
August 13th, 2007, 06:28 PM
Thanks for the help. It's all set up now, ready to rock! Now I've got my loverly pretty Feisty as my main OS with it's ever so pretty compiz desktop, and my stripped-back XP for running all those wonderful games at super-high quality.
inter4ever
August 15th, 2007, 07:57 PM
Hello
I am new to Ubuntu and finally decided to get it installed on my main PC. I am planing to have it installed in dual boot configuration with Windows XP. I have Windows installed on a HDD connected to SATA 1 port. I plan to install Ubuntu on a HDD connected to the SATA 3 port after unplugging the first HDD so that Ubuntu won't modify anything on that drive. After finishing the install I will be using my bios boot menu to choose which system to boot. Is that possible (I mean using the bios to boot windows and ubuntu and not GRUB). Also, if I needed to use GRUB, what should I modify to make it detect Windows after the install? (Again Windows is on SATA 1 and Ubuntu on SATA3).
My PC specifications are: Gigabyte 965p-DQ6 mobo, Intel Core 2 Duo E6600, Corsair 2GB (2*1GB) DDRII ram, WD Raptor 74 GB and Seagate 7200.10 250 GB.
Thanks in advance for answering my questions.
confused57
August 15th, 2007, 08:13 PM
Hello
I am new to Ubuntu and finally decided to get it installed on my main PC. I am planing to have it installed in dual boot configuration with Windows XP. I have Windows installed on a HDD connected to SATA 1 port. I plan to install Ubuntu on a HDD connected to the SATA 3 port after unplugging the first HDD so that Ubuntu won't modify anything on that drive. After finishing the install I will be using my bios bios boot menu to choose which system to boot. Is that possible (I mean using the bios to boot windows and ubuntu and not GRUB). Also, if I needed to use GRUB, what should I modify to make it detect Windows after the install? (Again Windows is on SATA 1 and Ubuntu on SATA.
My PC specifications are: Gigabyte 965p-DQ6 mobo, Inter Core 2 Duo E6600, Corsair 2GB (2*1GB) DDRII ram, WD Raptor 74 GB and Seagate 7200.10 250 GB.
Thanks in advance for answering my questions.
You shouldn't have any problem using bios to boot the different drives, but you may want to add an entry to your grub menu as outlined in the first post in this thread to boot Windows. Then you should be able to leave your computer setup to boot first to your Ubuntu drive, from which you can boot Windows...the Window's menu.lst entry described should work for your setup also.
nuddernuby
August 16th, 2007, 04:19 AM
My appreciation for the efforts by lha and confused57 for this very helpful contribution. I just completed a dual boot 2HDD installation successfully, following your clear instructions - and I'm a newbie!
Now I have one small question (and I hope I haven't missed it in the thread): Is it possible to switch the order, in other words, to have Ubuntu as the default instead of Windows?
Hope this is not an entirely idiotic question.
Rgds
confused57
August 16th, 2007, 08:45 AM
My appreciation for the efforts by lha and confused57 for this very helpful contribution. I just completed a dual boot 2HDD installation successfully, following your clear instructions - and I'm a newbie!
Now I have one small question (and I hope I haven't missed it in the thread): Is it possible to switch the order, in other words, to have Ubuntu as the default instead of Windows?
Hope this is not an entirely idiotic question.
Rgds
You might want to check out page index #2 on this site:
http://users.bigpond.net.au/hermanzone/p15.htm
You can change the default to 1, or move your Window's boot entry to the very bottom of your menu.lst.
nuddernuby
August 16th, 2007, 10:51 AM
Thank you, got it working.
freemantle3
August 20th, 2007, 02:42 PM
trying to dual boot with two drives ubuntu 7.04 & xp pro have followed instructions but when i go to boot up nothing but flashing cursor then it goes into win safe mode
screen. i am running on a dell demension 9150 with 2 250 gig sata drives. in the bios i can't change to master or slave, just has dvd rom in pata please help
jai_mantravadi
August 30th, 2007, 01:12 AM
What gives?
Basic story is that dual booting with Ubuntu on a second hard drive loading with grub worked, but now it doesn't after attempting to reload the windows MBR, and I can't figure out why. The post is a little long, but I've gone through this thread and attempted most of the fixes mentioned.
I have two hard drives (actually 3), a primary IDE which I boot windows off of, and a SATA which I boot ubuntu off of (the third HD is an IDE drive which is on a separate controller). It worked great with the default installation! At this point, my Ubuntu sata disk was secondary in boot order and grub came up (level 1.5) configured with Ubuntu as the default, and windows XP as the second option.
But, when I followed the excellent instructions for running my windows partition in vmware (http://oopsilon.com/Running-a-Windows-Partition-in-VMware), I wound up screwing up my setup. I thought that either a grub install or a fdisk /mbr to my windows partition would fix the problem, but I kept getting Grub errors 13 and 17, then after doing the restore to the MBR, I got it so it would boot straight to windows, but leaving me with no grub menu. So, using Super Grub Disk (live demo http://forjamari.linex.org/forum/forum.php?forum_id=340), I played around with making my NT partition non-bootable and hidden with gparted, and got more grub errors.
Finally I changed my boot order in BIOS... still no dice, Grub boot error 13 when I tried loading Ubuntu. So, I tried Super Grub Disk again, and it will pull up the Grub menu just fine so long as my Ubuntu disk is second in boot order. Or, if Ubuntu's disk is first in the bios, I can boot from grub by changing the disk in Grub's menu from hd1 to hd0 and it will boot Ubuntu (but windows won't boot off the menu). Can anyone tell me what I had on my Windows MBR/partition before I messed it up? Attached is an abbreviatied version of the "default" menu.lst that Ubuntu generated at first. Any help would be appreciated.
timeout 10
title Ubuntu, kernel 2.6.20-16-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=56725db0-7e79-4276-a0dd-972e9c1cd75f ro quiet splash
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault
title Other operating systems:
root
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
Any ideas of what I can change on my windows MBR and keep the menu.lst the same? At this point I'm more curious than frustrated, but I would like to show that I'm able to keep my windows MBR the same, and still boot using grub.
JawsThemeSwimming428
August 30th, 2007, 11:02 AM
I am thinking about dual booting Windows Vista Home Premium on a Velocity Micro Promagix system, running a Core 2 Duo 6850 with 2GB of 800MHz memory and a 400GB Hitachi HDD. I just got the system and after some KVM issues with USB I decided I can only have one machine. (I have a separate machine that I built that has been running Ubuntu for 2 years). The Ubuntu machine is running Feisty and my question is, if I take the HDD out of my machine that is running Feisty and put it in the Velocity Micro machine what instructions do I need to follow in order to dual boot and will it even work? Thanks.
jai_mantravadi
August 31st, 2007, 11:33 AM
Jaws,
Check out:
http://ubuntuforums.org/showthread.php?t=539316
for an index of other dual-disk boot setups.
On the other hand, I used the default Ubuntu guided partition (fresh SATA as second disk, windows IDE as first disk) and it worked fine for me. If you do that though, be careful about tweaking boot order in the bios though (hard drive boot order, putting a CD first or not doesn't seem to affect it) as you may need to reconfigure your grub install. If that happens. Also check out Super Grub Disk for afterwards if your boot configuration gets corrupted (its a live CD with an advanced set of Grub menus for booting off of exisiting drives with bad boot records).
I don't think too many people read the bottoms of these posts, so I'm going to repost looking for info on my setup. Good luck!
Jai
static_16
September 11th, 2007, 03:37 PM
Hey,
I know I should be able to work out what to do from all the other posts but i'm very new to linux and just can't get it to work.
Setup
I have four hard disks 3 ide disks on a raid controller pci card and a Sata hard drive. The sata drive is my main hard drive and has xp installed on it. I've installed ubuntu onto the primary master of ide drives on the pci card. For you to see here is my fdisk:
Disk /dev/hde: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hde1 * 1 4787 38451546 83 Linux
/dev/hde2 4788 4998 1694857+ 5 Extended
/dev/hde5 4788 4998 1694826 82 Linux swap / Solaris
Disk /dev/hdg: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdg1 * 1 30515 245111706 7 HPFS/NTFS
Disk /dev/hdh: 40.0 GB, 40027029504 bytes
255 heads, 63 sectors/track, 4866 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdh1 1 4866 39086113+ 7 HPFS/NTFS
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 38912 312560608+ 7 HPFS/NTFS
Disk /dev/sdb: 0 MB, 327680 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
Basically i've followed all the steps, ubuntu was installed without the sata drive plugged in so grub was definatly installed on the ubuntu drive. I've changed the grub file to what you specified, here is how it looks:
title Windows XP
rootnoverify (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
Basically if you could help me by telling me what the hd? number should be?
Thank you.
EDIT: The 320 GB is the xp drive that i can't point at
Grellin
September 11th, 2007, 10:15 PM
Ok, first, thanks for all the work that has been put into this thread.
I have followed the directions (I believe) but I still can't get it to work. My primary drive is a 250 gig dedicated to Ubuntu, and the slave drive is a 80 gig with Windows XP. With both connected I can log into Ubuntu without issue. When I select the Windows option from the GRUB menu the screen clears, and says, starting level 2 and does nothing. When I use just root, the machine just reboots when the Windows option is selected. With the rootnoverify it just gives that message and freezes.
Each drive will load independently and when I am in Ubuntu I can browse the windows file system. Here is my fdisk readout:
Disk /dev/hda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 30121 241946901 83 Linux
/dev/hda2 30122 30401 2249100 5 Extended
/dev/hda5 30122 30401 2249068+ 82 Linux swap / Solaris
Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 9455 75947256 7 HPFS/NTFS
And here is the menu.lst read out:
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=6d7d3e88-73d5-4fd8-a325-7ef827c2ad83 ro quiet splash
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=6d7d3e88-73d5-4fd8-a325-7ef827c2ad83 ro single
initrd /boot/initrd.img-2.6.20-16-generic
title Ubuntu, kernel 2.6.20-15-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=6d7d3e88-73d5-4fd8-a325-7ef827c2ad83 ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=6d7d3e88-73d5-4fd8-a325-7ef827c2ad83 ro single
initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
title Windows XP
rootnoverify (hd1,0)
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
And here is my device.map :
(hd0) /dev/hda
(hd1) /dev/hdb
(hd2) /dev/sda
Any suggestions that don't require major brain surgery? Thanks in advance. Also, I have read all the replies here and tried all of the suggestions that seemed relevant.
Grellin
September 11th, 2007, 10:22 PM
Oh, I just double checked the message it gives me and it was:
Starting up.
Loading Stage2
Then nothing. Just freezes, no keyboard, nothing.
confused57
September 12th, 2007, 12:19 AM
I've seen this problem, Windows rebooting when selected in grub, reported by other users; however, I haven't seen a definite solution.
I suspect there may be something in bios(or Windows) that is causing the problem. All of the info that you've provided look OK and Windows "should" boot with the entry that you have. It may not work, but the only thing I could suggest for you to try is to connect Ubuntu as slave and Windows as master...leave your Windows grub entry as it is and set your bios to boot first to your Ubuntu drive set up as slave. You may need to edit your device.map to reflect this change:
(hd0) /dev/hdb
(hd1) /dev/hda
The above may not work, since you're able to boot Windows on your slave controller when you set bios to boot it first, so it may not be worth the effort for you.
What is /dev/sda, I didn't see it listed in your "fdisk -l" output?
Sorry I can't help you more...if I find anything, I'll let you know.
Added: I have 2 different pc's set up this way and /dev/hda(Ubuntu on hda, Windows on hdb) is the only entry I have in my device.map:
(hd0) /dev/hda
thought I'd mention this, if you want to try changing your device.map before your try anything else.
Grellin
September 12th, 2007, 05:39 AM
Thanks for the reply. The /dev/sda is just a flash drive. I've tried removing it to see if it was causing conflicts but no go.
I'll try the device map trick. Can't hurt, right?:confused:
Grellin
September 12th, 2007, 05:54 AM
I was thinking after something you said about the BIOS. I rechecked the settings and found the problem I was having. I had my flash drive set as second boot option and the windows drive as the 3rd. Since there was no boot loader on the flash drive, that is where it was hanging up.
It all works now, I didn't have to remove or change any of the settings I have posted above. Thanks everyone for the insight and especially thanks confused57 for giving me the clue that worked. :guitar:
confused57
September 12th, 2007, 11:40 AM
I was thinking after something you said about the BIOS. I rechecked the settings and found the problem I was having. I had my flash drive set as second boot option and the windows drive as the 3rd. Since there was no boot loader on the flash drive, that is where it was hanging up.
It all works now, I didn't have to remove or change any of the settings I have posted above. Thanks everyone for the insight and especially thanks confused57 for giving me the clue that worked. :guitar:
Good job on your part finding the problem. With my 20/20 hindsight, I should have thought to have you check your bios boot order. I figured something was amiss when I saw your device.map with /dev/sda, which was not shown in your "fdisk -l"
static_16
September 12th, 2007, 07:03 PM
Hi,
Sorry to pester but i have everything working except for the grub, has anyone had any ideas?
cheers.
confused57
September 12th, 2007, 09:21 PM
Hi,
Sorry to pester but i have everything working except for the grub, has anyone had any ideas?
cheers.
It's no bother, it's just that I'm not familiar with Raid configurations. I'm assuming you're able to boot Ubuntu OK. If you are, you might try various Windows entries in grub & see if one of them will boot, for example:
title Windows XP on hd2
rootnoverify (hd2,0)
savedefault
makeactive
map (hd0) (hd2)
map (hd2) (hd0)
chainloader +1
and/or
title Windows XP on hd3
rootnoverify (hd3,0)
savedefault
makeactive
map (hd0) (hd3)
map (hd3) (hd0)
chainloader +1
What you could do is go ahead and add both the additional entries to very end of your menu.lst & try booting Windows...try (hd2) first, then (hd3)...good luck with it.
static_16
September 13th, 2007, 05:50 PM
It was hd3, everything works perfectly now. If it was just me I'd just have ubuntu but my girlfriend loves the sims so I've got to keep xp.
Anyway thanks again for all your help, cheers.
tomot
September 27th, 2007, 04:21 PM
Thanks for this great tutorial:
It finally gave me the confidence to try Dual Booting: (XP & Ubuntu)
For some reason Ubuntu allowed me to Edit grub using Terminal.
even though several times it had asked for "Password:" after I copy/pasted
sudo cp menu.lst menu.lst_backup into the Terminal window.
I was attempting the same Dual Booting procedure: (XP & Fedora)
on another HDD.
However this time I was unable to get passed the "Password:" entry.
my root password is not accepted, hence I have not been able to edit
grub.
HELP! :)
Sasquatch2000
November 5th, 2007, 12:01 PM
I remember years ago (over 10 years ago!), using a commercial program called "Partition Magic" I believe it was called. This allowed one to boot various Microsoft OS's, as well as (at the time), SCO unix.
I was hoping there would be something which worked as easily as that available now, and even preferably, something "open source" (RE:free).
Thanks.
CypherHackz
December 22nd, 2007, 01:32 AM
I have read the tutorial about how to make dual boot with two hard drives. Kinda understand how to do it but I have a question that I want to ask. Here is the situation.
I have two hard drives, HD1 (120Gb) and HD2 (320Gb). HD1 contains WinXP and HD2 is new so it is empty. I want to install Ubuntu in HD2 and will allocate 20Gb for it. Then what I will do is follow the tutorial steps and do the installation. M
y question is, how I can make my WinXP (which is HD1) as primary and not Ubuntu? In the tutorial it said make Ubuntu as primary so it will boot using the Grub. But I don't want that. I want to use WinXP boot menu selection. Is it possible?
Thank you.
-cypher.
confused57
December 22nd, 2007, 04:11 AM
I have read the tutorial about how to make dual boot with two hard drives. Kinda understand how to do it but I have a question that I want to ask. Here is the situation.
I have two hard drives, HD1 (120Gb) and HD2 (320Gb). HD1 contains WinXP and HD2 is new so it is empty. I want to install Ubuntu in HD2 and will allocate 20Gb for it. Then what I will do is follow the tutorial steps and do the installation. M
y question is, how I can make my WinXP (which is HD1) as primary and not Ubuntu? In the tutorial it said make Ubuntu as primary so it will boot using the Grub. But I don't want that. I want to use WinXP boot menu selection. Is it possible?
Thank you.
-cypher.
I don't have any experience with modifying the boot.ini to boot Ubuntu, but maybe this thread will help:
http://ubuntuforums.org/showthread.php?t=481240&highlight=boot.ini
WinGrub was mentioned in the thread, that might be an option:
http://users.bigpond.net.au/hermanzone/p9.html
Before you try installing Ubuntu, I would recommend burning a copy of the Super Grub Disk:
http://users.bigpond.net.au/hermanzone/SuperGrubDiskPage.html
If you have a floppy drive, a WinXP boot floppy might come in handy:
http://support.microsoft.com/kb/305595/EN-US/
CypherHackz
December 22nd, 2007, 07:00 AM
Thanks. I think I have found what I want. Here is the article that describe how to make it:
http://www.linux.com/articles/113945
And thanks to you for the nice article on how to dual booting WinXP and Ubuntu. ;)
-cypher.
confused57
December 22nd, 2007, 01:53 PM
Thanks. I think I have found what I want. Here is the article that describe how to make it:
http://www.linux.com/articles/113945
And thanks to you for the nice article on how to dual booting WinXP and Ubuntu. ;)
-cypher.
Sounds like the link you found should work quite well...when you install Ubuntu, you can specify where to install grub by pressing the "Advanced" button(I believe it's on step 7)...you can then type in your root partition in place of the default (hd0), for example you can type in /dev/sdb1, or however your root partition is designated in the partitioning & installation steps.
Aqualung
December 31st, 2007, 12:17 PM
God, this "Missing operating system" error has been killing me! Been trying to install Gutsy on my computer (have 7 HDDs, 4 of which are IDE on a Promise card). At first I've tried to dual boot Gutsy w/my Vista Ultimate x64, but I gave that up as it looked impossible. So I simply removed the Windows HDD (got one of 'em nice hot swappable HDD cages), and I was prepared to rejoice at the very sight of my computer booting in Ubuntu (after, of course, installing Ubuntu as if Windows never existed). It just wouldn't work.
So, been reading the forums, and it looks like Ubuntu/Gutsy was not designed to handle both SATA and IDE drives! Gosh, I'm surprised it was designed to use HDDs at all and not punchcards! After all it's only 1982, right?
Anyway, I'll spare you the cheap sarcasm. Some of the posts in this thread keep making reference to some "dualboot two hard drives" tutorial, and it looks to me that I should spend the better part of the week digging through this thread to find it. Can I get one of youse to please repost the link to that tutorial?
Let me tell you what my particular situation is:
4 IDE legacy HDDs on a Promise IDE card;
3 SATA HDDs, among which two blazin' fast 150Gs WD Raptors: one of the Raptors has my Windows, the other was supposed to host Gutsy Ubuntu.
Now, I'd be happy in a first instance to simply boot Ubuntu w/o Windows present. It is only afterwards that I'll be thinking of figuring out a way to dual boot.
So, it should be simple, right?
Please help. I really want to migrate to Linux as Windows has been giving me troubles.
TimPy
February 2nd, 2008, 01:10 AM
alright... I now completely (meaning mostly) understand what I need to do. I need to recover the windows mbr. I almost did it using my windows recovery disk- but then I couldn't find my admin password. I can't get onto the internet off live, so I can't use the one program I found that does it automatically.
Could you give me the exact commands to enter into the super grub disk to restore the windows mbr? I was having trouble finding exactly what to do, and I didn't want to mess up my computer anymore... That way I can restore windows, and then follow a dualboot guide and overwrite the previous partition I had, making G: my master first this time before I install.
masingerz
February 11th, 2008, 02:47 AM
hey you know what worked for me:
sudo gedit /boot/grub/menu.lst
and type after
### END DEBIAN AUTOMAGIC KERNELS LIST
title Windows
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,0)
chainloader +1
---o---
when I booted and pressed esc, to select the option that says windows, I typed, "E" for edit at the line "rootnoverify (hd0,0)" and then "B" for boot and tried different combinations (0.1 0.2 1.0 1.1)
and the one that worked was
"rootnoverify (hd1,0)" that booted into windows, so i let it do a complete boot and the rebooted that and went into ubuntu back again to
sudo gedit /boot/grub/menu.lst
and change the line
rootnoverify (hd0,0)
to
rootnoverify (hd1,0)
and now it works
I would like to thank the academy, its an honor to be nominated
PS thanx forum and freenode #ubuntu
tantric132
February 13th, 2008, 10:00 AM
Thank you for the guides Confused!
malbecar
March 20th, 2008, 06:03 PM
Hi, I readed your post, and copy the code. Just work great!
Many thanks!
gr8gatzb
April 3rd, 2008, 12:33 PM
I used this setup with 7.10 and it worked fine (the problem I am posting about didn't come up), but I ended up re-installing with 6.06 because I wanted more stability. It works fine with 6.06 too, but now I am having trouble accessing my Windows drive from Ubuntu. It gives me permission errors whenever I try accessing it after mounting. It says it belongs to root. When I do 'su', I can then access it via the terminal. However, I can't access it any other way. It is read-only and root/root group and owner. Not sure if this is related to this setup or another issue. Any ideas?
confused57
April 3rd, 2008, 01:38 PM
I used this setup with 7.10 and it worked fine (the problem I am posting about didn't come up), but I ended up re-installing with 6.06 because I wanted more stability. It works fine with 6.06 too, but now I am having trouble accessing my Windows drive from Ubuntu. It gives me permission errors whenever I try accessing it after mounting. It says it belongs to root. When I do 'su', I can then access it via the terminal. However, I can't access it any other way. It is read-only and root/root group and owner. Not sure if this is related to this setup or another issue. Any ideas?
Maybe this will help you get your Windows mounted with proper permissions:
http://www.psychocats.net/ubuntu/mountwindows
Sasquatch2000
April 9th, 2008, 12:28 PM
How does Ubuntu 8.04 "Hardy Heron" change any of this?
What I am really looking for is a way to install Ubuntu Linux onto either the same partition or another partition on either the same and/or another hard drive. I want a choice of which OS to boot on when I start up.
Any ideas?
Thanks.
deafbus
April 18th, 2008, 07:47 PM
My question, after reading all this stuff on dual boot, is this harder to do than dualbooting with Linspire & Windows on seperate harddrives? I want to do Ubuntu with XPPro 64 & XPPrp 32. Each has their own hd. Previously had Vista 64, XPPro 64 & 32. Vista is like Windows ME, a lot of fluff and a lot of trouble.Formated the Vista Harddrive, no more trouble.
Thanks, Al
VicVega
April 18th, 2008, 09:59 PM
Hi Al,
I can't tell you how the setup compares to Linspire as I've never used it. I can tell you that I dual boot with Ubuntu 7.10 and XP (Home) 32 on separate hard drives, and it was a straight forward process. I have also set up Ubuntu and XP Pro 32 and it worked the same way. Very easy to set up and both worked flawlessly. I used the same method as gpilkay from this thread http://ubuntuforums.org/showthread.php?t=717909 (post #2).
deafbus
April 20th, 2008, 06:35 PM
Thanks for replying. I will use your sugestion. I get into too much trouble when it come to typing a lot of commands.
PhatKat
May 2nd, 2008, 05:32 AM
Hi sorry if i am asking a 'duh' kindda question :P Just finished my DIY buntu box over the weekends but my via chipset VGA is giving me resolution problems on 8.04 so while i am getting that fixed via this wonderful forums, i had a spare HDD and installed buntu 7.10 and the IGP works fine! Now i am asking: can i boot from 2 HDDs, one with 7.10 and the other with 8.04?
Shampyon
May 2nd, 2008, 09:36 AM
I'm pretty sure it's the same process as dual booting with windows. The only real difference would be the name of the entry in GRUB :)
bfeero
May 13th, 2008, 07:35 PM
I am having troubles getting my computer to dual boot successfully. I have installed Ubuntu 8.04 on the first drive, with Vista Business on the other drive.
There is the section of my "menu.lst" that is pertinent:
### END DEBIAN AUTOMAGIC KERNELS LIST
title Microsoft Windows Vista x64
rootnoverify (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
When I attempt to start Windows, the screen says "Starting up..." for a split second, then goes to black, then reboots. I assure you that Windows will boot when the second drive is attached alone.
Here is the result when I use "fdisk -l":
Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000001
Device Boot Start End Blocks Id System
/dev/sda1 * 1 23569 189317961 83 Linux
/dev/sda2 23570 24321 6040440 5 Extended
/dev/sda5 23570 24321 6040408+ 82 Linux swap / Solaris
Disk /dev/sdb: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc3f850b8
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 24791 199133676 7 HPFS/NTFS
... and my /etc/fstab....
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=2be1474d-1e57-47e2-974f-e8c501cc068e / ext3 defaults,errors=remount-ro 0 1
# /dev/sda5
UUID=f5a6d187-ffc5-49f0-96ac-62649c4b96ef none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec 0 0
/dev/sdb1 /media/VISTA ntfs-3g defaults,locale=en_US.UTF-8 0 0
Can anyone help?
-Brett
Fenris_rising
May 13th, 2008, 08:16 PM
hi all
great set of tuts about dual booting. could i just interject with an option i have used. i have 1 sata drive and one ide drive. sata has ubuntu, ide has xp. i did this by removing each drive whilst installing to the remaining one before then refitting both (this would work with 2 ide types to). at boot on my pc i have the option to hit F8 to go into a boot menu which lists all attached drives (floppy,HDD's,CD,DVD) and i can select which one i want to boot from. my default is ubuntu. i don't know if this is a common feature to newer motherboards or bios supplier dependant. but for now it means some of us may be able to get by without having to set the grub up. obviously its down to personel preference how you do it. i have however bookmarked this post for my future reference.
cheers all
Artess
May 17th, 2008, 02:30 PM
Thanks. I think I have found what I want. Here is the article that describe how to make it:
http://www.linux.com/articles/113945
And thanks to you for the nice article on how to dual booting WinXP and Ubuntu. ;)
-cypher.
Thx for a good link, but is it supposed to work with SATA drives? As I understand, they don't have any 'primary' or 'secondary' drives, and some parts of that guide are based on that difference.
Mr Pockets151
May 19th, 2008, 03:17 PM
I've been trying to get this to work. But I have a SATA drive with the windows partition on it. The grub menu shows the Windows XP title, but when I choose it I get a "press any key to continue...." message. When I press "any" key I go back to grub menu. I can keep doing it over and over. Ofcourse when I choose the Ubuntu partition it loads to ubuntu.
markbuntu
May 22nd, 2008, 06:51 PM
I have 2 SATA drives. I bought a new one for Ubuntu and left XP on the old one. All I did was unplug the old drive from SATA1 and plug it into SATA2 on the motherboard and plug the Ubuntu drive in SATA1.
Then I installed Hardy on the new drive, sda. Grub recognized XP and added it to the menu and XP boots just fine and does not even know the other drive is there.
A single SATA drive is often plugged into the wrong plug during assembly since a SATA bios does not care. The bios searches the plugs in order and trys to boot the first one it sees. It only matters when you add more drives.
Shobuz99
June 9th, 2008, 09:17 PM
Thanks for this forum.
I'm new to Ubuntu and would like to get away from Windows
as soon as I can kick the habit. Ubuntu is a great start.
I recently installed Ubuntu 8.04. I love it!... but....
What I'm also attempting to do is wean myself off Windows because
cold turkey won't do it for me.
I'm trying to setup dual-boot with Windows on an IDE hard drive and
Ubuntu on a different drive. I think the Ubuntu drive is a SATA drive;
because when I did a 'sudo fdisk -l', this is what followed:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x96109610
Device Boot Start End Blocks Id System
/dev/sda1 * 1 9327 74919096 83 Linux
/dev/sda2 9328 9729 3229065 5 Extended
/dev/sda5 9328 9729 3229033+ 82 Linux swap / Solaris
so, I changed the loader code in menu.lst from hd1,0 to sd1,0 since it wouldn't even go to the bootloader on the Ubuntu drive before that.
what it was:
title Windows XP Home
root (hd1,0)
savedefault
makeactive
chainloader +1
map (hd0)(hd1)
map (hd1)(hd0)
What it is now:
title Windows XP Home
root sd1,0)
savedefault
makeactive
map (sd0)(sd1)
map (sd1)(sd0)
chainloader +1
### END DEBIAN AUTOMAGIC KERNELS LIST
I'm still having a problem dual-booting and I'm starting to wonder if IDE and SATA drives cannot be mixed on the same cable?
I've been moving both drives, in and out of the cpu case so many times, and disconnected the disk drive cable so many times and jumpered the Ubuntu drive off and on to the "cable select" setting;
that I've become lost.
I've always left the jumper on the XP drive to "master", as well as always used the end of the disk cable (master) to connect to the XP drive. And still I can't get this to work.
The farthest I got was the Ubuntu drive bootloader came up and I tried to boot the XP selection and it failed and gave me an "Error 23 while parsing a number"...???
What does this mean? Please help.
I've had this cpu case open and apart for 3 days.
It's driving me crazy!
Please help and please leave details if you do.
Like I said, I'm new to this and need some step-by-step...
Thank you for any help you may offer.
Shobuz99
confused57
June 11th, 2008, 10:36 AM
The farthest I got was the Ubuntu drive bootloader came up and I tried to boot the XP selection and it failed and gave me an "Error 23 while parsing a number"...???
Have you tried just copying & pasting the Windows entry that I listed in my initial post?
Was your Windows drive connected when you ran "sudo fdisk -l"?
You might also want to post the boot entries in your menu.lst:
gedit /boot/grub/menu.lst
Even though your Ubuntu drive is sata, it's listed in grub as hdx, not sdx.
dksau
June 20th, 2008, 07:50 PM
I want to dual boot Ubuntu 8.04 and windows XP Pro. I will use two hard drives neither are sata. I understand that when installing ubuntu with windows already on one drive ubuntu will automatically configure grub. My problem is that I have a spare hard drive with a working copy of ubuntu 8.04 already installed. How should I adjust grub so the system boots windows first. The people in the house who can't use linux want to just turn it on and go. I don't want to give up ubuntu.:)
confused57
June 20th, 2008, 08:15 PM
I want to dual boot Ubuntu 8.04 and windows XP Pro. I will use two hard drives neither are sata. I understand that when installing ubuntu with windows already on one drive ubuntu will automatically configure grub. My problem is that I have a spare hard drive with a working copy of ubuntu 8.04 already installed. How should I adjust grub so the system boots windows first. The people in the house who can't use linux want to just turn it on and go. I don't want to give up ubuntu.:)
See this guide for setting grub to boot Windows first:
http://users.bigpond.net.au/hermanzone/p15.htm#osprefernc
I use the method of placing the Windows entry above the line ###BEGIN AUTOMAGIC KERNELS LIST...see the instructions in the first post of this thread.
dksau
June 20th, 2008, 08:31 PM
Thank you confused57. That will be my project for tomorrow:)
Lovok
June 21st, 2008, 09:26 AM
I haven't read too many guides on how to dual boot with two hard drives, but this is how I do it, maybe you guys could tell me if it's dangerous or not :
Enter BIOS
Switch which hard disk the motherboard boots first
If I want to boot Windows, I set that hard drive first. Seems to work fine and is as easy as pie to do.
(This is after I installed Windows and Ubuntu on each hard drive separately.)
dksau
June 21st, 2008, 11:08 AM
I ran into some problems with the preinstalled ubuntu hdd. Next I reinstalled a hdd that had both windows and ubuntu and worked fine as far as booting goes but windows needed to be redone. After reinstalling and before plugging in the new windows only hdd I formatted the windows partition in the old dual boot hdd to ext3 this was bordered by two ext3 partitions. Now with either of the two hdd plugged in alone each will boot and run properly in that respective OS. With ubuntu as master and windows as slave and both hdd plugged in the system doesn't recognize any hdd. What's next:confused:
confused57
June 21st, 2008, 11:32 AM
I ran into some problems with the preinstalled ubuntu hdd. Next I reinstalled a hdd that had both windows and ubuntu and worked fine as far as booting goes but windows needed to be redone. After reinstalling and before plugging in the new windows only hdd I formatted the windows partition in the old dual boot hdd to ext3 this was bordered by two ext3 partitions. Now with either of the two hdd plugged in alone each will boot and run properly in that respective OS. With ubuntu as master and windows as slave and both hdd plugged in the system doesn't recognize any hdd. What's next:confused:
Does your bios recognize the drives correctly and are you getting a grub boot menu when both drives are connected?
dksau
June 21st, 2008, 11:45 AM
What I get is a message to insert a boot disk. I'm not fully familiar with this new mobo yet. After frying my BIOS this week I went to spare and the BIOS works completely different. I can select a boot disk with f11 but before that hdds are normally displayed during boot up but are not with both hdd plugged into power:)
confused57
June 21st, 2008, 11:55 AM
What I get is a message to insert a boot disk. I'm not fully familiar with this new mobo yet. After frying my BIOS this week I went to spare and the BIOS works completely different. I can select a boot disk with f11 but before that hdds are normally displayed during boot up but are not with both hdd plugged into power:)
I'm not that familiar with different bios configurations & tweaks, so I'd suggest starting a new thread in the "Installation & Upgrades" section, describing what you've done, the issues you're having...be sure to give the thread a descriptive title.
There are plenty of knowledgable people on the forum who may be able to help, maybe even someone who's had the same problem.
Good luck.
dksau
June 21st, 2008, 11:59 AM
The actual message I get goes like this. Reboot and Select proper Boot device or Insert Boot Media selected boot device and press a key. When the boot device select menu comes up with both hdd plugged in none are shown in the boot device select menu.:confused:
dksau
June 21st, 2008, 12:15 PM
Okay this is how my BIOS looks.
Advanced
IDE Configuration
OnBoard IDE Controler [Enabled]
SATA Operation Mode [RAID]
> Primary IDE Master [Not Detected]
>Primary IDE Slave [Hard Disk]
>Secondary IDE Master [ATAPI CDROM]
>Secondary IDE Slave [Not Detected]
>SATA1 [Not Detected]
>SATA2 [Not Detected]
dksau
June 21st, 2008, 12:58 PM
Well pardon my stupidity. As it turns out my master hdd (Western Digital) requires a different jumper setting for master with slave present and so now I have that solved as the hdd is recognized in BIOS but now there is a different problem. I get the following message when attempting to boot windows.
Error 13 Invalid or unsupported executable format. Press any key to continue. Which returns me to GRUB menu.
Also my objective is to have windows boot by default.
confused57
June 21st, 2008, 03:07 PM
Well pardon my stupidity. As it turns out my master hdd (Western Digital) requires a different jumper setting for master with slave present and so now I have that solved as the hdd is recognized in BIOS but now there is a different problem. I get the following message when attempting to boot windows.
Error 13 Invalid or unsupported executable format. Press any key to continue. Which returns me to GRUB menu.
Also my objective is to have windows boot by default.
Glad you were able to get Ubuntu to boot...to see what the problem may be, please post the output of:
sudo fdisk -l
-l is a lowercase "L"
and
gedit /boot/grub/menu.lst
dksau
June 21st, 2008, 04:25 PM
confused57
Thank you for all of your help. My newly configured dual boot system is up and running correct. I was able to find the solution by googling the problem message and selecting the proper offered ubuntu forum thread. Just to help clarify something that doesn't pop right out when we read these help messages. When you want to change the default booting OS go to the top of the grub boot menu and count down to the OS you want to be default. Start with 0. Mine ended up being 10 (that's the 11th one listed). In my case then I change the line default=0 line to read default=10. elsewhere in the thread is shown the proper terminal entry to access that menu and line.:)
confused57
June 21st, 2008, 10:13 PM
confused57
Thank you for all of your help. My newly configured dual boot system is up and running correct. I was able to find the solution by googling the problem message and selecting the proper offered ubuntu forum thread. Just to help clarify something that doesn't pop right out when we read these help messages. When you want to change the default booting OS go to the top of the grub boot menu and count down to the OS you want to be default. Start with 0. Mine ended up being 10 (that's the 11th one listed). In my case then I change the line default=0 line to read default=10. elsewhere in the thread is shown the proper terminal entry to access that menu and line.:)
Good job getting your dual boot working, always great to hear a success story.
woodbrick
June 23rd, 2008, 12:24 AM
I have a slightly different situation. I need to re-install windows onto disk 1, but I want to keep my existing Linux install on disk two. The problem is that grub is currently loaded on the first disk, as when I first installed Ubuntu 8.04, over a (then) working windows system, I just went with all default options., and I hadn’t come across the great idea of unplugging the disk so that each OS is independently on each disk.
I have an idea that the way to go about it (after doing a complete back-up) would be to ‘unplug’ disk1 (this can be done through the BIOS with SATA drives), then boot into ubuntu live CD, then load Grub on to the second hard disk. As soon as I can boot into ubuntu with only the second disk active I can edit the menu.lst file to include the map commands, I can then plug in disk one, unplug disk2 and install windows (with it thinking it is the only OS). Finally, I can then plug in disk2 and I will have the same set up as described at the start of this post!
My question: How do I move grub over from disk one to disk two, and is it possible to move my existing files so that they are not over-written by the newly installed Grub? Any help would be greatly appreciated....
Unix_Slayer
June 23rd, 2008, 12:31 AM
I have a slightly different situation. I need to re-install windows onto disk 1, but I want to keep my existing Linux install on disk two. The problem is that grub is currently loaded on the first disk, as when I first installed Ubuntu 8.04, over a (then) working windows system, I just went with all default options., and I hadn’t come across the great idea of unplugging the disk so that each OS is independently on each disk.
I have an idea that the way to go about it (after doing a complete back-up) would be to ‘unplug’ disk1 (this can be done through the BIOS with SATA drives), then boot into ubuntu live CD, then load Grub on to the second hard disk. As soon as I can boot into ubuntu with only the second disk active I can edit the menu.lst file to include the map commands, I can then plug in disk one, unplug disk2 and install windows (with it thinking it is the only OS). Finally, I can then plug in disk2 and I will have the same set up as described at the start of this post!
My question: How do I move grub over from disk one to disk two, and is it possible to move my existing files so that they are not over-written by the newly installed Grub? Any help would be greatly appreciated....
Try http://www.supergrubdisk.org
EriQ_10
June 29th, 2008, 08:37 PM
okay so i tried this and it works... kind of
my cpu starts up and grub gives me the option of booting windows or ubuntu if i tell it to boot to ubuntu it works great but when i tell it to boot to windows it just opens the utility partion thing then when i close that it reboots and i go through the whole process again but it does the same thing So I set the slave drive to off in the bios settings and unplugged my ubuntu drive and plugged in my windows drive in as the master and it boots fine. if anyone can help it would be great i would like to learn to use ubuntu but i really dont want to lose xp.
confused57
June 30th, 2008, 12:10 AM
okay so i tried this and it works... kind of
my cpu starts up and grub gives me the option of booting windows or ubuntu if i tell it to boot to ubuntu it works great but when i tell it to boot to windows it just opens the utility partion thing then when i close that it reboots and i go through the whole process again but it does the same thing So I set the slave drive to off in the bios settings and unplugged my ubuntu drive and plugged in my windows drive in as the master and it boots fine. if anyone can help it would be great i would like to learn to use ubuntu but i really dont want to lose xp.
With both drives connected, open a terminal & check the output of:
sudo fdisk -l
-l is a lowercase "L"
If Windows is on the 2nd partition, then you would need to change the line with root to (hd1,1):
title Windows XP
root (hd1,1)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
EriQ_10
June 30th, 2008, 12:08 PM
that was the problem it works now thank you so much.
woodbrick
June 30th, 2008, 08:33 PM
Try http://www.supergrubdisk.org
Super Grub Disk worked great, thanks. All I did was boot from the SGD with my windows disk (also containing original Grub) deactivated in BIOS and chose to "fix grub." After that I had ubuntu working on just one disk, and everything else was a breeze. The thing I cant understand is how SGD installed grub without effecting the existing ubuntu install??
Anyway it all works. I can boot into either OS from the grub menu and I can also bypass grub and boot straight into XP if I set my second disk as the "primary boot device" in BIOS. Thanks to everyone who has contributed to this great post.
A good tip to anyone who gets errors after booting from grub screen: Instead of just hitting [ENTER] on highlighted OS, hit [e] (edit) and just try other partitions on your system. I was about to panic when windows would not load, then I just changed the hard-disk no in the 'root' command from '0' to '1' and it all worked. As far as I can tell, there is no harm in trying and even if it doesn't work the error message you get may shed more light on what's actually going on.
jessejazza
July 6th, 2008, 05:02 AM
I've read this post through several times and somehow it doesn't seem to work for me... but as i'm trying to use windows 2k that might be the problem!
hard drives both standard IDE on a 2.6ghz desktop.
master drive - ubuntu 8.04
slave drive - win2k (no reason other than i don't have a copy of XP... my only reason for wanting to do dualbooting is that i've got several apps and a scanner than i can't run on ubuntu)
Following the beginning of the guide that worked fine - installing win2k on master and then connecting the master for ubuntu carefully switching the win2k disk to slave.
I want ubuntu to load as default. I read through menu.lst carefully taking note of what you said about needing to put the ammendments at the bottom of the file. In 8.04 at the foot of menu.lst IT IS ALREADY THERE - no editing required.
It would seem that 8.04 DOES the necessary!
On rebooting i selected the bottom item i.e windows and it didn't seem to load. I imagine win2k is different somehow from XP.
windows message
"Windows 2000 could not start because of a computer disk hardware configuration problem. Could not read from the selected boot disk. Check boot path and disk hardware"
I'd be very grateful if you put put me right! Menu.lst below 8.04 original no ammendments.
thanks
james
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=4a8cf581-73c8-41dc-a4d0-2bee78c3e5fc ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=4a8cf581-73c8-41dc-a4d0-2bee78c3e5fc ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=4a8cf581-73c8-41dc-a4d0-2bee78c3e5fc ro single
initrd /boot/initrd.img-2.6.24-19-generic
title Ubuntu 8.04.1, kernel 2.6.24-16-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=4a8cf581-73c8-41dc-a4d0-2bee78c3e5fc ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-16-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=4a8cf581-73c8-41dc-a4d0-2bee78c3e5fc ro single
initrd /boot/initrd.img-2.6.24-16-generic
title Ubuntu 8.04.1, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb1
title Windows NT/2000/XP (loader)
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
edemkrimea
July 7th, 2008, 01:48 PM
hello everybody. i am confused- i have two hard disks 320gb=sda & 80gb=sdb.the question-can i get them named vice versa
confused57
July 8th, 2008, 03:31 PM
jessejazza,
I found this from MS describing your problem:
http://support.microsoft.com/kb/314477
Grub is configured correctly to boot your Windows drive, but there's possibly something in your boot.ini(?) or Windows boot files that isn't allowing Windows to boot from the slave drive. Did you change the jumper to slave? You might want to connect your Windows drive as master, see if Windows will boot, then check how your boot.ini is configured.
edemkrimea,
It doesn't really matter which drive is sda or sdb...that's determined by which HD controller the drives are connected to.
This should help you understand how grub recognizes HD's:
http://users.bigpond.net.au/hermanzone/p15.htm#A_Quick_Guide_to_Grubs_Numbering_System
Grub needs to be installed on the drive that you're booting to first in bios. Why is it you want to change the drive designations???
jessejazza
July 8th, 2008, 04:43 PM
Many thanks for the suggestion. This disk has only had windows 98 on it - one of my older spare ones. So i don't think it can have more than one partition. Took both drives out and checked jumpers were correct.
What it could be is a compatibility problem... i think one has a choice of formatting the disk with win2k - i think i chose FAT32! I reckon it needs to be NTFS - but this a bit beyond my knowledge. I wonder if its a win2k thing... i've got a copy basically - but earlier this evening i found a winXP recovery disk set (that came with this machine) so i could try XP.
Just for your interest i posted this on my linux uses group... i got one reply saying forget it and use GRUB. THIS method of yours is a much superior way in my view. [I've been wondering how much that lot actually know]. I've only been using ubuntu for a year but i've got one or two apps and a scanner that i need to use winblows for.
thanks
jessejazza
July 9th, 2008, 07:10 AM
It made sense to put on XP. I'm sure you're right about the boot.ini but not really worth the time.
The recovery disks only took 20 mins and obviously have all the drivers for this machine.
I only need windows for a couple of apps and a scanner. Plus watching the odd video that doesn't play on ubuntu. It seems a couple of the newspaper compilations like a wimbledon world championship one simply don't run on ubuntu.
This dualboot is an excellent method for my needs and i very much appreciate the time and effort you put in to producing it confused 57.
Many thanks
confused57
July 9th, 2008, 03:41 PM
It made sense to put on XP. I'm sure you're right about the boot.ini but not really worth the time.
The recovery disks only took 20 mins and obviously have all the drivers for this machine.
I only need windows for a couple of apps and a scanner. Plus watching the odd video that doesn't play on ubuntu. It seems a couple of the newspaper compilations like a wimbledon world championship one simply don't run on ubuntu.
This dualboot is an excellent method for my needs and i very much appreciate the time and effort you put in to producing it confused 57.
Many thanks
Glad to hear it worked for you. I'll probably have to use XP to watch olympic events on nbc_olympics website, nice to have XP in those rare instances that it's necessary.
jessejazza
July 9th, 2008, 03:47 PM
I wish ubuntu would improve their media software. For streaming video i have only ever managed to get RealPlayer working in Firefox. VLC, xine etc with careful adherence to the documentation... not achieved yet.
Shame having to dualboot - means ubuntu hasn't advanced enough to forget windows use totally.
jabba_29
July 10th, 2008, 04:35 AM
Hi,
Thanks for a great thread!
It has gone a long way in helping me understand what is needed to set up a dual boot system.
I will be trying to set this up myself very soon, but there are a few questions that I would appreciate a little help on.
My situation is that I have 4 HDD:
0) XP system
1) Want to install Ubuntu here
2) Music files
3) Empty
First off, the drive with XP is the master. I have been reading about the master/slave stuff and I am still unclear
as to whether I really need to change XP to be the slave (I would like to leave hardware as is)..
I was going to change the boot order to:
0) CD/DVD drive
1) Ubuntu to be
2) XP as is now
Will this work like that?
Secondly, the drive that I want to install Ubuntu on is partitioned.
Will the installation join these drives again?
The partitions are quite small and there seems no real point in having them any more.
If the installation works as detailed above, in menu.lst is the following still correct:title Windows XP
rootnoverify (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1What does the second line actually do?
Thanks in advance..
PS: I am a total newbie to all of this.
I have installed Ubuntu on my laptop last week,
clean install, and so far I am very impressed.
I would just totally switch over but there are a few programs and hardware related stuff
that I need that use XP!
confused57
July 10th, 2008, 01:48 PM
Hi jabba_29,
This guide explains grub & it's configuration quite well:
http://users.bigpond.net.au/hermanzone/p15.htm
What you're planning on doing "should" work OK...set your bios boot order as you described(cdrom---Ubuntu drive---Windows drive).
The install cd partitioner can delete the partitions on the Ubuntu drive or you can use the entire disk option, just make sure to select the correct hard drive, e.g. sda, sdb, etc.
To ensure that grub is installed to the Ubuntu drive, you can click on the "Advanced" button at or near the end of the installation...change the default (hd0) to /dev/sdb(or however your Ubuntu drive is designated by the partitioner) as the location to install grub. Grub should recognize & add an entry to boot Windows on your other drive...if it doesn't, then it should be relatively easy to add one manually.
jabba_29
July 10th, 2008, 03:51 PM
Thanks for the info.
I have almost finished testing on the XP side,
systematically going through my programs to make sure they still work.
After that, I will format the drive completely and join the partitions in XP.
Then comes the install :)
Will probably post back and definately capture the install and post it
for future reference.
freeloader105
July 16th, 2008, 08:55 PM
confused57,
Thanks so much for such a great guide!
ssican
July 19th, 2008, 04:18 AM
Confuse57, on Post 1, Make Reference to:
both hard drives connected during the install of Ubuntu:
http://ubuntuforums.org/showpost.php?p=2195398&postcount=47
On Post 47, there is a Reference to Alexander Grundner's guide (How-To dual boot Ubuntu)
"Alexander Grundner on:
http://www.ehomeupgrade.com/entry/2622/how-to_dual-boot_ubuntu"
The "NEW" How-To of Alexander Grundner (How-To: Dual-Boot Windows and Ubuntu with Two Drives) is on:
http://www.alexandergrundner.com/2007/12/17/how-to-dual-boot-windows-and-ubuntu-with-two-drives/
EDIT 1 - The FIRST HOW TO of Alexander Grundner:
How-To: Dual-Boot Ubuntu 6.06 (Dapper) Linux Desktop Along Side Windows XP is on:
http://www.ehomeupgrade.com/2006/06/02/how-to-dual-boot-ubuntu-606-dapper-linux-desktop-along-side-windows-xp/
confused57
July 19th, 2008, 09:55 AM
Confuse57, on Post 1, Make Reference to:
both hard drives connected during the install of Ubuntu:
http://ubuntuforums.org/showpost.php?p=2195398&postcount=47
On Post 47, there is a Reference to Alexander Grundner's guide (How-To dual boot Ubuntu)
"Alexander Grundner on:
http://www.ehomeupgrade.com/entry/2622/how-to_dual-boot_ubuntu"
The NEW How-To of Alexander Grundner (How-To: Dual-Boot Windows and Ubuntu with Two Drives) is on:
http://www.alexandergrundner.com/2007/12/17/how-to-dual-boot-windows-and-ubuntu-with-two-drives/
Thanks for the heads-up, post 47 has been updated.
RoknRob70
July 20th, 2008, 09:53 AM
This is an excellent guide. Thank you.
However, as an excited Ubuntu newbie, I wonder if I can add a level of complexity. I am interested in having Dualboot two hard drive system, since I am sure there will be a learning curve to Ubuntu, and there will likely need to be tweaks before everything runs smoothly.
My Windows XP runs off a mirroring RAID system. But I have a free 3rd drive that I would like to install Ubuntu to. How will the two drives in the RAID be perceived by Ubuntu? If they are perceived as separate drives, what will modifications to either of the drives do to the RAID system once I load Windows? Can I EXCLUDE access (or at least make access read-only) to the RAID hard drives whilst in Ubuntu? Will Grub know how to handle this if I want to boot XP?
Sorry if this as come up before, but I haven't been able to find a mention to this topic in the many pages of this thread.
Thanks in advance.
confused57
July 20th, 2008, 10:45 AM
This is an excellent guide. Thank you.
However, as an excited Ubuntu newbie, I wonder if I can add a level of complexity. I am interested in having Dualboot two hard drive system, since I am sure there will be a learning curve to Ubuntu, and there will likely need to be tweaks before everything runs smoothly.
My Windows XP runs off a mirroring RAID system. But I have a free 3rd drive that I would like to install Ubuntu to. How will the two drives in the RAID be perceived by Ubuntu? If they are perceived as separate drives, what will modifications to either of the drives do to the RAID system once I load Windows? Can I EXCLUDE access (or at least make access read-only) to the RAID hard drives whilst in Ubuntu? Will Grub know how to handle this if I want to boot XP?
Sorry if this as come up before, but I haven't been able to find a mention to this topic in the many pages of this thread.
Thanks in advance.
You could probably go ahead and install with all 3 drives connected, but set the drive you'll be installing Ubuntu on as the first hard drive booted in bios, before you boot up the Ubuntu live cd for installing. The partitioner will recognize your Raid as 2 separate drives, for a total of 3 drives. Make a note of how your Ubuntu drive is designated during installation, e.g. /dev/sdc, /dev/sdb, or /dev/sda...near the end of the installation(step 7?), click on the "Advanced" button in the lower right corner and replace the default (hd0) with /dev/sdc(or however your Ubuntu drive is designated) as the location to install grub.
Ubuntu will mount your ntfs filesystems as read-only, when you boot to XP from grub, it will function as a Raid after you boot into XP, although Ubuntu will see it as 2 separate drives. You can always change your hard drive boot order to boot Windows from it's own loader. What you don't want to do is install grub to the mbr of your first drive of your Raid array.
If for some reason, you get an error 17 when you select to boot into Ubuntu from grub, highlight the first Ubuntu entry in the grub boot menu, press "e", highlight the line with root, press "e" again, change root from (hd1,0) to (hd0,0), press "enter", then "b" to boot.
You might want to burn a copy of Super Grub Disk, before you install Ubuntu:
http://users.bigpond.net.au/hermanzone/SuperGrubDiskPage.html
Don't hesitate to ask if you have any questions. Good Luck.
RoknRob70
July 21st, 2008, 07:57 PM
Thanks, Confused57.
A very helpful reply.
While you say I [B]COULD[B] go ahead and install with the 3 drives connected, would I not be better off (read: safer) disconnecting the two RAID drives, or will that cause problems with Ubunutu once I reconnect them? I would hate to make a mistake and have grub installed to the Raid...
Thanks, again.
confused57
July 21st, 2008, 08:09 PM
Thanks, Confused57.
A very helpful reply.
While you say I [B]COULD[B] go ahead and install with the 3 drives connected, would I not be better off (read: safer) disconnecting the two RAID drives, or will that cause problems with Ubunutu once I reconnect them? I would hate to make a mistake and have grub installed to the Raid...
Thanks, again.
Yes, the only way to be sure is to disconnect your Raid drives when you install Ubuntu. You should be able to add an entry to boot Windows to grub.
wysbf2
July 22nd, 2008, 12:23 PM
Hi,
I am about to try something that's a variation on this thread. I want to dual boot from 2 different HDDs (1 is XP, other is Hardy Heron) but both disks currently serve 2 separate machines.
The background: Machine A is an old Dell machine, happily running XP. Currently only has 1 IDE drive, but with cable for 1 more. Machine B is an ancient PC inherited from a neighbour, running Hardy Heron. However, Machine B just died - I thought the BIOS battery had died, but it seems more severe than that. The HDD in Machine B is quite new, so I'm sure it's OK.
So my goal is to install the HDD from Machine B into Machine A alongside the existing drive, and to set Machine A up to dual boot. Additionally, I want to boot into Ubuntu by default, so I guess I'll need to switch the existing HDD in Machine A to be slave, and the old HDD from Machine B to be master.
Other than following the excellent thread here (http://ubuntuforums.org/showthread.php?t=124989&highlight=Jumper+settings) is there anything else I should be careful of? I'm just conscious that the HDD from Machine B was previously running in somewhat different hardware (different motherboard, less memory, different video card etc). I've already burned some LiveCDs (Supergrub etc) in case all goes pear-shaped....
Grateful for any tips before I get started.
Thanks,
SB
confused57
July 22nd, 2008, 04:13 PM
Hi,
I am about to try something that's a variation on this thread. I want to dual boot from 2 different HDDs (1 is XP, other is Hardy Heron) but both disks currently serve 2 separate machines.
The background: Machine A is an old Dell machine, happily running XP. Currently only has 1 IDE drive, but with cable for 1 more. Machine B is an ancient PC inherited from a neighbour, running Hardy Heron. However, Machine B just died - I thought the BIOS battery had died, but it seems more severe than that. The HDD in Machine B is quite new, so I'm sure it's OK.
So my goal is to install the HDD from Machine B into Machine A alongside the existing drive, and to set Machine A up to dual boot. Additionally, I want to boot into Ubuntu by default, so I guess I'll need to switch the existing HDD in Machine A to be slave, and the old HDD from Machine B to be master.
Other than following the excellent thread here (http://ubuntuforums.org/showthread.php?t=124989&highlight=Jumper+settings) is there anything else I should be careful of? I'm just conscious that the HDD from Machine B was previously running in somewhat different hardware (different motherboard, less memory, different video card etc). I've already burned some LiveCDs (Supergrub etc) in case all goes pear-shaped....
Grateful for any tips before I get started.
Thanks,
SB
I would definitely set the drive with Ubuntu as master, Windows as slave...make sure to have both drives jumpered to cable select, if it's supported in bios. I have a Dell Dimension 4550, which has the Primary slave controller set to "off" by default...I had to change it to "auto" when I installed the 2nd hard drive.
The new xorg in Hardy does an excellent job of detecting new video hardware, you'll just have to try it to see if the old Ubuntu is compatible with your Dell. If you have Gutsy installed, you'll need to run:
sudo dpkg-reconfigure xserver-xorg
wysbf2
July 23rd, 2008, 06:06 PM
Thought I'd report on a successful venture - the dual-boot part was easy, but I came across some serious issues on the old drive from Machine B. I installed this drive into Machine A (actually a Dell Dimension 2400) and attempted to boot from it. No joy at all, so I booted from a LiveCD and ran gparted on the drive. It turns out that when Machine B had died, it had done some pretty nasty things to the drive. I didn't know it could do it, but the 'Check' option in gparted actually runs
e2fsck -f -y -v
This did the trick, with all my data apparently intact, so I shunted it all onto a spare external drive to be on the safe side.
I now managed to get the old Dell machine to boot this drive - but my memory was incorrect, I was running Gutsy (not Hardy Heron as I previously mentioned) on the drive from Machine B. So it stubbornly refused to pick the correct video options when I ran through
sudo dpkg-reconfigure xserver-xorg
from the shell in recovery mode.
The device properties indicated that the on-board Intel graphics should behave as i810 - but this refused to give me anything other than 640x480 resolution, however much memory I allocated to it. Once I installed the xserver-xorg-video-intel package (see section 6, here: https://help.ubuntu.com/community/FixVideoResolutionHowto ) and re-ran the command above (selecting 'intel' driver instead of 'i810') all was well.
Editing my menu.lst to configure the dual boot operation took 5 mins and worked first time.....actually getting to that point took a little longer.....
Thanks to previous posters (esp confused57) for the great advice in this thread.
SB
Lovok
July 27th, 2008, 11:12 AM
Sorry if this has been asked already, but here is my problem :
Before attempting to dual boot, I would just change boot order in my BIOS to boot into XP or Ubuntu. Now that I've followed this guide, I can do it on the fly in the Grub menu thing.
Only thing is, now Ubuntu doesn't see my XP hdd, whereas it used to (XP never did see Ubuntu).
Ubuntu is on IDE, XP on SATA. At the same time I did this dual boot, I set my SATA hdd to be able to transfer at rates of 3Gb/s, opposed to the 1.5Gb/s it was capped at from when I bought it.
Did the dual booting cause these problems, or did my SATA drive settings?
Thanks.
EDIT : I also just tried booting from a CD, and it just skipped that part..
I don't think that the CD I tried can be booted from... and I restored my menu.lst to it's default settings, and I can access my XP hdd.
tad1073
September 17th, 2008, 08:49 PM
I installed Ubuntu mount point / on sda2, swap on sda1, /home on sdc2. Windows XP is on sdb and storage for windows is on sdc1. Grub didn't pick up Windows or add it, so I followed your guide and when I tried booting into windows I got the following error:
Missing NTLDR Press Ctrl+Alt+Delete to restart
earthtux
September 17th, 2008, 09:41 PM
this is my xp section from my /boot/grub/menu.lst
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb2
title Windows NT/2000/XP (loader)
root (hd1,1)
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
my fdisk -l
Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x19d9516a
Device Boot Start End Blocks Id System
/dev/sda1 * 1 23849 191567061 83 Linux
/dev/sda2 23850 24321 3791340 5 Extended
/dev/sda5 23850 24321 3791308+ 82 Linux swap / Solaris
Disk /dev/sdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9dc96e9e
Device Boot Start End Blocks Id System
/dev/sdb1 1 4 32098+ 6 FAT16
/dev/sdb2 * 5 4862 39021885 7 HPFS/NTFS
Ubuntu 8.04 is on my primary master hard disk
XP sp3 is on my primary slave hard disk
I installed ubuntu after the xp
and the grub is on the master hard disk
so xp is not altered by ubuntu at all
my computer is dimension8100
so the first partition on slave hard disk is dell rescue tool partition(or something like that)
my problem is when i select boot xp from grub menu
i got a black screen and no hard disk is reading/writing
can any one help pls?
P.S. if i replace root with rootnoverity, it reboots after i select boot xp!
confused57
September 17th, 2008, 11:08 PM
this is my xp section from my /boot/grub/menu.lst
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb2
title Windows NT/2000/XP (loader)
root (hd1,1)
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
my fdisk -l
Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x19d9516a
Device Boot Start End Blocks Id System
/dev/sda1 * 1 23849 191567061 83 Linux
/dev/sda2 23850 24321 3791340 5 Extended
/dev/sda5 23850 24321 3791308+ 82 Linux swap / Solaris
Disk /dev/sdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9dc96e9e
Device Boot Start End Blocks Id System
/dev/sdb1 1 4 32098+ 6 FAT16
/dev/sdb2 * 5 4862 39021885 7 HPFS/NTFS
Ubuntu 8.04 is on my primary master hard disk
XP sp3 is on my primary slave hard disk
I installed ubuntu after the xp
and the grub is on the master hard disk
so xp is not altered by ubuntu at all
my computer is dimension8100
so the first partition on slave hard disk is dell rescue tool partition(or something like that)
my problem is when i select boot xp from grub menu
i got a black screen and no hard disk is reading/writing
can any one help pls?
P.S. if i replace root with rootnoverity, it reboots after i select boot xp!
If you moved the Windows drive from master to slave, did you change the HD jumper to slave or have both drives set to cable select? Also, you probably read my first post in this thread, but is the slave drive set to "auto" in bios.
You might want to burn a copy of Super Grub Disk:
http://users.bigpond.net.au/hermanzone/SuperGrubDiskPage.html
then try booting your Windows drive with SGD...sometimes SGD can show what the problem is, if it's a grub error.
See if your drives are recognized correctly in your bios setup.
earthtux
September 18th, 2008, 04:21 AM
Thank you for your reply
both hard drives are recognized by bios(both auto, actually if not auto it's off)
the jumpers of both drive are set to cable selected.
will the jumpers be the problem?
i tried the super grub disk
tried all options to boot my xp as well. All i got is black screen
and no hard disk reading/writing........
advanced-->windows advnaced->boot partition of windows-->choose the xp partition
the output on screen
set out_device = (hd1,1)
set out_hurd_hd=hd1
set out_linux_letter=b
set out_lide_hd=hdb
set out_lscsi_hd=sdb
set out_part=(hd1,1)
set out_lide_part=hdb2
set out_lscsi_part=sdb2
set out_hurd_part=hd1s2
set out_linux_part=b2
set out_part_n=1
set out_linux_end=b2
back
back
set aux_part=(hd1,1)
rootnoverity (hd1,1)
chainloader +1
boot
tried live swap too..it flashed some message but a black screen followed.
I tried to put jumpers on master/slave to test but still failed
I can boot into ubuntu but not xp
P.S.why in my fdisk -l
they both sdx not hdx?
since they are both connected by ide cables
confused57
September 18th, 2008, 04:13 PM
Cable select for both drives should work fine...Hardy recognizes drives as sdx, regardless if they're IDE or SATA.
Does the Windows drive boot OK, if it is connected as master? Is this the original install of Windows or if you installed it, did you install Windows to the drive connected as master?
earthtux
September 18th, 2008, 04:32 PM
Cable select for both drives should work fine...Hardy recognizes drives as sdx, regardless if they're IDE or SATA.
Does the Windows drive boot OK, if it is connected as master? Is this the original install of Windows or if you installed it, did you install Windows to the drive connected as master?
oh i see!
yes, if i put xp drive to master it boots!
xp is installed by dell(and it was the only drive when i got the whole computer)
all my settings are the same as you guys posted here
Dont know y it cant work T_T
Is there any other files I should look into?
confused57
September 19th, 2008, 12:41 AM
oh i see!
yes, if i put xp drive to master it boots!
xp is installed by dell(and it was the only drive when i got the whole computer)
all my settings are the same as you guys posted here
Dont know y it cant work T_T
Is there any other files I should look into?
Sorry, but I've about run out of ideas for you to try. The only other thing I can think of is, have you installed SP2 to your XP? I've read of other posters having problems booting XP from grub with just XP SP1, I'm grasping at straws here, you probably already have SP2 or it probably isn't your problem if you haven't.
I had to upgrade the bios on my Dimension 4500 from A02 to A08, before I could install SP2, which I did about mid-2003. You may want to start a new thread in the "Installation & Upgrades" section, describing your problem(in as much detail as possible)...maybe someone else has had the same issues & was able to find a solution.
Good luck with it.
Added: Another possiblity, if you're not able to boot Windows on the slave drive from grub, is to switch the Windows drive to master & boot Ubuntu from Windows:
http://ubuntuforums.org/showthread.php?t=56723
I've never done this personally, but the howto seems to explain it pretty well.
earthtux
September 19th, 2008, 01:26 AM
Sorry, but I've about run out of ideas for you to try. The only other thing I can think of is, have you installed SP2 to your XP? I've read of other posters having problems booting XP from grub with just XP SP1, I'm grasping at straws here, you probably already have SP2 or it probably isn't your problem if you haven't.
I had to upgrade the bios on my Dimension 4500 from A02 to A08, before I could install SP2, which I did about mid-2003. You may want to start a new thread in the "Installation & Upgrades" section, describing your problem(in as much detail as possible)...maybe someone else has had the same issues & was able to find a solution.
Good luck with it.
Added: Another possiblity, if you're not able to boot Windows on the slave drive from grub, is to switch the Windows drive to master & boot Ubuntu from Windows:
http://ubuntuforums.org/showthread.php?t=56723
I've never done this personally, but the howto seems to explain it pretty well.
my xp is sp3 if my memory serves me right!
Thank you very much for your time, I will try what you suggested.
BPMOU
September 20th, 2008, 12:57 PM
Hey Guys,
Great forum and first post. I am looking to dual boot from two SATA hard drives. I currently have a SATA drive that came with the computer with Vista Home Premium SP1. I want to add another SATA drive with Ubuntu on it. I see most people setting this up are running XP. Is there anything that I need to know specifically before I go buy another SATA drive to do this?
Thanks in advance.
confused57
September 20th, 2008, 08:57 PM
Hey Guys,
Great forum and first post. I am looking to dual boot from two SATA hard drives. I currently have a SATA drive that came with the computer with Vista Home Premium SP1. I want to add another SATA drive with Ubuntu on it. I see most people setting this up are running XP. Is there anything that I need to know specifically before I go buy another SATA drive to do this?
Thanks in advance.
Welcome to the forum, it's definitely the best.
You shouldn't have any problems installing Ubuntu on a separate drive, if you follow the instructions in this thread, especially the first post. Having 2 SATA drives shouldn't make any difference, as long as you're booting first to the Ubuntu drive.
Don't hesitate to ask, if you have any questions.
BPMOU
September 22nd, 2008, 12:15 PM
Ok, so I just wanted to post up my results. I followed the instructions on the first post. Unplugged the HD with Vista. Plugged in the new drive and installed Heron 8.04 from the Live CD. Turned off pc and plugged the Vista HD back into it's original slot on the MB as it was orignially configured. Then plugged in the new Heron HD in SATA slot 3.
When I power on, I go right into Vista, unless I hit escape and select Ubuntu from the boot order and then Ubuntu loads. Seems to both be working well. When I go into ubuntu I can see my Vista HD with the two drives c:/ and d:/, both factory images, but I cannot access. I don't think that I would want to access them that way any how for fear of damaging any Vista files.
Is there anything else I need to do? I would evenutally like to move to Ubuntu exclusivly and boot straight to it instead of Windows. But before I do that I need to figure out how to get all of my pics, docs, music, dvd to ubuntu. I backed up my Vista HD to a 500 GB external drive, so I do have an extra copy of my Vista drive. Anythoughts? I am loving ubuntu, great OS and I think it will be simpler for the wife to us as she has been having issues with Outlook and IE.
Thanks!
alfy
September 24th, 2008, 12:46 PM
Hi!
I too have two hard disks SATA.
On the first HD there is WinXP, the second is blank.
I would install Ubuntu on the second, and put Grub on it.
I read first post, but I've a question:
My motherboard do not permit to choose which hard disk is "the bootable".
So, if I unplug my first HD (with XP), where I'll plug the second HD (the blank one) before to install Ubuntu, on SATA1 slot or SATA2 slot (this is where it plugged now)?
I think on SATA2, but motherboard will recognize the disk on SATA2?
Excuse me for my english :p and my confusion. :confused:
confused57
September 24th, 2008, 06:03 PM
Hi!
I too have two hard disks SATA.
On the first HD there is WinXP, the second is blank.
I would install Ubuntu on the second, and put Grub on it.
I read first post, but I've a question:
My motherboard do not permit to choose which hard disk is "the bootable".
So, if I unplug my first HD (with XP), where I'll plug the second HD (the blank one) before to install Ubuntu, on SATA1 slot or SATA2 slot (this is where it plugged now)?
I think on SATA2, but motherboard will recognize the disk on SATA2?
Excuse me for my english :p and my confusion. :confused:
Unplug your XP drive, then plug the drive you're going to install Ubuntu on SATA1...after you have Ubuntu installed, then you can connect your XP drive to SATA2, then see the first post in this thread for adding an entry to grub for booting XP.
BPMOU
September 24th, 2008, 11:06 PM
Hey Confused: I read the grub modification on the first post, but admit I am lost. My Vista drive is in SATA 2 and the Ubuntu is in SATA 4 (this is what is shows when I choose which one to boot) and if nothing is done Vista boots up. I want Ubuntu to boot if nothing else is selected. What specially should I put into the grub menu for 2 SATA drives, one with Vista and one with Ubuntu?
Thanks in advance for your help.
confused57
September 25th, 2008, 09:30 AM
Hey Confused: I read the grub modification on the first post, but admit I am lost. My Vista drive is in SATA 2 and the Ubuntu is in SATA 4 (this is what is shows when I choose which one to boot) and if nothing is done Vista boots up. I want Ubuntu to boot if nothing else is selected. What specially should I put into the grub menu for 2 SATA drives, one with Vista and one with Ubuntu?
Thanks in advance for your help.
All you need to do is move your grub Vista entry to the very BOTTOM of your menu.lst, instructions are in the first post...make a backup of your current menu.lst first:
cd /boot/grub
sudo cp menu.lst menu.lst_backup
then
gksudo gedit /boot/grub/menu.lst
alfy
September 25th, 2008, 10:44 AM
Thanks for your reply, Confused! :)
Unplug your XP drive, then plug the drive you're going to install Ubuntu on SATA1...after you have Ubuntu installed, then you can connect your XP drive to SATA2, then see the first post in this thread for adding an entry to grub for booting XP.
Hmmm, so...
Bios look for MBR in the disk on SATA1 slot first, and then, search in the slot SATA2 ?
For Bios, SATA1 is "a kind of" master, and SATA2 "a kind of" slave?
Have I got that right?
confused57
September 25th, 2008, 01:24 PM
Thanks for your reply, Confused! :)
Hmmm, so...
Bios look for MBR in the disk on SATA1 slot first, and then, search in the slot SATA2 ?
For Bios, SATA1 is "a kind of" master, and SATA2 "a kind of" slave?
Have I got that right?
In the context of this thread, you could look at it as SATA1 master & SATA2 slave...your SATA1 is the first hard drive in the boot sequence, which is where you want Ubuntu installed.
I can only boot to the master hard drive(not the slave drive) on my Dimension 4550, therefore I had to set the Ubuntu drive as master in order to boot using grub.
alfy
September 25th, 2008, 01:59 PM
In the context of this thread, you could look at it as SATA1 master & SATA2 slave...your SATA1 is the first hard drive in the boot sequence, which is where you want Ubuntu installed.
I can only boot to the master hard drive(not the slave drive) on my Dimension 4550, therefore I had to set the Ubuntu drive as master in order to boot using grub.
Ok, thanks!
I understand now! \\:D/
BPMOU
September 26th, 2008, 01:04 AM
Ok from before. Where exactly do I make the mentioned change? I am trying to switch ubuntu as the primary or default boot so that Vista has to be selected. HEre is my menu.lst. I am new, so thanks for your patients.
menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=d1bd994f-5ff5-4ce8-804f-269db4d2d604 ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=d1bd994f-5ff5-4ce8-804f-269db4d2d604 ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=d1bd994f-5ff5-4ce8-804f-269db4d2d604 ro single
initrd /boot/initrd.img-2.6.24-19-generic
title Ubuntu 8.04.1, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
confused57
September 26th, 2008, 02:47 AM
BPMOU,
If you're able to boot into Ubuntu from grub if you boot first to your Ubuntu drive, then all you need to do is add your Vista entry to the bottom of your menu.lst, e.g.:
## ## End Default Options ##
title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=d1bd994f-5ff5-4ce8-804f-269db4d2d604 ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=d1bd994f-5ff5-4ce8-804f-269db4d2d604 ro single
initrd /boot/initrd.img-2.6.24-19-generic
title Ubuntu 8.04.1, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
title Windows Vista
root (hd1,0)
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
If Vista is on the second partition, then you would need to use root (hd1,1)...you can check your partition layout, by opening a terminal, enter:
sudo fdisk -l
-l is a lowercase "L"
dayyou
November 10th, 2008, 01:27 AM
Ok I know this sounds like a novice question but,
this works on vista right? I don't want to go off
and try this before i mess every thing up.
confused57
November 10th, 2008, 02:50 PM
Ok I know this sounds like a novice question but,
this works on vista right? I don't want to go off
and try this before i mess every thing up.
I don't have Vista, but I haven't heard of this method not working
with Vista.
Another possiblity might be to use EasyBCD to add Linux to the Vista bootloader:
http://neosmart.net/wiki/display/EBCD/Linux
alexeix
November 13th, 2008, 08:26 PM
I'm going to chip in here, because I also have a boot-related problem (see here: http://ubuntuforums.org/showthread.php?t=981283)
Any suggestions? Both drives are SATA.
"I have 2 hard drives - one with Ubuntu and one with Mythbuntu, however, I want Mythbuntu to be the primary boot disk.
Unfortunately, the Ubuntu disk boots first and I can't see how to change it.
I've tried changing the SATA cables round, so it doesn't seem to be determined by the SATA socket on the motherboard.
I've also checked the BIOS and I can the sequence there reflects the boot sequence, but there's no option to change it.
I can manually change it when booting up, but that's no good, as I need Mythbuntu to boot up when I'm not there (and record TV).
Any ideas how to correct this?"
heyup
November 14th, 2008, 10:09 AM
I have 2 SATA drives. Followed instructions in this thread but when I boot into Windows XP a fatal system error occurs.
Two SATA drives.
SATA 1 (secondary) Windows XP (original hard drive).
SATA 1 (primary) Ubuntu 7.10 (new hard drive).
This is what I did:-
Disconnected SATA (secondary) Windows XP.
Installed Ubuntu on SATA (primary) Ubuntu.
Amended menu.lst file as per instructions.
Reconnected SATA (secondary) Windows XP.
Booted up computer. Grub loads properly with menu options.
Select Ubuntu. Ubuntu loads OK. Shut down computer.
Boot up computer. Grubs loads OK.
Select Windows XP. Windows fails to load. Fatal system error c000021a (blue screen)
If I disconnect SATA (primary) Ubuntu and boot up computer, SATA (secondary) Windows XP loads OK.
With both SATA hard drives connected, I can boot into Ubuntu, but if I try to boot into Windows XP it fails to load (fatal system error).
Anyone any ideas as to what the problem might be?
caljohnsmith
November 14th, 2008, 10:18 AM
Heyup, that sounds like it might be a simple problem with your Windows entry in your Grub's menu.lst. In Ubuntu, how about opening a terminal (applications > accessories > terminal) and do:
gksudo gedit /boot/grub/menu.lst
And replace your Windows entry with:
title Windows XP
root (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
If that for some reason doesn't work to boot Windows, let me know exactly what happens when you choose it from the Grub menu. Also please post:
sudo fdisk -lu
And we can work from there if you want.
heyup
November 14th, 2008, 11:33 AM
I had already changed the menu.lst file as per the entry you posted.
When I select Window XP from grub menu, I flash message appears (that I missed)something about NTFS, then Windows starts to load but then stops with error message:-
Fatal system error. c000021a (fatal system error).
The session manager initialisation system process terminated unexpectedly with a status of 0xc00003a. The system has been shut down.
Here is what fdisk gives:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x000719fe
Device Boot Start End Blocks Id System
/dev/sda1 * 63 48821534 24410736 83 Linux
/dev/sda2 48821535 951160454 451169460 5 Extended
/dev/sda5 48821598 439442009 195310206 83 Linux
/dev/sda6 439442073 947256659 253907293+ 83 Linux
/dev/sda7 947256723 951160454 1951866 82 Linux swap / Solaris
Disk /dev/sdb: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders, total 160086528 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xea4735bd
Device Boot Start End Blocks Id System
/dev/sdb1 63 7181054 3590496 1c Hidden W95 FAT32 (LBA)
/dev/sdb2 * 7181055 160071659 76445302+ 7 HPFS/NTFS
caljohnsmith
November 14th, 2008, 11:36 AM
OK, I think I see the problem; your Windows partition is on sdb2, not sdb1, so you should use (hd1,1):
title Windows XP
root (hd1,1)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
Give that shot and let me know how it goes.
heyup
November 14th, 2008, 11:40 AM
OK. I'll give that ago. I may be sometime, but I'll post the result. It maybe tomorrow though.
heyup
November 14th, 2008, 11:53 AM
OK, I think I see the problem; your Windows partition is on sdb2, not sdb1, so you should use (hd1,1):
title Windows XP
root (hd1,1)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
Give that shot and let me know how it goes.
Brilliant. That fixed the problem. I think sdb1 is a hidden partion for Windows XP recovery.
Thanks again for your help.
caljohnsmith
November 14th, 2008, 11:56 AM
Brilliant. That fixed the problem. I think sdb1 is a hidden partion for Windows XP recovery.
Thanks again for your help.
You're welcome, glad your problem turned out to be simple to fix. Cheers and have fun with your OSes. :)
bigguly
November 15th, 2008, 06:44 PM
Quick noob question. I want to install Kubuntu. It should be the same has instaling Ubuntu? Thanks in advance to all replies.
:KS:KS:KS
confused57
November 16th, 2008, 11:05 AM
Quick noob question. I want to install Kubuntu. It should be the same has instaling Ubuntu? Thanks in advance to all replies.
:KS:KS:KS
Yes, it should be the same for Kubuntu...if you've never used kde before you'll use:
kdesu kwrite menu.lst
instead of:
gksudo gedit menu.lst
which is used in gnome.
bigguly
November 16th, 2008, 04:34 PM
Yes, it should be the same for Kubuntu...if you've never used kde before you'll use:
kdesu kwrite menu.lst
instead of:
gksudo gedit menu.lst
which is used in gnome.
Thanks very much Confused57. I'm gonna buy a new HDD in the January sales, along with a load of other stuff, and I will be coming back to this thread to take all your advice. Just make yourselves ready for my nooby questions:wink:
alexeix
November 18th, 2008, 08:07 PM
I'm going to chip in here, because I also have a boot-related problem (see here: http://ubuntuforums.org/showthread.php?t=981283)
Any suggestions? Both drives are SATA.
"I have 2 hard drives - one with Ubuntu and one with Mythbuntu, however, I want Mythbuntu to be the primary boot disk.
Unfortunately, the Ubuntu disk boots first and I can't see how to change it.
I've tried changing the SATA cables round, so it doesn't seem to be determined by the SATA socket on the motherboard.
I've also checked the BIOS and I can the sequence there reflects the boot sequence, but there's no option to change it.
I can manually change it when booting up, but that's no good, as I need Mythbuntu to boot up when I'm not there (and record TV).
Any ideas how to correct this?"
Any advice on this problem?
I just don't see how to set which drive will boot first.
Thanks in advance.
confused57
November 18th, 2008, 11:28 PM
Any advice on this problem?
I just don't see how to set which drive will boot first.
Thanks in advance.
Please post your Ubuntu menu.lst:
gedit /boot/grub/menu.lst
If you're able to boot Mythbuntu from your Ubuntu menu.lst, this may help:
http://users.bigpond.net.au/hermanzone/p15.htm#osprefernc
alexeix
November 19th, 2008, 08:58 PM
I think the problem is down to the fact that I installed Ubuntu and Mythbuntu on the separate SATA drives, with only one drive connected at a time. Although I still don't see why it always boots to Ubuntu, regardless of whether I swap the drives round.
Anyway, here's my Ubuntu menu.lst file:
(see attachment)
By the way, can anyone tell me how to include long sequences like this in a posting, in one of those small windows?
Thanks.
alexeix
November 20th, 2008, 09:09 PM
Any suggestions on this?
Should I go back to square one and re-install Ubuntu 8.10 with both hard drives connected?
:confused:
confused57
November 20th, 2008, 10:46 PM
I think the problem is down to the fact that I installed Ubuntu and Mythbuntu on the separate SATA drives, with only one drive connected at a time. Although I still don't see why it always boots to Ubuntu, regardless of whether I swap the drives round.
Anyway, here's my Ubuntu menu.lst file:
(see attachment)
By the way, can anyone tell me how to include long sequences like this in a posting, in one of those small windows?
Thanks.
I'm unable to open your menu.lst attachment, but you can copy & paste your /boot/grub/menu.lst in a window with:
your /boot/grub/menu.lst here[/code[
Change what I have above by changing the last bracket from "[" to "]", this will display your menu.lst list in a code window.
Added: You might also want to post the ouput of:
[code]sudo fdisk -l
-l is a lowercase "L"
and
sudo grub
find /boot/grub/stage1
quit
You shouldn't need to reinstall either OS.
alexeix
November 23rd, 2008, 09:53 AM
Okay, here's menu.lst:
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=514fa4c4-3176-4489-9af7-b765e3b65d60 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=514fa4c4-3176-4489-9af7-b765e3b65d60
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 514fa4c4-3176-4489-9af7-b765e3b65d60
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=514fa4c4-3176-4489-9af7-b765e3b65d60 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 514fa4c4-3176-4489-9af7-b765e3b65d60
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=514fa4c4-3176-4489-9af7-b765e3b65d60 ro single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, memtest86+
uuid 514fa4c4-3176-4489-9af7-b765e3b65d60
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
confused57
November 23rd, 2008, 10:24 AM
I assume this is your Ubuntu menu.lst, so you can use the Ubuntu live cd to install grub's IPL(Initial Program Loader) to the root partition of Mythbuntu:
http://ubuntuforums.org/showthread.php?t=224351
When you run "find /boot/grub/stage1", you should get something like:
root (hd0,0)
root (hd1,0)
this is mainly why I requested that you post the output of this command. Again assuming (hd1,0) is your Mythbuntu root partition, following the instructions in the above tutorial:
sudo grub
find /boot/grub/stage1 <----if Mythbuntu returns (hd1,0), then:
root (hd1,0)
setup (hd1,0)
quit
Boot back into your installed Ubuntu & add a chainloader method to boot Mythbuntu:
cd /boot/grub
sudo cp menu.lst menu.lst_backup
gksudo gedit menu.lst
Add this entry to the very end of your Menu.lst(after ###END DEBIAN AUTOMAGIC...):
title Mythbuntu
root (hd1,0)
chainloader +1
exit & save
If this enables you to boot Mythbuntu, then you add it's entry just above the line ###BEGIN AUTOMAGIC KERNELS LIST, which make Mythbuntu the default OS booted automatically.
alexeix
November 23rd, 2008, 01:10 PM
I realised that the Mythbuntu drive was disconnected when I ran that, so I re-connected it and here's the output (from Ubuntu):
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=514fa4c4-3176-4489-9af7-b765e3b65d60 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=514fa4c4-3176-4489-9af7-b765e3b65d60
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 514fa4c4-3176-4489-9af7-b765e3b65d60
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=514fa4c4-3176-4489-9af7-b765e3b65d60 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 514fa4c4-3176-4489-9af7-b765e3b65d60
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=514fa4c4-3176-4489-9af7-b765e3b65d60 ro single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, memtest86+
uuid 514fa4c4-3176-4489-9af7-b765e3b65d60
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
alexeix
November 23rd, 2008, 01:11 PM
From sudo fdisk -l:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0004d9ec
Device Boot Start End Blocks Id System
/dev/sda1 * 1 60424 485355748+ 83 Linux
/dev/sda2 60425 60801 3028252+ 5 Extended
/dev/sda5 60425 60801 3028221 82 Linux swap / Solaris
Disk /dev/sdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xbc00bc00
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 23946 192346213+ 83 Linux
/dev/sdb2 23947 24321 3012187+ 5 Extended
/dev/sdb5 23947 24321 3012156 82 Linux swap / Solaris
alexeix
November 23rd, 2008, 01:18 PM
From find /boot/grub/stage1:
(hd0,0)
(hd1,0)
confused57
November 23rd, 2008, 01:49 PM
Thanks for the additional information, from which I believe that the instructions I mentioned in post #199 "should" work, with both drives connected, Ubuntu as primary boot drive & Mythbuntu as the secondary boot drive.
Please make a note of any error messages, if the instructions don't work.
alexeix
November 23rd, 2008, 01:55 PM
Hi,
Thanks for the continued support with this problem.
With both drives connected, if I boot into Ubuntu, and run find /boot/grub/stage1, I get:
hd0,0
hd1,0
If I boot into Mythbuntu and run the command, I get the same.
So I'm a bit confused about what's going on/what I'm doing.
I'd assumed that the results would be different, depending on what I booted from.
confused57
November 23rd, 2008, 02:06 PM
Hi,
Thanks for the continued support with this problem.
With both drives connected, if I boot into Ubuntu, and run find /boot/grub/stage1, I get:
hd0,0
hd1,0
If I boot into Mythbuntu and run the command, I get the same.
So I'm a bit confused about what's going on/what I'm doing.
I'd assumed that the results would be different, depending on what I booted from.
Yes, you'd need to set Ubuntu first boot drive for the method I described to work. Since you can boot boot into Mythbuntu through bios, you might want to post your /boot/grub/menu.lst in Mythbuntu, which I assume is Intrepid 8.10.
Ubuntu & Mythbuntu would both show the same results for "find /boot/grub/stage1" when you boot first to either OS. In Hardy 8.04, the grub boot entry would show root (hd0,0) for both Ubuntu & Mythbuntu, since you disconnected the other drive when installing each; however, Intrepid 8.10 uses UUID instead of (hdx,y) so each should have a unique UUID for root & switching the position of the drives shouldn't be an issue. If Mythbuntu uses UUID in the root line, the method I described should work. However if Mythbuntu uses "root (hd0,0)", I'll need to give you further instructions to boot Mythbuntu from Ubuntu's grub.
alexeix
November 23rd, 2008, 08:26 PM
Yes, Mythbuntu is 8.10.
Here's the menu.lst contents:
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=95b305af-11d8-4e30-8856-8b3b15249bd8 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 8.10, kernel 2.6.27-7-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=95b305af-11d8-4e30-8856-8b3b15249bd8 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=95b305af-11d8-4e30-8856-8b3b15249bd8 ro single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, kernel 2.6.24-21-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=95b305af-11d8-4e30-8856-8b3b15249bd8 ro quiet splash
initrd /boot/initrd.img-2.6.24-21-generic
quiet
title Ubuntu 8.10, kernel 2.6.24-21-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=95b305af-11d8-4e30-8856-8b3b15249bd8 ro single
initrd /boot/initrd.img-2.6.24-21-generic
title Ubuntu 8.10, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
confused57
November 23rd, 2008, 10:02 PM
You'll need to do a couple of extra steps, since Mythbuntu 8.10 uses root (hd0,0), instead of UUID. Set your Ubuntu drive as the first hard drive booted, then follow the instructions I gave you in reply #199. Once you've done this, try booting to Mythbuntu using Ubuntu's grub; however, when you boot to Mythbuntu you'll see Mythbuntu's grub menu...highlight the first Mythbuntu entry, press "e", highlight the line with root, press "e" again, then change root from (hd0,0) to (hd1,0), press "enter", then "b" to boot. This change is temporary if it works, but you can make it permanent in your Mythbuntu /boot/grub/menu.lst:
gksudo gedit /boot/grub/menu.lst
you'll also have to change the line with #groot from (hd0,0) to (hd1,0).
EDIT: Since Mythbuntu uses (hd0,0), you won't need to use the live cd to install grub's IPL to it's root partition, but instead a configfile entry will work, boot into Ubuntu:
cd /boot/grub
sudo cp menu.lst menu.lst_backup
gksudo gedit menu.lst
Then add this entry to the very end of your menu.lst:
title Mythbuntu
configfile (hd1,0)/boot/grub/menu.lst
quit & save
You'll still need to follow the instructions above(press "e" to change root from 0,0 to 1,0) to get Mythbuntu to boot.
phantomme
November 30th, 2008, 07:02 AM
Thank you, confused57, for this clear tutorial:KS. I want to share some of the minor issues I encountered while following your advice.
First I need to mention that I work on a relatively old system so I installed the distro XUBUNTU.
When using the terminal window, it asked for my password. I realised after a few tries that apparenty in the terminal window, no keystrokes (even no "*") are shown when typing your password, and you do not get any confirmation that the password is correct.
As I tried to open the menu.lst with "gksudo gedit menu.lst", the system did not react. I tried to open the menu.lst file with a wordprocessor, but it refused to save my changes.
Finally I realised (by typing the command "gedit menu.lst" without gksudo that gedit was not installed in xubuntu. Fortunately it was readily downloaded and installed within the terminal window itself.
Hereafter everything went smoothly as you explained (I also had the bios issue)
Nevertheless a question remains : when starting "windows XP", the system wanted to run a diskcheck on my "G" drive, which I skipped. In windows the G drive is my Linux drive. Is there any risk with running chkdisk from windows XP on the linux drive ?:-s
confused57
November 30th, 2008, 09:26 PM
Thank you, confused57, for this clear tutorial:KS. I want to share some of the minor issues I encountered while following your advice.
First I need to mention that I work on a relatively old system so I installed the distro XUBUNTU.
When using the terminal window, it asked for my password. I realised after a few tries that apparenty in the terminal window, no keystrokes (even no "*") are shown when typing your password, and you do not get any confirmation that the password is correct.
As I tried to open the menu.lst with "gksudo gedit menu.lst", the system did not react. I tried to open the menu.lst file with a wordprocessor, but it refused to save my changes.
Finally I realised (by typing the command "gedit menu.lst" without gksudo that gedit was not installed in xubuntu. Fortunately it was readily downloaded and installed within the terminal window itself.
Hereafter everything went smoothly as you explained (I also had the bios issue)
Nevertheless a question remains : when starting "windows XP", the system wanted to run a diskcheck on my "G" drive, which I skipped. In windows the G drive is my Linux drive. Is there any risk with running chkdisk from windows XP on the linux drive ?:-s
Thanks, glad you were able to get your dual boot working. Yes, gedit isn't installed by default in Xubuntu, which uses the mousepad text editor:
gksudo mousepad /boot/grub/menu.lst
or you could use nano:
sudo nano /boot/grub/menu.lst
I've never had XP even see any of the ext3 partitions I've installed Ubuntu on. I'm guessing that you resized a ntfs or fat32 partition to make room for Ubuntu and that is probably what XP is wanting to run chkdisk on.
Windows assigns drive letters to individual partitions rather than to separate hard drives, which you probably already know.
To see how Xubuntu sees your drives & partitions, you might want to run this in a terminal:
sudo fdisk -l
-l is a lowercase "L"
The links in my signature are excellent resources that you may want to bookmark.
phantomme
December 14th, 2008, 04:29 PM
Indeed, the drive was formerly formatted in NTFS. In XP it still sees the "NTFS" partition, although it has been overwritten by installing Xubuntu.
Any idea how to turn off drive checking on the Linux drive in XP ?
(I'll have a look myself also)
presence1960
December 14th, 2008, 06:25 PM
I dual boot an IDE and sata hard drive, but set it up differently. I installed Ubuntu on the sata drive and had the IDE drive as a storage drive. My original intention was to get rid of Windows altogether. But my boss gave me some added responsibilities which require me to use Adobe Acrobat professional. So I then repartioned the IDE drive into two partitions , both NTFS. I then put in the Vista install DVD rebooted, entered BIOS and set the IDE as first drive. Installed Vista to the IDE drive. When installed rebooted and back into BIOS again. Set the sata as first drive. Grub did not contain Windows so I edited the grub menu file to add Vista. Pretty simple process and it works just fine. Now both OS show up in my start up menu for grub.
JAID
December 24th, 2008, 12:00 AM
Hello,
You have been doing a great job with this Confused and for a couple years.
Don't let me waste your time if this query is too far from you experience zone but any advice would be appreciated.
I have Ubuntu Hardy set up and running well on an HP DL380 G4 Dual Xeons/6GB with a half dozen U320 SCSI drives. It will be necessary to set up a dual boot arrangement so that Adobe Master Collection CS4 can be used on this machine (which is faster than others here)
The second OS will be Windows Server 2008. It seems ideal to me that the two OS reside on separate drives. Do you think your formula may be adjustable to separate SCSI drives?
Thanks
Ian
JAID
December 24th, 2008, 04:59 AM
Perhaps I should give a bit more background detail (part from another thread):
I need to run Adobe Master Collection CS4 on this otherwise-to-be server to handle some of the more calculation intensive stuff as that slows my PC to a standstill. (Premier pro editing AVCHD particularly) Apparently there has been no thorough success in running it on Ubuntu through Wine.
Installation of the second OS to a another SCSI drive on this system rather than partitioning the Ubuntu drive seems best to me. Currently there are a half dozen U320 hot-plug drives.
Two drives are linked in RAID 1+0 currently dedicated to Ubuntu (unless Ubuntu deletes the RAID connection upon installation - I havent looked.) At Ubuntu installation I let it have the whole drive which would mean both in RAID - probably not too wise but it sounds like something changeable. Ubuntu is on the SCSI drive at location/name SCSI ID0 set in SCSI BIOS to boot first afte the CD.
Four drives are currently set up as RAID 5. These are already NTFS drives. One will probably get removed from that setup and have WinSrvr2008 and Adobe MC CS4 stuck on it.
The thing I am ignorant of which stands out now is how to get the new Win 2008 boot loader and the Ubuntu loader picked up together and presented for selection at startup.
There are a number of good coverages of dual boot setups here including yours but if concerning separate drives they seem to revolve around using Master and secondary IDE or SATA drives.
The drives on this machine being hot plug SCSI drives, I was hoping just to:
- Remove an NTFS drive from the present RAID 5 set
- pull the present boot drive with Ubuntu off the system.
- Plug the drive taken from the RAID 5 set into the 0 slot
(These inbuilt SCSI systems allocate SCSI ID's by position and there would be no need even to change the boot order in BIOS that way)
- Load WinServer2008 on the newly plugged in drive.
- Pull that and put it back in its own slot
- Re-plug the Ubuntu ext3 drive in the 0 slot
- Boot to ubuntu
- Somehow edit the GRUB menu list or map so that it picks up the other drive and offers it a choice for booting at startup. But I don't know how that will be done as the examples have not dealt with SCSI.
Very appreciative of any advice. Thanks
confused57
December 26th, 2008, 10:21 PM
Hello,
You have been doing a great job with this Confused and for a couple years.
Don't let me waste your time if this query is too far from you experience zone but any advice would be appreciated.
I have Ubuntu Hardy set up and running well on an HP DL380 G4 Dual Xeons/6GB with a half dozen U320 SCSI drives. It will be necessary to set up a dual boot arrangement so that Adobe Master Collection CS4 can be used on this machine (which is faster than others here)
The second OS will be Windows Server 2008. It seems ideal to me that the two OS reside on separate drives. Do you think your formula may be adjustable to separate SCSI drives?
Thanks
Ian
Hi Ian,
Thanks for the compliments. I'm not familiar with SCSI drives, nor with Raid; however, as long as the Windows drive isn't part of a Raid setup, it should work. You've probably already found out that Ubuntu recognizes your Raid drives as separate drives and it "should" be just a matter of adding the correct entry in grub to boot Windows. It may be just a matter of trial & error to find the correct entry, in addition to the entry I gave in my initial post in this thread, you could try:
title Windows
root (hd2,0)
makeactive
map (hd0) (hd2)
map (hd2) (hd0)
chainloader +1
or
title Windows
root (hd3,0)
savedefault
makeactive
map (hd0) (hd3)
map (hd3) (hd0)
chainloader +1
This should give you an idea of additional entries if your Windows drive is recognized as (hd4),(hd5), etc.
Good luck with it & feel free to ask any other questions if you have problems.
JAID
December 26th, 2008, 11:36 PM
[I]Thanks for the reply Confused.
(You dont think a name change to something more fitting not in order?)
That should do the job. At the moment I have removed the two Ubuntu formatted drives and am having a little problem with Win Server 2008 64-bit which I will have to fix before re-installing those drives.
On RAID, I found I had to configure one single drive as a RAID set (on its own that is) to get it recognised so currently Windows is on a RAID set of one. Hope your comment doesnt mean that will be inaccessible to Grub at start-up.
Thanks again
Regards
Ian
confused57
December 27th, 2008, 01:16 AM
[I]Thanks for the reply Confused.
(You dont think a name change to something more fitting not in order?)
That should do the job. At the moment I have removed the two Ubuntu formatted drives and am having a little problem with Win Server 2008 64-bit which I will have to fix before re-installing those drives.
On RAID, I found I had to configure one single drive as a RAID set (on its own that is) to get it recognised so currently Windows is on a RAID set of one. Hope your comment doesnt mean that will be inaccessible to Grub at start-up.
Thanks again
Regards
Ian
You shouldn't have any problem with grub booting Windows set up the way you're planning. Actually, grub has no problem booting Windows installed on a Raid array, if Ubuntu is installed on a separate drive that's not part of the array Windows is on...the problem happens when Ubuntu is installed on the same Raid array that Windows is installed on. It's been awhile since I've helped much on the forum, but after dusting off the "cobwebs" I realized I had misinformed you.
Sounds like you have a lot of experience with Raid, but here's an excellent write-up of Raid setups with Linux:
http://ubuntuforums.org/showthread.php?t=1019864
JAID
December 27th, 2008, 05:15 AM
Thanks for that Confused.
Only one incorrect statement in there: "you have a lot of experience at RAID"
I think despite fiddling with computers in my firm for a quarter century about the only thing I have a lot of experience at is managing to make all new tasks a drawn out matter of trial, failure and eventual realisation that something simple was missed.
Good that this setup will work though.
What is holding up the process is that windowsSVR2008 64-bit failed to make use of either the inbuilt CD or an LG external DVD and WinServer2008 only comes on DVD. It could see them and judged their drivers the latest, would spin them but do nothing with that. Today I have just had another go at loading over the one that was working (without these drives) yesterday and now I have managed to get it so it wont even install. Will probably need to wait a week to get a thin DVD into the state.
By the way, Ubuntu didnt have any trouble. :-)
Regards
Ian
JAID
December 27th, 2008, 06:48 PM
An update.
Windows Server 2008 STD 64-bit loaded fine last night. There were several problems, both mine.
The first that although I installed the latest HP Maintenance update I didnt do the same for HP SmartStart. The second was that the LG external drive I was using which self powers from the USB bus couldn't handle the heat (the heavy use installation makes of it) and it took me far too long to come to the conclusion that they provide a second USB bus power cable for those occasions. With both plugged in - no problems.
So, today it is back to Ubuntu.
Ian
Chaos_Spear
January 14th, 2009, 02:25 AM
So I'm trying to boot Kubuntu by default but have the option to switch to XP on the second drive. But I keep getting an error 23, parsing a number, when I try to boot XP. I've looked at it and I can't seem to find where I could have possibly done it wrong, I basically copy-pasted from the site.
title Windows XP Professional
root (sdb,0)
savedefault
makeactive
map (sda) (sdb)
chainloader +1
(note: I removed the second map command since I didn't want my XP drive to have access to my Linux drive)
All this at the end of menu.lst
Fdisk lists "sda" as my Linux drive and "sdb" as my XP drive, though I also tried listing the partition sdb1, with no success.
logos34
January 14th, 2009, 03:02 AM
So I'm trying to boot Kubuntu by default but have the option to switch to XP on the second drive. But I keep getting an error 23, parsing a number, when I try to boot XP. I've looked at it and I can't seem to find where I could have possibly done it wrong, I basically copy-pasted from the site.
title Windows XP Professional
root (sdb,0)
savedefault
makeactive
map (sda) (sdb)
chainloader +1
(note: I removed the second map command since I didn't want my XP drive to have access to my Linux drive)
All this at the end of menu.lst
Fdisk lists "sda" as my Linux drive and "sdb" as my XP drive, though I also tried listing the partition sdb1, with no success.
grub used '(hd?,?)' format
look here (http://users.bigpond.net.au/hermanzone/p15.htm#Windows_on_a_non-first_hard_disk) for help with booting windows on second disk
Chaos_Spear
January 14th, 2009, 03:07 AM
Oh, ok. I must have misread one of the guides. Thanks! I'll go see if that works.
domokunrox
January 23rd, 2009, 07:22 PM
I have a question regarding the topic subject itself.
How do you dual boot with 2 Sata Hard Drives? Windows setup throws a fit about the other drive and refuses to let GRUB handle the boot process.
I wish it was as easy as starting your computer and it asking you which drive you want to start up. Am I asking for too much?
fuzzywigg
January 25th, 2009, 05:47 PM
I am getting:
[Error 1: File name must be either an absolue pathname or block list.] {Press any key to continue}
:(
My menu.lst is to follow.
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 12
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=2ce19ebd-4915-41e6-b996-882244286e7d ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 8.04.1, kernel 2.6.24-23-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-23-generic root=UUID=2ce19ebd-4915-41e6-b996-882244286e7d ro quiet splash
initrd /boot/initrd.img-2.6.24-23-generic
quiet
title Windows XP
rootnoverify (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1rf
title Ubuntu 8.04.1, kernel 2.6.24-23-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-23-generic root=UUID=2ce19ebd-4915-41e6-b996-882244286e7d ro single
initrd /boot/initrd.img-2.6.24-23-generic
title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=2ce19ebd-4915-41e6-b996-882244286e7d ro single
initrd /boot/initrd.img-2.6.24-19-generic
title Ubuntu 8.04.1, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb1.
title SUSE Linux Enterprise Server 10 SP1 (on /dev/sdb1)
root (hd1,0)
kernel /boot/vmlinuz-2.6.16.46-0.12-smp root=/dev/disk/by-id/scsi-SATA_ST3160023AS_5MT0PWYM-part1 vga=0x31a acpi=off resume=/dev/sda1 splash=silent showopts
initrd /boot/initrd-2.6.16.46-0.12-smp
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb1.
title Failsafe -- SUSE Linux Enterprise Server 10 SP1 (on /dev/sdb1)
root (hd1,0)
kernel /boot/vmlinuz-2.6.16.46-0.12-smp root=/dev/disk/by-id/scsi-SATA_ST3160023AS_5MT0PWYM-part1 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
initrd /boot/initrd-2.6.16.46-0.12-smp
savedefault
boot
]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
Drive to boot from is #1 and Windows XP is drive #2
Both drives are SATA. If it makes a difference, I have partitions set up for swap files from both OS's on the opposite drive.
Here is what I have as fdisk -l :
Disk /dev/sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000ed404
Device Boot Start End Blocks Id System
/dev/sda1 * 1 18696 150175588+ 83 Linux
/dev/sda2 18697 19452 6072570 5 Extended
/dev/sda5 18697 19452 6072538+ b W95 FAT32
Disk /dev/sdb: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00045397
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 14472 116246308+ 7 HPFS/NTFS
/dev/sdb2 14473 19452 40001850 5 Extended
/dev/sdb5 14473 19452 40001818+ 82 Linux swap / Solaris
Disk /dev/sdc: 1040 MB, 1040187392 bytes
240 heads, 63 sectors/track, 134 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Disk identifier: 0xfcb8e742
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 135 1015776+ 6 FAT16
Partition 1 has different physical/logical endings:
phys=(133, 239, 63) logical=(134, 87, 55)
Can anyone help with an 'Error 1' given this back groundning?
mystikal2k2a
February 14th, 2009, 05:27 PM
Hi
Ok I'm stuck, please can anyone help me with this?
I have 2 sata hard drives - 1 with MS Windows XP Pro and the other with Linux Ubuntu. I have the grub boot loader menu appearing and I can see an entry for Windows. When I try and select the Windows option from the boot loader menu I get an error. I've received different errors each time I have tried configuring the boot/grub/menu.lst file. I can't get into Windows at present but can get into Ubuntu.
This is the contents of fdisk -l -
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x896a4361
Device Boot Start End Blocks Id System
/dev/sda1 * 1 498 4000153+ 82 Linux swap / Solaris
/dev/sda2 499 6334 46877670 5 Extended
/dev/sda5 499 6334 46877638+ 83 Linux
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x457d457c
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 3916 31455238+ 7 HPFS/NTFS
/dev/sdb2 3917 19457 124833082+ 7 HPFS/NTFS
This is the contents of my menu.lst file in boot/grub -
title Microsoft Windows XP Professional
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
I have tried various combinations to get this corrected. I even tried replacing the letters hd1 and hd0 to sd1 and sd0 where applicable because I read it maybe required for SATA discs?
Can anyone help please?
Thanks
ktmom
March 5th, 2009, 12:31 PM
Thank you confused57 for the post. It was the first dual-boot with two drives post I found and this <shudder> almost 50yo was able to install Ubuntu onto a second SATA drive, configure grub and be off with a choice of whether I am exploring Ubuntu or need to do things nowthey way I know how to do it.
The ease with which this install went, makes me very optimistic that I have found my new operating system. Now to explore the new world.
FWIW: On a Dell 8400, I have three SATA drives. Ubuntu on SATA0, WinXP on SATA1 and Data on SATA2. I physically disconnected WinXP and Data then installed Ubuntu without issue. I performed all updates, rebooted, modified grub using exactly the instructions in post 1 then rebooted. Then shutdown again and reconnected the WinXP and Data drives. Everything works as advertised and I just am amazed at how simple this was.
Jammanuser
March 5th, 2009, 03:51 PM
Hi
Ok I'm stuck, please can anyone help me with this?
I have 2 sata hard drives - 1 with MS Windows XP Pro and the other with Linux Ubuntu. I have the grub boot loader menu appearing and I can see an entry for Windows. When I try and select the Windows option from the boot loader menu I get an error. I've received different errors each time I have tried configuring the boot/grub/menu.lst file. I can't get into Windows at present but can get into Ubuntu.
Hi mystikal2k2a.
Could you please describe the latest error you got with the configuration you posted? I'm thinking the boot.ini file might be configured wrong. Could you also acess your XP partition from within Ubuntu, and please post the contents of "boot.ini"?
-Jam man
:guitar:
confused57
March 7th, 2009, 11:07 AM
Thank you confused57 for the post. It was the first dual-boot with two drives post I found and this <shudder> almost 50yo was able to install Ubuntu onto a second SATA drive, configure grub and be off with a choice of whether I am exploring Ubuntu or need to do things nowthey way I know how to do it.
The ease with which this install went, makes me very optimistic that I have found my new operating system. Now to explore the new world.
FWIW: On a Dell 8400, I have three SATA drives. Ubuntu on SATA0, WinXP on SATA1 and Data on SATA2. I physically disconnected WinXP and Data then installed Ubuntu without issue. I performed all updates, rebooted, modified grub using exactly the instructions in post 1 then rebooted. Then shutdown again and reconnected the WinXP and Data drives. Everything works as advertised and I just am amazed at how simple this was.
Thanks for the feedback, glad it worked for you. Yes, this method works quite nicely for most people & you don't have to worry about your XP install when installing Ubuntu, which I know you'll love using.
Jammanuser,
Thanks for helping, I haven't been able to assist anyone much on the forum lately.
youdkelon
March 29th, 2009, 02:05 PM
Hi, I just bought a new desktop, I have to hard drives on it. 1 has 500gb and the other has 1tb. I installed ubuntu, but for some reason I can't use the second hard drive (1tb). I can't mount it. Does anyone know what I should do?
Thanks
Jammanuser
March 29th, 2009, 04:17 PM
Hi, I just bought a new desktop, I have to hard drives on it. 1 has 500gb and the other has 1tb. I installed ubuntu, but for some reason I can't use the second hard drive (1tb). I can't mount it. Does anyone know what I should do?
Thanks
I'm assuming you're trying to access the TB hard drive from Ubuntu? If so, does the hard drive show up at all in "Computer" when it is plugged in and powered on?
youdkelon
March 30th, 2009, 06:53 AM
Yes, it shows up. I was able to mount it, but now I can't put files into it. It has a folder named lost+found.
unutbu
March 30th, 2009, 07:03 AM
https://help.ubuntu.com/community/InstallingANewHardDrive
four o two
May 28th, 2009, 01:00 AM
Hi guys - I've read through the thread but wanted to post my exact setup before I "dive in", start changing things, then regret it later if it doesn't work.
I have 2 SATA drives connected, a 1TB with Windows Vista on it and a 500GB with Ubuntu 9.04 installed. I believe that the SATA controller is defaulting to the Ubuntu drive because that's what boots up first, bypassing the Windows drive. GRUB just asks what config to boot up in Ubuntu.
My fdisk -l:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x46173692
Device Boot Start End Blocks Id System
/dev/sda1 * 1 121601 976758784 7 HPFS/NTFS
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9c269c26
Device Boot Start End Blocks Id System
/dev/sdb1 1 59345 476688681 83 Linux
/dev/sdb2 59346 60801 11695320 5 Extended
/dev/sdb5 59346 60801 11695288+ 82 Linux swap / Solaris
...and my menu.lst file (just in case)
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=eea71cfd-a540-49f7-8935-7f2a23667f09 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=eea71cfd-a540-49f7-8935-7f2a23667f09
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid eea71cfd-a540-49f7-8935-7f2a23667f09
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=eea71cfd-a540-49f7-8935-7f2a23667f09 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid eea71cfd-a540-49f7-8935-7f2a23667f09
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=eea71cfd-a540-49f7-8935-7f2a23667f09 ro single
initrd /boot/initrd.img-2.6.28-11-generic
title Ubuntu 9.04, memtest86+
uuid eea71cfd-a540-49f7-8935-7f2a23667f09
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
Can anyone point me in the right direction as far as making changes to the entry go so I don't screw it up?
confused57
May 28th, 2009, 04:32 PM
four o two,
The Window's entry listed in the first post in this thread should work for you:
title Windows Vista
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
You might want to add the entry at the very bottom of your menu.lst(after the line ###END DEBIAN AUTOMAGIC KERNELS LIST).
Did you have the Vista drive disconnected when you installed Ubuntu, since a Vista boot entry wasn't automatically added to your menu.lst?
BarryGordon
June 8th, 2009, 07:35 PM
I also wish to put up Ubunto as a dual boot but my config is a little strange. The machine is running windows XP PRO SP@ 32 bit. I shotly plan to upgrade to XP 64 bit but that should not make a difference. The drive configuration has me a little concerned.
The physical layout is three SCSI drives on a single SCSI controller with SCSI-0 being the boot drive. I also have a 120 GIG PATA drive on the secondary IDE channel. The primary IDE channel is running a CD ROM drive.
Windows reports 4 scsi drives which makes no sense, also the Storage manager seems to thing they are all SCSI drives, but that is definately not the case. Drive capacities are all correct in the storage manager.
Questions:
Should I disconnect the SCSI drives and then load Ubuntu on the IDE drive, or should I leave them connected and load up Ubuntu on the IDE drive? Does it make a difference?
I would like the boot process to always go to Windows unless I intervene in the timeout period. I assume I need to use GRUB to do that which makes me believe I should leave the SCSI drives connected so that GRUB gets put there (SCSI-0) and the Ubunto system goes to the IDE drive.
I would like to be able to see the scsi drives from Ubunto and the Ubunto drive from Windows. Will that be the case? All the windows drives are formatted as NTFS partitions with each drive containing only one partition.
Any and All Help appreciated.
confused57
June 8th, 2009, 10:28 PM
Windows reports 4 scsi drives which makes no sense, also the Storage manager seems to thing they are all SCSI drives, but that is definately not the case. Drive capacities are all correct in the storage manager.
Not a problem, this is the way Ubuntu recognizes drives, regardless of whether they're SATA or IDE(sda, sdb ,sdc, sdd, etc)
Should I disconnect the SCSI drives and then load Ubuntu on the IDE drive, or should I leave them connected and load up Ubuntu on the IDE drive? Does it make a difference?
You can leave the SCSI drives connected, that way the Ubuntu installer should automatically enter a Window's grub boot entry. I would recommend setting your IDE drive as the first hard drive booted in bios, if your system is capable of this, before you boot the live cd to install Ubuntu. If your system isn't capable of booting first to IDE, then it should be OK to install grub's IPL to the mbr of your current boot drive. You might want to check out this link for restoring Window's IPL to the mbr, if there is a problem installing Ubuntu and you can't boot into any OS:
http://members.iinet.net.au/~herman546/p18.html
I personally would download & burn a copy of the Super Grub Disk, mentioned in the link.
I would like to be able to see the scsi drives from Ubunto and the Ubunto drive from Windows. Will that be the case? All the windows drives are formatted as NTFS partitions with each drive containing only one partition.
You will be able to see your NTFS partitions in Ubuntu, but you'll need fs-driver installed in Windows XP to recognize Ubuntu(ext3) from XP.
I would like the boot process to always go to Windows unless I intervene in the timeout period. I assume I need to use GRUB to do that which makes me believe I should leave the SCSI drives connected so that GRUB gets put there (SCSI-0) and the Ubunto system goes to the IDE drive.
A Window's entry should be added automatically to grub, but see these methods for setting which OS you want to boot first:
http://members.iinet.net.au/~herman546/p15.html
See the section on default operating system booted by grub.
BarryGordon
June 9th, 2009, 08:09 PM
Made progress but still confused. With rgeards to the machine I mentioned two posts above; Thank you for the reply Confused77. Perhaps you can help me some more.
This machine (lets call it Victor)has three drives connected to a PCI controller as SCSI id 0,1,2 (all Fujitsu drives). It has one drive as the Master on a mobo based IDE/SATA controller (Maxtor drive).
I booted the machine from the Ubuntu 9.04 distribution boot disk, and the only hard drive it found was the IDE drive (Maxtor). I then said what the heck, and decided to just do the install on the Maxtor drive which was what I wanted anyways. That went very well no issues. GRUB ended up being loaded onto the Maxtor drive.
If I now tell Bios Setup to boot from SCSI-0 it loads windows XP and windows knows nothing about the Maxtor drive, however the Windows Disk manager does know about the Maxtor drive and shows it with two partitions (as i suspect that is what Ubuntu set up). If I alter Bios Setup to boot from the Maxtor drive then GRUB shows up as I suspected it might, but to my surprise it knows about Windows and allows me to chain either to Windows XP on SCSI-0 or to Ubuntu on the Maxtor drive.
The above is actually close to what I want. All I need to do now is tell GRUB on the Maxtor drive that I want the default OS to be Windows. I intend to install Windows XP 64 bit this weekend and I think it will be superb as I wall have it go to SCSI-0 and all should be well with GRUB, Ubuntu and Windows XP 64.
Now let me tell you about another system lets call it TEST. It has Windows XP on drive C (IDE Primary Master 120 G), and has a second drive that Windows sees calling it "D" (IDE Primary Slave 100 Gig). I booted the same Ubunto distribution disk. It found both drives but would not let me load Ubunto on the 100 Gig Drive. It stated there was a partition problem, or something to that effect. I was unable to resolve the problem and ended up loading Ubuntu into the 120Gig drive by having Ubunto partition it and split it in half.
GRUB is on the 120 Gig drive as it should be and allows me to boot into Windows or Ubuntu. I fogot to check if Ubuntu can see the 100G drive, but since this is just for testing (this machine gets Windows 7 as soon as I can burn an error free copy) It is not an issue. However I am curious, why wouldn't Ubuntu let me install onto the 100 Gig Drive that it clearly knew about.
I will do some more reading but any assistance will be appreciated.
confused57
June 10th, 2009, 10:42 PM
Thanks for the update, glad you were able to successfully set up a dual-boot.
On your test computer, open a terminal & post the output of:
sudo fdisk -l
-l is a lowercase "L"
There could be partitioning problems if a hard drive already has 4 primary partitions, which is the maximum
number allowed on a drive...however, you can have an extended primary partition within which you can have numerous logical partitions.
aharp
June 11th, 2009, 11:06 AM
Hope this might help someone: I was in a little different situation than confused57 who wrote the very helpful first message in this thread. I had installed Hardy on the slave drive (drive 1 in the BIOS) with win98 on the master (hd0). So I thought I had to modify the map instructions for that reason so as to boot from the Linux drive. However, win98 would not start after I swapped the drive designations. I tried the original instructions but they didn't work either. Here is what did work:
title Windows 98
map (hd0,0) (hd1,0)
map (hd1,0) (hd0,0)
rootnoverify (hd1,0)
chainloader +1
android73
June 12th, 2009, 01:49 PM
Hi everyone,
I too am new to Ubuntu and Linux in general, and am in the process of installing a dual boot system with my existing Windows XP. I have installed Ubuntu on a separate internal SATA drive, after unplugging my other Windows drive which is also a SATA. I have done all the updates and am ready to modify the grub menu and re-plug in my Windows drive, but am still unsure after reading all these posts what lines to add to it based on my setup. I am not sure what the difference is between inserting this:
title Windows XP
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
...and inserting this is:
title Windows NT/2000/XP (loader)
map (hd0,0) (hd1,0)
map (hd1,0) (hd0,0)
rootnoverify (hd1,0)
makeactive
chainloader +1
I have found both of these in different threads as solutions. But have no idea if this applies to my setup. Does the "hd" designation apply to an IDE type drive? Does this need to be changed to "sd" designation for SATA drives? Im confused. Below is my fdisk and menu.lst files. Thank you in advance for any assistance you guys could provide. These are really helpful forums!
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0004d8e5
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1245 10000431 83 Linux
/dev/sda2 1246 60303 474383385 83 Linux
/dev/sda3 60304 60801 4000185 82 Linux swap / Solaris
andrew@andrew-desktop:~$
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=f54083ad-d142-4448-b5ef-22073bdcd61c ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=f54083ad-d142-4448-b5ef-22073bdcd61c
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid f54083ad-d142-4448-b5ef-22073bdcd61c
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=f54083ad-d142-4448-b5ef-22073bdcd61c ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid f54083ad-d142-4448-b5ef-22073bdcd61c
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=f54083ad-d142-4448-b5ef-22073bdcd61c ro single
initrd /boot/initrd.img-2.6.28-11-generic
title Ubuntu 9.04, memtest86+
uuid f54083ad-d142-4448-b5ef-22073bdcd61c
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
confused57
June 12th, 2009, 10:32 PM
android73,
I've always used the entry in my first post here for booting Windows on a 2nd hd:
title Windows XP
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
If this doesn't work, then you can try the other entry, which I've never used.
"hd" is used for both IDE & SATA drives in grub.
I see you were given the same solution in your other thread:
http://ubuntuforums.org/showthread.php?t=1185829
marcvangend
June 13th, 2009, 07:05 PM
I've been reading dozens of pages about dual booting Ubuntu and WinXP with GRUB, but I can't get it working :(
These are my disks:
marc@marc-ubuntu:/$ sudo fdisk -lu
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x4a2c4a2c
Device Boot Start End Blocks Id System
/dev/sda1 * 63 102398309 51199123+ 7 HPFS/NTFS
/dev/sda2 102398310 488375999 192988845 f W95 Ext'd (LBA)
/dev/sda5 102398373 488375999 192988813+ 7 HPFS/NTFS
Disk /dev/sdb: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders, total 80293248 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xf4407582
Device Boot Start End Blocks Id System
/dev/sdb1 * 63 76903154 38451546 83 Linux
/dev/sdb2 76903155 80292869 1694857+ 5 Extended
/dev/sdb5 76903218 80292869 1694826 82 Linux swap / Solaris
Disk /dev/sdc: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders, total 160086528 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x7d97ed27
Device Boot Start End Blocks Id System
/dev/sdc1 * 63 4209029 2104483+ 7 HPFS/NTFS
/dev/sdc2 4209030 160071659 77931315 f W95 Ext'd (LBA)
/dev/sdc5 4209093 160071659 77931283+ 7 HPFS/NTFS
SDA is a SATA disk, sda1 contains Windows XP. I didn't change anything on this disk, I can still boot from it into WinXP when I set SDA as primary boot device in my bios.
SDB is an IDE disk with Ubuntu / GRUB. I can boot into Ubuntu with GRUB when I set SDB as primary boot device in my bios.
SDC only contains files.
My menu.lst tries to boot WinXP with these lines:
title Microsoft Windows XP Professional
rootnoverify (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
But when I select this boot option, I get an error message:
NTLDR is missing
Press Ctrl Alt Del to Restart
I have tried tweaking the map command and tinkering with Windows' boot.ini, but without succes. I have read somewhere that at least this means that (hd1,0) is correct, but that's not much of a consolation as long as I get this error...
Your help is really appreciated!
confused57
June 13th, 2009, 11:07 PM
marcvangend,
I believe grub is pointing to your NTFS partition on sdc1, you might try this entry for XP on sda1:
title Microsoft Windows XP Professional
rootnoverify (hd2,0)
savedefault
makeactive
map (hd0) (hd2)
map (hd2) (hd0)
chainloader +1
marcvangend
June 14th, 2009, 04:32 AM
confused57++!
Thank you so much, I remember I already tried hd2, but I must have made some kind of mistake or typo then #-o
So, does this mean that if you're booting from an IDE device, all IDE disks get their number first and the SATA disks are second in line?
Well, at least we learned that the "NTLDR is missing" error does not mean that GRUB is pointing to the right disk. Thanks again.
confused57
June 14th, 2009, 09:06 AM
confused57++!
Thank you so much, I remember I already tried hd2, but I must have made some kind of mistake or typo then #-o
So, does this mean that if you're booting from an IDE device, all IDE disks get their number first and the SATA disks are second in line?
Well, at least we learned that the "NTLDR is missing" error does not mean that GRUB is pointing to the right disk. Thanks again.
Glad you were able to get it working...it does seem most of the time IDE drives are numbered before SATA in grub's boot sequence. Jaunty is the first Ubuntu version that didn't number my 3 hard drives(IDE, 2 SATA) according to bios boot sequence, all previous versions "guessed" it correctly.
Mukumbu
June 16th, 2009, 01:50 AM
I can't seem to get my xp to boot after following your instructions.
here is my fdisk output:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000145d2
Device Boot Start End Blocks Id System
/dev/sda1 1 54817 440317521 83 Linux
/dev/sda2 * 54818 60800 48058447+ 7 HPFS/NTFS
Disk /dev/sdb: 13.6 GB, 13672931328 bytes
255 heads, 63 sectors/track, 1662 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000277ec
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1030 8273443+ 83 Linux
/dev/sdb2 1031 1094 514080 7 HPFS/NTFS
/dev/sdb3 1095 1662 4562460 5 Extended
/dev/sdb5 1095 1662 4562428+ 82 Linux swap / Solaris
and the fstab:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sdb1
UUID=ac335259-1c06-4f61-9000-a2450c999414 / ext3 relatime,errors=remount-ro 0 1
# /dev/sda1
UUID=71436056-c354-4909-8cdc-08b873c132dd /home ext3 relatime 0 2
# /dev/sdb5
UUID=1d6d7d36-1416-45e4-8831-2be16a2b1fb0 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
This is the entry I added to the bottom of menu.lst:
title Windows XP Pro SP3
rootnoverify (hd1,1)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
I get the "NTLDR is missing" message.
Please help.
Thanks.
unutbu
June 16th, 2009, 08:13 AM
Mukumbu, you have two NTFS partitions: sda2 and sdb2.
Judging from the size of the partitions, I am guessing that sda2 contains your Windows XP.
sda2 in GRUB-speak is (hd0,1).
So try the following: Boot Ubuntu. Edit /boot/grub/menu.lst:
gksu gedit /boot/grub/menu.lst
Add a new boot stanza to the bottom of the file:
title Windows XP Test
root (hd0,1)
makeactive
chainloader +1
Save and exit gedit. Reboot the machine, get to the GRUB menu, and select the line which says "Windows XP Test". See if that allows you to boot Windows.
Mukumbu
June 16th, 2009, 12:02 PM
That worked!! So now I just delete my old XP entry and rename test.
Thank you very much. I've been trying to get this to work since last weekend.
val_u
June 18th, 2009, 05:18 PM
sudo fdisk -l
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x407752c6
Device Boot Start End Blocks Id System
/dev/sda1 * 1 4462 35840983+ 7 HPFS/NTFS
/dev/sda2 4463 38913 276727657+ f W95 Ext'd (LBA)
/dev/sda5 4463 15936 92164873+ 7 HPFS/NTFS
/dev/sda6 15937 38913 184562721 7 HPFS/NTFS
Disk /dev/sdb: 750.1 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8a75d228
Device Boot Start End Blocks Id System
/dev/sdb1 13 91202 732478132 f W95 Ext'd (LBA)
Partition 1 does not end on cylinder boundary.
/dev/sdb2 * 1 3 24066 83 Linux
/dev/sdb5 14661 40157 204800368+ 7 HPFS/NTFS
/dev/sdb6 40157 65654 204800368+ 7 HPFS/NTFS
/dev/sdb7 65654 91202 205213648+ 7 HPFS/NTFS
/dev/sdb8 13 985 7815559+ 83 Linux
/dev/sdb9 986 1958 7815591 82 Linux swap / Solaris
/dev/sdb10 1959 2202 1959898+ 83 Linux
/dev/sdb11 2203 3498 10410088+ 83 Linux
Partition table entries are not in disk order
Disk /dev/sdc: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30bfa281
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 1862 14956483+ 7 HPFS/NTFS
/dev/sdc2 1863 19457 141331837+ f W95 Ext'd (LBA)
/dev/sdc5 1863 7727 47110581 b W95 FAT32
/dev/sdc6 7728 19457 94221193+ 7 HPFS/NTFS
BIOS sees these disks in the order: sdc, sda, sdb.
Window XP is on the sdc1.
GRUB is on the sdb2.
cat /boot/grub/device.map
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc
menu.lst
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdc1
title Microsoft Windows XP Professional
rootnoverify (hd2,0)
savedefault
map (hd0) (hd2)
map (hd2) (hd0)
chainloader +1
And I get
NTLDR is missing
press Ctrl+Alt+Del to restart
every time I choose to load Win in the menu.
I tried to add
makeactive
and only received infinite
Starting up...
So for changing the OS I need every time to go to BIOS, to enter the password and to change which HDD I want to boot from.
Can anybody help me to find the right way with GRUB?
unutbu
June 18th, 2009, 05:31 PM
val_u, try adding these two stanzas to the end of your menu.lst:
title Microsoft Windows XP Professional (hd1,0)
rootnoverify (hd1,0)
savedefault
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
title Microsoft Windows XP Professional (hd0,0)
rootnoverify (hd0,0)
savedefault
chainloader +1
Then reboot and try booting each of these. Does either work?
If not, what error message(s) do you receive?
val_u
June 18th, 2009, 06:43 PM
Second group gave me infinite Starting up...
And first one actually successfully loaded my Win.
unutbu, thank you very much. You broke my 2+ weeks chain of constant rebooting. One of my experiments was with hd1,0, but instead of maps it had makeactive.
Just for curiosity - is there any reasonable explanation why there should be hd1,0 instead of hd2,0?
And again, thanks. You saved me.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.