Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to format the Ubuntu partitions from Windows XP?

My Ubuntu is broken and can't log in. My dual booting Windows XP is working fine. I want to delete Ubuntu partitions from Windows XP and reinstall. How to delete the partitions?

share|improve this question
No need to delete - you can just re-install and format the existing ubuntu partition. – Mark Rooney May 7 '12 at 4:24
simply select replace ubuntu with ubuntu or select something else from the setup and do it as if u are doing a fresh install – sarveshlad May 7 '12 at 5:19

No need to delete. It will cause break in grub. Xp won't be bootable.

  • Just put the live cd/usb and reinstall ubuntu.That will solve the problem.

If you really want to delete partition, open disk management in XP (diskmgmt.msc) and right click on ubuntu drives and click delete.

  • Now to fix the boot, boot using windows xp disk. Open recovery console and type fixboot and fixmbr commands. A description is here


Since you have deleted the partition and want to re install ubuntu as duel boot. Do the followings,

  • Boot using ubuntu live usb/cd.
  • Choose "Do something else" in ubuntu installer.
  • Select the free space created by deleting ubuntu previously. (If there is no free space, probably you have formatted the drrive with ntfs. Locate the drive and click on delete.). Now click on ADD. Enter a small amount of space Like 1024MB, and choose SWAP from the filesystem dropdown.
  • Again click on the remaining free space. This time choose File system as ext4 and mount point as /. Now you are good to go for installation.After installation all OS will be accessible.

If you want to boot only XP. Follow instruction here. Need to have XP disk.

share|improve this answer
Thanks for answer. But now it's already too late. I have deleted the partition using a bootable USB with Ubuntu installer. And as you expected, I have a broken bootloader and can't start any OS on this machine now. What should I do? – qazwsx May 7 '12 at 21:25

Do you want to install Ubuntu again? if yes, follow Web-E's answer. If you only want to use XP, and you have a grub-rescue > prompt at boot screen,

  • try entering these command:
    • ls to see all the partion.
    • detect your XP partition.
    • Set the root device by entering set root=(hd0,msdosX), where X refers to the partition where XP resides.(assuming you have only one disk)
    • Then enter chainloader +1 command
    • then type boot and press enter

It will boot the computer to XP. After booting to the Xp, you should reenable the Xp's bootloader. download the bootsect.exe file from here here. Open cmd.exe with Administrative power, and cd to the directory where you downloaded the file and enter this command bootsect.exe /nt52 ALL /force /mbr. Now restart to see whether this works. (XP will by default open the cmd.exe as administrator).

share|improve this answer

You can delete the partition from the Ubuntu Installer, If you really want it from XP then

share|improve this answer
This will cause a non bootable system as GRUB will fail. – Web-E May 7 '12 at 4:43
Exactly what I experienced. – qazwsx May 7 '12 at 21:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.