Need Help to install WindowsXP without removing Fedora
GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
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.
Need Help to install WindowsXP without removing Fedora
Hi All,
Here is my problem.
I have Windows XP and Fedora Core6 on my desktop.
Windows has got some virus, bcoz of which it keeps on restarting infinitely.
So want to format Windows and install it again.
When I try to boot WindowsXP bootable cd. It goes to the screen "Setup checking Hardware config"...and thats it...a black screen...it doesn't move forward.
From the other threads, I got to know abt formatting the complte harddisk with
dd if=/dev/zero of=/dev/hda bs=512 count=16
And then installing Windows followed by FC6
However, I dont wish to lose data on other Windows prtitions ( D & E) also dont wish to remove FC6 for the same.
Can someone please help, How I can format C drive and reinstall Windows.
One option would be to use a program like partimage to save images of the other partitions, do the dirty work you need to do to reinstall XP, recreate the other partitions and restore them from their images. If you do this, you do need to make sure that the partitions you are restoring to are at least as large as the original partitions.
You will need to find someplace to store the images. You can save them across a network if you have another computer that has room.
I think your problem lays somewhere else. Booting from the XP CD should work.
Formatting the whole HD sounds like overkill to me, but I might be wrong. You can try to remove the C-partition from within Linux and next try to install XP in the free space. Afterwards you can re-install Grub in the MBR (no experience with that).
PS Make backups if the data is important. A power failure or one little mistake by you or XP and it might all be gone.
Last edited by Wim Sturkenboom; 09-11-2007 at 11:41 PM.
Reason: Added PS
The XP cd doesn't boot at all while Fedora is there...
So, even if I format C partition, keeping the Fedora, XP cd still might not boot...
On the other hand...if I cud have got the XP cd booted...i cud have formatted the C partition from there also...no need to format it from Linux.
So to get the XP cd working I guess I will have to format the linux partitions atleast...
Last edited by amrapali_bs; 09-12-2007 at 01:36 AM.
So to get the XP cd working I guess I will have to format the linux partitions atleast...
The instructions you found on the Internet wipe out (well, actually fill with zeros) the first 16 sectors of your disk, including the MBR, but do not touch your partitions per se. However, it does wipe out the partition table, which appears to make the partitions (Linux and otherwise) disappear. You could try using dd to save the partition table first, zero the first sixteen sectors and re-write the partition table, and see if it works. But before you try anything like that, you really should back up anything of value .
Just in case I screw up the offsets or something, or you make a typo, I would recommend first saving the whole MBR. If you have that, then you are guaranteed not to have lost the partition table. (Yes, we all make mistakes! ) I am assuming below that your primary drive is /dev/hda. (If it is /dev/sda or something, just adjust the commands accordingly.)
Code:
dd if=/dev/hda bs=512 count=1 > filename.MBR
Choose the filename you want and prepend a path if you wish. Just make sure you get it someplace safe, such as a floppy or flash drive.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.