FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Tutorials-How To Install Winxp And Linux To The Same Compute





dodomi
when I install a double boot linux/winxp, I always want to keep the Windows boot menu to choose the operating symtem. This is what I usually do:

-Install Winxp
-Install linux (if you dont have space to create a new partition for linux, you have to use partition magic to reduce the size of the WinXP partition and leave some space to create the partition for linux. You can create the partition during the linux setup.
- During the linux setup, choose to install the boot manager (lilo or grub) in the boot sector of the partition where you are installing linux (not in the MBR).
- When you finish the linux installation you wont be able to boot Linux so you have to boot with the linux cd and when you get the prompt create a file with the first sector of the partition where you installed linux
(let's suppose that the partition is hda2, and the file containing the 1st sector is linboot.sec):

dd if=/dev/hda2 of=linboot.sec count=1

you will need to copy this file to the partition (root directory) where you installed WinXP, so copy the file to a floppy (I think you wont be able to mount the WinXP partition to copy directly)
-Restart, boot WinXP, copy linboot.sec to c:\ , Modify the file C:\boot.ini (you will need to change its attributes, it is usually hidden and read only). You have to add a line for linux, the file should be like this:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn
C:\linboot.sec="Linux"
Restart and you should see the menu to choose the operating system. If you choose linux, you will see then the linux boot manager (grub or lilo), just configure grub or lilo to boot linux directly without prompting...

Ok, that's all... maybe too complicated (there should be an easier way.. probably using the linux boot manager to choose the OS)
qwerty
You can also instead Install Windows First Then Linux and when installing Linux install LILO or GRUB and have that as the bootloader.
Neus
qwerty wrote:
You can also instead Install Windows First Then Linux and when installing Linux install LILO or GRUB and have that as the bootloader.


isnt that what he put in the guide? while installing linux get a bootloader such as lilo or grub?

" During the linux setup, choose to install the boot manager (lilo or grub) in the boot sector of the partition where you are installing linux (not in the MBR)."

i forget how i did a dual boot on my old computer.. been too long... heh, but i managed to pull it off, worked nice (took me a few tries to get the right configuration file writen cause my system had like 5 hd portions.. haha)

anyways, yeh i had it set up so i had 3 seconds to choose between a default load into windows or to switch it to linux, as other family members would get on the computer that would have no clue what to do with linux (even if it was in kde or gnome Wink lol)
ldnet
good post might help some people out, right now im using Winxp Home and i will be installing the latest version of Mandrake Linux.
Related topics
Which Linux?
FAT32 or NTFS?
How can I install Linux without CD-Rom & FDD?
What Made You Switch To Linux?
What do you think of this rig?
I Need distributed Operating System
usb pen linux dristo
What Hard Disk Do You Use? Options
Help with linux
What is your operating system?
What Linux?
linux on a dell laptop
Problems to install LAMP with phpMyAdmin
PROBLEM::: HELP ME PLEASE::: LINUX::::
Reply to topic    Frihost Forum Index -> Miscellaneous -> Tutorials

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.