LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-15-2005, 09:43 PM   #1
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Rep: Reputation: 30
dual-boot with winxp


I want to have XP installed also for working on music.

Is it possible to dual-boot after installing linux first? I always hear about Windows being installed first, and THEN linux (write lilo to the MBR and it will see Windows).

Right now, I only have my linux swap partition and 1 linux partition (10 GB) where the rest of my linux system is. No other partitions for /home or anything (I'm still new, afterall).

I have almost 70 GB left on the drive... so if I boot from an XP CD, will it let me create a partition AFTER the linux partitions and install there? And if so, how do I get lilo to see the XP partition and allow me to choose to boot from it?

Thanks,
Seiken
 
Old 02-15-2005, 10:15 PM   #2
JSpired
Member
 
Registered: Sep 2003
Distribution: Slackware, Suse 9.2
Posts: 565

Rep: Reputation: 30
In my experience, it's always best to install Windows first, followed by Linux, though I know it can be done in reverse. Use the search button and you'll find some valid examples of your situation.
 
Old 02-16-2005, 08:03 AM   #3
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by JSpired
In my experience, it's always best to install Windows first, followed by Linux, though I know it can be done in reverse. Use the search button and you'll find some valid examples of your situation.
I have searched and searched, but can't seem to find a situation where windows gets installed AFTER linux. I searched around google too and got the same results. Maybe I'm just not wording my search properly.

What will happen if I just go ahead and install Windows on a new partition? Will it screw everything up? Will lilo see it? Will I have to add it to lilo somehow?

Thanks for any help anyone can give me on this.
 
Old 02-16-2005, 10:20 AM   #4
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
Windows needs to be on a primary partition, and it really *wants* to be in the first partition on the disk. So be sure you install to a primary, not extended, partition.

Lilo will NOT see the new Windows installation. In fact, Lilo will be GONE! Windows will overwrite the MBR with its own. You will need to boot into your Linux via a boot disk of some kind (floppy or cdrom - I use knoppix for these situations). Once you are into your Linux system, you will need to edit your /etc/lilo.conf file to recognize the Windows partition, and then run lilo (as root) to install it to the MBR.

It is just generally easier to install WIndows first, then Linux & lilo can handle it all automatically.
 
Old 02-16-2005, 11:16 AM   #5
Shentar
LQ Newbie
 
Registered: Feb 2005
Posts: 6

Rep: Reputation: 0
I just recently did this on my laptop. When WinXP installs it disables any other non-windows partitions on the hard drive, but it does tell you that you can reactivate them once Windows is installed. However the catch to this is that once you get into Windows, the option to reactivate them is greyed-out.

In order to get Windows and Linux installed and not encounter a GRUB stage 2 lockup, I installed Linux and gave it the primary partition, then installed Windows XP, then reinstalled Linux over the previous installation to reactivate the partitions. Now it works perfectly. I am sure there was an easier way to do it though, but I'm in college and have tons of free time lying around
 
Old 02-16-2005, 11:32 AM   #6
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Quote:
...then reinstalled Linux...
I guess this part was a little overdone. It is sufficient to re-install the bootloader instead of the whole system. You can activate partitions using e.g. fdisk.

If this doesn't work, try to modify /boot/grub/menu.lst:

Code:
title windows
   hide (hd0,0)
   unhide (hd0,1)
   root (hd0,1)
   makeactive
   chainloader +1
You may need to adjust this to match your actual partition table (in this example (hd0,1), Windows is on /dev/hda2)

Last edited by abisko00; 02-16-2005 at 11:35 AM.
 
Old 02-17-2005, 07:15 AM   #7
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
Thanks for the directions
 
Old 02-17-2005, 09:14 AM   #8
cliff76
Member
 
Registered: Feb 2005
Location: PA
Distribution: Fedora Core 3
Posts: 48

Rep: Reputation: 15
It's also possible to configure the Windows Boot Loader to boot into Linux. You copy the bootsector to a DOS formatted floopy in Linux then boot into Windows (after it's been installed) and copy the boot sector from the floppy to the hard drive. You then modify your Boot.INI settings (use msconfig from the run dialog) and put an entry in the points to the copied boot sector. I've done it this way on my machine because I was paranoid about overwriting the Windows bootloader and not yet professional enough to assume Linux full time. It works just fine and I can now boot back and forth between boot loaders sending the Windows boot loader to Linux and the Grub to Windows without ever even loading an OS. Let me know and I can post the configuration for BOOT.INI.
 
Old 02-17-2005, 03:53 PM   #9
noridlo45
LQ Newbie
 
Registered: Feb 2005
Location: Georgia, USA
Distribution: Kunbuntu 12.04
Posts: 14

Rep: Reputation: 0
My boots are tired,

I'm a newbie but what I want to do is to boot both XP and Linux simultainously then just hot key from one to the other. You know, like virtual systems. Does anyone know of how this might be accomplished, or is it even possible ? Gosh, it has to be.
 
Old 02-17-2005, 04:04 PM   #10
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
yes, it is possible... with 2 PCs and a KVM switch
 
Old 02-17-2005, 05:15 PM   #11
noridlo45
LQ Newbie
 
Registered: Feb 2005
Location: Georgia, USA
Distribution: Kunbuntu 12.04
Posts: 14

Rep: Reputation: 0
Hi Seiken,

That's what I'm currently doing. Problem is my room is so full and I wanted to clear clutter. I just found out about VMWare but I'm not sure this is what I want (lotsa $$$). Maybe I will just keep on with two PCs and the KVM, it works well and I like everything when it works well.

I'm thinking of trying to move to two notebooks and the KVM to save space.

Ya gotta know I'm having a lot of fun learning about Linux and it's alternatives to that other OS.

Happy days are here again!
 
  


Reply



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
Dual boot WinXP/Debian, grub error booting WinXP ChemBot Linux - General 5 02-22-2007 04:13 PM
Need help fixing boot problem on Ubuntu/WinXp dual-boot Ay-Karamba! Linux - General 5 09-06-2005 09:20 PM
Need dual boot help...LILO..Winxp wont boot Scrag Linux - Hardware 2 09-01-2004 12:26 AM
Advice (and some) Needed: Dual-HDD, Dual-Boot - Linux, WinXP elnomadkvn Linux - General 1 03-28-2004 10:11 AM
Redhat 9 & winxp dual boot -xp won't boot opivy Red Hat 3 01-02-2004 01:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:59 PM.

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
Open Source Consulting | Domain Registration