Reformatting PC with XP and Ubuntu

I'm not sure whether this should be posted in windows or *nix so just move it to the appropriate forums if necessary.

At the moment, I'm having windows XP and Ubuntu installed on my PC and I would like to reinstall a fresh copy of XP, which means i'll have to reformat my C drive. So here goes my question, is there anyway to reinstall Windows without having to reinstall Ubuntu? AFAIK if i'm to reformat my C drive where I have windows on, any boot information will be erased which would make it impossible to boot into Ubuntu afterwards.

Thanks in advance :)

#377845

just don't delete the unbuntu partition and reformat your XP partition

aussi simple que ca... non?

#377875

fixing linux boot information is not a very hard thing to do

if you have a linux boot CD or just a live CD you can fix it .

I'll presume you have a Live CD of ubuntu.

Open a terminal. now say your Ubuntu installation is in hda5

so you chroot in it like this

#chroot /dev/hda5

so now you are inside your Linux. now install grub using

grub-install /dev/hda

this should do the trick

#377890

@Mrlinux: so you're saying that after reinstalling windows, i should boot the pc with unbuntu live cd? i'm not sure how to get to the terminal, could you be more specific on that? A step by step instruction would be highly appreciated given that I'm new to all this stuff. Thanks in advance

@Day: oui je sais qu'il faut pas toucher a la partition de Linux. Mais je suis sur que si je formatte mon C drive (ou j'ai xp) grub sera supprime lui aussi (vu qu'il est installe sur C) ce qui m'aiderait pas a booter mon PC dans linux.

#378026

Mon dieu tout le monde parle francais maintenant?

#378029

Mon dieu tout le monde parle francais maintenant?

He is asking if you guys can write the instructions for this in French.

#378318

Well not really, Im canadian but my french s*cks, but yeah I think the terminal solution will do it duyvan, talk to me on msn if you need more assistance

#378380