Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
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.
A friend of mine is currently using Linux, but not Windows. He is about to get a new hard drive and is going to put Windows XP on it, but wants to keep Linux as a dual boot. How can i create a dual boot for this?
This isn't as hard as it looks. have a search around the forum, as there are many discussions on this.
Basically, you need a floppy disk and a screwdriver.
Put grub on a floppy disk. Unplug the linux harddrive. Install the new harddrive. Remove the floppy disk. Do the windows XP install stuff. plug in the linux harddrive, put in the floppy disk, boot to linux. edit the grub menu so that you can boot windows from it. install grub to harddrive. (linux)
You don't need a screw driver nor even a floppy drive if you have the bootable installation disk of the linux distro. First just install windows on the second disk.
I will presume that the first hard drive is the primary master and the second is the primary slave.
After installing windows, boot with the installation CD, and type the following command in the command prompt that arrives at the begining:-
linux rescue
Follow the instructions until the command prompt arrives.
chroot to the installation image of your linux installation and type grub-install /dev/hda
reboot and boot from your hard drive and when in the ,linux environment add the following lines to your /etc/grub.conf file
title Windows
rootnoverify (hd1,0)
chainloader +1
Last edited by debasish_5849; 04-21-2006 at 07:10 AM..
the screw driver reference was humourous in intent- you do need some way to get into the Computer to change the harddrive, don't you? (unless you have those fancy thumb screws)
Windows loves to take over your computer. play it safe and disconnect the other harddrive, even if you go with the bootable cd method.
debasish_5849's method works if you have a well known distro (suse, fedora, mandriva etc).
Check the links, especially the gnu manual, since your setup might differ from debasish_5849's.
cheers.
titanium_geek
Last edited by titanium_geek; 04-21-2006 at 09:14 AM..
I do a weekly install fest, actually a Linux Workshop; & I agree w/ titanium_geek -- protect the Linux install by disconnecting it during the Win install.
The GRUB stanza from debasish_5849 will probably work, but adding "makeactive" is sometimes helpful:
Code:
title "Winders"
rootnoverify (hd1,0)
makeactive
chainloader +1
Remember the title line is just the menu entry that will be displayed -- it can be anything the owner wants.
Thank everyone who has helped me. I really appreciate it, and my friend does too. I think it's nice that you guys have taken time out of your schedule to help me with this.
Thank everyone who has helped me. I really appreciate it, and my friend does too. I think it's nice that you guys have taken time out of your schedule to help me with this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.