Question Locked

Dual-booting Ubuntu and XP (yes, again)...

0 helpful
13 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Thanks to a number of good answers to an earlier question, I bit the bullet and started working on installing XP to my secondary hard drive this afternoon. Which of course leads to another question:

Windows would not install without my deleting one of my Linux partions for Windows to load setup files to (presumably because Ubuntu is on the primary master). So I did that. This means that I am also going to have to redo Ubuntu - no biggie, talk about a quick install!

So, once I go back and redo Ubuntu, will getting rid of the partition that Windows wanted for setup be a problem as regards XP in future?

Thanks for any and all answers and info!

edit typo

13 replies

by techienate

I have successfully dual-booted XP and Vista on my laptop for a while. As I understand, you are going to re-install ubuntu. That's fine, although some linux guru's would have a faster way of fixing the master boot record (something on your hard drive that tells it where too look for your operating system to start booting), though I can't help you with that. If you simply re-install ubuntu (assuming you are using a recent version), ubuntu will automatically detect the windows installation and will use GRUB, an open-source boot-loader, to create a custom mbr that will give you a menu at boot asking you which operating system you want to load every time you boot your computer, in this case, Windows XP or ubuntu. The default option will be to boot ubuntu, but this can be changed, (as well as other boot setting) in the settings in the menus in ubuntu (without doing any command line stuff!)

Problems in the future? Not really, but if you reinstall windows or run fixmbr from recovery console, you will need to re-install ubuntu again in order to be able to dual-boot again.

by Former member

How does the OP wish to boot? From Windows boot manager or from GRUB.

Each have their advantages.

If From the faster Windows boot manager and using XP, first download 'dd for windows', then use the distro's install disk and boot linux. When Linux is booted invoke 'grub -install /dev'. This may be incorrect from memory so man grub. Install Grub in the root directory of the Linux install. You should know where you istalled Grub, i.e. /dev/, /dev/sdb1, etc. Then boot to Windows go to, the directory you installed 'dd for Windows' in and type dd --list. You will get a listing of partitions in a psuedo Linux format something like "\\?\device1\harddiskvolume1". Once you have identified the partition where you installed Grub, or for that matter Lilo, type dd if=\\?\device1\HarddiskVolume1 of=c:\Grub.mbr count=512, bs=1. This will copy the first 512 bytes of the Linux boot partition to the file Grub.mbr in the root of the Windows install, i.e. c:\. At the bottom of the boot.ini file enter this line: c:\grub.mbr="Linux". The Windows boot manager will then give you an option to boot Linux from the boot screen.

If you choose to use grub of lilo then the instructions are correct in the previous post.

by boxfiddler Hot topic

Ubuntu was originally and will be again on the primary master, and XP is now on the secondary master, with the exception of that freaking system partition which I suspect I should not delete.

Is there anything in the above post that you would change under these circumstances?

And again, thank you normhaga!

edit: minor edit

by intronixnetworks

Machine came with Ubuntu pre installed I need to first repartition the drive and iinstall XP on C: and then later install RHEL with grub . The problem is that I am not able to repartition this disk with ubuntu loaded . How do I proceed ? Need HELP !!!

by boxfiddler Hot topic

I have examined the contents of this partition that I would like to get rid of now that XP is up and running. It is considered by XP to be a System partition with a listed capacity of 2.87G. It contains 17.7 M of data in the form of hidden folders and files. Recycler, System Volume Information, boot.ini, ntdetect.com and ntldr. I know that the last 3 are vital to the boot process.

Are you telling me that I can delete this partition when I redo Ubuntu and it will not affect XP's ability to boot?

I don't mean to be insulting, just double-checking.

And again, thank you. Expect a thumb if all goes well.

by Former member

not if you want Windows to operate without having to reload it.

When you boot windows from linux, it first calls ntdetect, the boot.ini. then if XP is selected, ntldr.... The exact order, I no longer remember, but DO NOT delete the partition unless you no longer want Windows.

Read the resppnce to the previous post, or PM me.

by boxfiddler Hot topic

and thanks for the invite. I will if I encounter any probs.

As Ubuntu is slated to reside on the primary master, is it likely that GRUB will offer me the option to boot from either/or at each powering on?

And, just in case; is there a way to move from 1 OS to the other without powering off?

by Former member

If what you mean is will grub offer you the opportunity to boot either OS at boot yes.

If what you mean is will grub allow you to choose either boot loader, then the answer is more muddled. When properly set up, grub will boot to stage 1., from there it offers the opportunity to boot either Linux or Windows. If you choose Linux, grub boots stage 2. However, if you opt for Windows, then grub start the Windows boot loader.

by boxfiddler Hot topic

is no. I get all involved in some serious 'wishful thinking' sometimes and the gobbledygook from that gets intertwined with reality.

I was asking about being able to switch back and forth between Ubuntu and XP without powering off. I'm betting on 'no'.

Thanks for all your help. I've just about got everything together and running.

by Former member

Yes and no.

No - if you do the standard install. In this case you will have to reboot.

Yes - if you install a virtual machine like VMWare which is not free. However, there are a few free VM's for Linux such as Xen and Quemu. Unfortunately I do not know much about them.

Sorry, Computer Science is full of 'maybes' and 'possiblies' and 'it depends.'

by boxfiddler Hot topic

having the boot partition on 1 hard drive and WinXP on the other! Any thoughts, folks?

This discussion is closed to new replies.