LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-26-2006, 04:51 PM   #1
okok
Member
 
Registered: Jan 2002
Distribution: Ubuntu Mate
Posts: 110

Rep: Reputation: 15
Intsalling Windows XP after Linux


It will take some time before I get my Windows XP CD and in the meantime I want to install Linux.

But I read that the best way to insure both OSs are availoable at startup is to intall Windows first, and then install linux and let the installer handle whatever is necessary.

If I just leave a partition for windows and install Linux now, what will I have to do in order to get the dual boot working properly after Win XP is intalled at a later stage?

I'll be using either Mepis or Mandriva.
 
Old 04-26-2006, 05:44 PM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
The short answer is: it depends. Assuming that you have a single physical disk with multiple partitions, what will happen when you install windows is that it will override the master boot record. So, in order to boot GNU/Linux the easy way, you will want to restore the boot loader.

The--probably--easiest way is to have some bootable media (floopy or Ubuntu live CD) which will allow you to boot some GNU/Linux system. From there, chroot into your "real" filesystem root, and run grub-install as root.

Make sure to read the grub manual first, and try "practicing" by installing grub on, say, a floppy.
 
Old 04-26-2006, 05:47 PM   #3
okok
Member
 
Registered: Jan 2002
Distribution: Ubuntu Mate
Posts: 110

Original Poster
Rep: Reputation: 15
Thanks. I hope that from reading that manual I'll also understand what "chroot into your "real" filesystem root" means...
 
Old 04-26-2006, 06:12 PM   #4
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
run the commands "df -h", "mount" and "fdisk -l" (the last one probably needs root); you should be able to find out which partition (something similar to "hda1") is mounted on "/"; in your "bootstrapping" system (live CD / boot floppy), mount that partition ("mount /dev/hda1 /mnt"), then run "chroot /mnt"; you may want to manually mount the partitions listed in /etc/fstab after chrooting.

Note, though, that if you're booting your system almost-as-normal with a boot floppy, you might not need this; I have needed this when booting from a live CD.

hth --Jonas
 
Old 04-26-2006, 07:02 PM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
The order of installation doesn't matter but with XP availaable first most Linux will set up the dual boot automatically.

Doing the opposite way is OK and jonaskolker has given a good run down of what is needed.

The only thing I add is some Linux may use Lilo instead Grub. The last link of my signature carries the commands to restore XP, Grub and Lilo.
 
  


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
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology DSargeant Linux - Newbie 35 02-07-2006 04:29 PM
Intsalling aim on slackware +0+4|_ n00b Linux - Newbie 5 01-30-2005 07:47 PM
Intsalling J2SDK on SuSe9.1 John_Emad Linux - Software 1 01-28-2005 08:00 PM
Intsalling linux for the first time onionsoup Linux - Newbie 4 01-13-2004 09:46 PM
Intsalling from .rpm files sandy Linux - Newbie 4 09-12-2002 05:04 PM

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

All times are GMT -5. The time now is 11:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration