Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.