Mourning the loss of our friend, WhitPhil.
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 audio blue screen boot bsod connection crash dell desktop driver dvd email error excel excel 2003 firefox hard drive hardware hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem processor ram recovery router screen slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
dual boot with linux

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
ganguly's Avatar
Junior Member with 3 posts.
 
Join Date: Apr 2009
16-Apr-2009, 08: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
Senior Member with 275 posts.
 
Join Date: Jan 2007
Experience: Intermediate
16-Apr-2009, 09: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
Distinguished Member with 2,835 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
16-Apr-2009, 08: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 08:08 PM.
VMSandman's Avatar
Junior Member with 12 posts.
 
Join Date: Apr 2009
Location: Oxford, UK
Experience: Guru
23-Apr-2009, 09:32 AM #4
Try carving a new partition using say Partition Magic
Closed Thread Bookmark and Share

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.

Smart Search

Find your solution!



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


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 09:46 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.