Ask the Expert

GRUB dual-boot configuration issues, including a reader's response

I'm trying to do a dual-boot install using GRUB, but I suspect the configuration is off causing instability on the Win XP side (crashes, IO problems etc.) I was under the impression this was supposed to be more or less automatic. Is there a reference where I can manually check this stuff?

Requires Free Membership to View

I had lots of issues when I was setting up a dual-boot, to the point that I abandoned the effort when I calculated the value of my time against buying a second machine. However, there are lots of resources on the Web. When I was searching around via Google I found many discussions of the topic.

Typical problems were caused by hard drive definition in the BIOS and getting the boot sectors right. Another problem is that Windows expects to own the whole disk, so it's important to load Linux after installing Windows. I don't recall hearing about config issues, per se, however, and I didn't experience any issues like that.


Editor's note: A reader responded to this expert question with his own experiences trying to set up a dual-boot.

"I'd like to expand on your answer to the gentleman with the XP/Linux dual-boot problem. I've been doing dual boot (actually in a lot of cases, multi-boot) of Microsoft and various Linux distros since Red Hat 6. The most stable setup I've found is to use the Windows boot manager as the primary boot manager. Then, install LILO or GRUB on the partition in which the Linux boot code (/boot or the root if you don't have a seperate /boot slice) is installed -- which can be either a primary partition or a logical "drive" of an extended partition (NOT to the MBR). Extract the boot sector from the linux partition using DD and copy it to the root of the Windows boot drive.

Add in an entry in boot.ini pointing to the Linux boot code file. When the machine is booted, the Linux entry will show up; if it is selected, control is transferred by the Windows boot manager to the LILO/GRUB install on the Linux partition and away you go! Right now, I have two machines here that are setup multi-boot (one with 4 different Linux distros) and it works great. One caveat -- you can have a max. of 10 entries in boot.ini."

This was first published in November 2006

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: