Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

3 Answers 3

up vote 0 down vote accepted

Last time i was in the same situation , So if you delete windows partition it will affect grub for sure, actually in my case that happened . Then you have recover it as mentioned by guru prasad.

So re-installing both is better , before deleting both the OS do-

  1. Backup home

  2. open /var/cache/apt/archive and copy all the .deb files somewhere else after re-installing Ubuntu , copy them to the same folder and install your software’s by normal apt-get install it will use those .deb files and little from internet to install.

share|improve this answer
  • you dont need to remove ubuntu.You can just delete the windows partition on ubuntu and reinstall windows on the same partition.
  • To delete a windows partition,you need to install gparted partition editor on ubuntu.Run the below commands on terminal to install gparted,

    sudo apt-get install gparted
    
  • Open gparted ,locate the windows7 partition and format it to ntfs filesystem.

  • Then bootup the windows-live-disk.During windows installation select the custom option and then select the ntfs partition you formatted it on gparted and install windows to it.

share|improve this answer
    
Actually I have a partition will restore my computer to factory settings. No windows disk. –  Duco Dec 4 '13 at 12:38

If you have window and Ubuntu on separate partition, first restore your windows and then restore GRUB.

This link will might be helpful to restoing the GRUB.

recovering-grub-after-installing-windows-7

share|improve this answer

Your Answer

 
discard

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.