There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash drive driver drivers error ethernet excel freeze games gaming hard drive hardware hdmi internet laptop malware memory monitor motherboard music network obp operating system printer problem ram random registry router slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
dual boot with linux

Reply  
Thread Tools
ganguly's Avatar
Junior Member with 3 posts.
 
Join Date: Apr 2009
16-Apr-2009, 09:02 AM #1
dual boot with linux
Dear Sir,

I have machine with windows xp and cent os 5. It was running fine.
Now my windows corrupted for virus infection. Now i have to install windows agian and dont want to install linux again. If i install windows then GRUB will go out. I am a newbie to linux. There are some sort of expert command to install GRUB to run windows and linux again.


I have 160 gb HDD. i am using 60gb for windows and rest part is for cent os 5. I have that cent os installation CDs.

Would you tell me how can boot form GRUB, so that i can chosse windows and that preinstalled linux.

Thank you,
Subhankar
arochester's Avatar
Member with 453 posts.
 
Join Date: Jan 2007
Location: Scotland
Experience: Intermediate
16-Apr-2009, 10:05 AM #2
Have a look at "How to dual boot Linux and Windows XP (Linux installed first) -- the step-by-step guide with screenshots" on http://apcmag.com/how_to_dual_boot_l...rst.htm?page=1

It tells you how to back up your MBR and restore it using a Live Disk.
saikee's Avatar
Senior Member with 3,409 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
16-Apr-2009, 09:01 PM #3
Or follow Task B4, B5 or B6 of the last link in my signature.

A Linux Live CD is all you need to restore any Linux boot loader. CentOS is a Red Hat and Task B6 will apply because it is based on Fedora. You should be able to use the CentOS installation CD or DVD, but like I said any Linux Live CD can do it.

If you have a floppy drive that is even better because while in a CentOS "root" terminal you can duplicate Grub onto a floppy by command
Code:
grub-install /dev/fd0 
That floppy will boot you back to both systems.

Once XP has been installed you boot to CentOS with the floppy and in the root terminal again this command
Code:
grub-install /dev/hda 
will restore the Grub in the MBR and no need to use the floppy any more. In newer Linux the first boot disk may be callled /dev/sda but the current CentOS 5.3 with 2.6.18 kernel still calls it /dev/hda.

Last edited by saikee; 16-Apr-2009 at 09:08 PM..
VMSandman's Avatar
Junior Member with 12 posts.
 
Join Date: Apr 2009
Location: Oxford, UK
Experience: Guru
23-Apr-2009, 10:32 AM #4
Try carving a new partition using say Partition Magic
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 04:48 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.