LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-04-2007, 10:49 AM   #1
MicahCarrick
Member
 
Registered: Jul 2004
Distribution: Fedora
Posts: 241

Rep: Reputation: 31
Installing Windows on Linux system


I've installed dual-boot systems many times-- usually starting with Windows. I have a system running Ubuntu right now and I need to install Windows and Fedora on another hard drive for testing some software.

Can someone point me in the right direction for setting this up? I want to make sure Ubuntu and it's boot loader are the primary OS/boot loader.
 
Old 10-04-2007, 11:06 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Partition first, then install Windows to a partition. Windows will blow away the bootloader, so then you have to redo grub. Probably from a LiveCD.. I'd ask Google.
 
Old 10-04-2007, 11:13 AM   #3
MicahCarrick
Member
 
Registered: Jul 2004
Distribution: Fedora
Posts: 241

Original Poster
Rep: Reputation: 31
That's what I thought. Was hoping maybe there was some way to not allow Windows to install it's boot record. What was I thinking.

Thanks.
 
Old 10-04-2007, 11:23 AM   #4
redgoblin
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 189

Rep: Reputation: 41
Unfortunately Windows will give you MBR a thorough kicking.

I assume you have two drives - lets call them X and Y. If Ubuntu is on X and GRUB is on X then take it out of the machine. Install Windows on Y and let it kill the MBR. Then swap them back and boot Ubuntu with GRUB as normal. You'll now need to update GRUB with info on the where abouts of Windows.

Alternatively, I recall you can do something like dd the first 512 bytes of the boot drive to a file that you drop into the root of Windows C drive. Then you can change the boot.ini settings of windows to give you a multi boot menu. But as AlucardZero said, I’d Google that one.

Good luck.

---
Corrected spelling
---
 
Old 10-04-2007, 11:32 AM   #5
MicahCarrick
Member
 
Registered: Jul 2004
Distribution: Fedora
Posts: 241

Original Poster
Rep: Reputation: 31
Thanks. I like the idea of taking out my Ubuntu drive and then re-configuring grub. That should be safe and easy. Thanks!
 
Old 10-04-2007, 02:57 PM   #6
MicahCarrick
Member
 
Registered: Jul 2004
Distribution: Fedora
Posts: 241

Original Poster
Rep: Reputation: 31
I've installed Windows and Fedora Core 6 on a 2nd hard drive. So, I now have Windows on hdd1, FC6 on hdd2, and the swap on hdd3.

I'm trying to get them into the Ubuntu grub configuration, however, I can't seem to figure it out. This is what I'm trying:

Code:
title		Ubuntu, kernel 2.6.20-16-generic
root		(hd0,1)
kernel		/vmlinuz-2.6.20-16-generic root=UUID=db6b6639-ac4a-4c7f-93cb-a2c0817cdc09 ro quiet splash rootflags=data=writeback
initrd		/initrd.img-2.6.20-16-generic
quiet
savedefault

title		Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root		(hd0,1)
kernel		/vmlinuz-2.6.20-16-generic root=UUID=db6b6639-ac4a-4c7f-93cb-a2c0817cdc09 ro single rootflags=data=writeback
initrd		/initrd.img-2.6.20-16-generic

title		Ubuntu, kernel 2.6.20-15-generic
root		(hd0,1)
kernel		/vmlinuz-2.6.20-15-generic root=UUID=db6b6639-ac4a-4c7f-93cb-a2c0817cdc09 ro quiet splash rootflags=data=writeback
initrd		/initrd.img-2.6.20-15-generic
quiet
savedefault

title		Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root		(hd0,1)
kernel		/vmlinuz-2.6.20-15-generic root=UUID=db6b6639-ac4a-4c7f-93cb-a2c0817cdc09 ro single rootflags=data=writeback
initrd		/initrd.img-2.6.20-15-generic

title		Ubuntu, memtest86+
root		(hd0,1)
kernel		/memtest86+.bin
quiet

title		Fedora Core 6 (2.6.18-1.2798.fc6)
root		(hd1,1)
kernel		/vmlinuz-2.6.18-1.2798.fc6 ro root=LABEL=fedora rhgb quiet
initrd		/initrd-2.6.18-1.2798.fc6.img
        
title		Microsoft Windows XP Professional
root		(hd1,0)
savedefault
makeactive
chainloader +1
I've tried using hd1,1/hd1,0 and hd1,2/hd1,1

Any suggestions?
 
Old 10-11-2007, 09:53 AM   #7
redgoblin
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 189

Rep: Reputation: 41
Is Ubuntu booting ok with that particular GRUB configuration? GRUB starts counting drives and partitions from zero. So you're saying first disk, second partition?

The only other thing that springs to mind is, do you have initrd.img and vmlinuz (or symlinks to them) in the root directory? Sorry, I'm coming from a Debian mind set and would expect that to read;

Code:
/boot/initrd.img-2.6.20-16-generic
Not so sure about Ubuntu or Fedora.

Now I look at it again, shouldn't that line savedefault appear after chainloader +1. For example

Code:
title		Microsoft Windows XP Professional
root		(hd1,0)
makeactive
chainloader +1
savedefault
Hope that helps a little. Let us know if you find a resolve.
 
Old 10-11-2007, 10:21 AM   #8
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 572

Rep: Reputation: 38
The problem could be Windows. If you took out the 1st drive, and installed Windows, it thinks it's on hd0, where in reality it's hd1. I'm a LILO user, where you can fake it, so the drive look in a different order. Does grub have the ability this ability. Or, you may also run into problems with drive letters.

Cheers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Installing Windows 98SE as a secondary OS on a Linux System sausagejohnson LinuxAnswers Discussion 7 02-18-2019 08:57 PM
installing windows,unix and suse on system samba4010 Linux - General 1 07-18-2006 07:47 AM
After installing FC5 system will only boot into windows cagspy Linux - Software 2 05-15-2006 07:17 PM
Connecting remotely to a linux system from a windows system Die Woud Linux - Networking 3 04-23-2005 03:38 PM
Installing Redhat 9.0 on windows XP system shalinv Linux - Newbie 5 04-14-2003 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration