0

When I recently installed Kali Linux on my Windows 7 computer, I completely installed Kali Linux to my computer which deleted all my Windows 7 because I didn't need it. Now Kali Linux is installed on my hard disk on all partitions. I have used it for a while, and now I want to uninstall it completely and reinstall Windows 7.

Now I inserted the Windows 7 disk and tried to install it, but it shows an error that Windows cannot be installed in this partition. I know Kali Linux formatted all my partitions to ext4 which is its own default format, but Windows can be installed to NTFS format, but the Windows installation doesn't give me an option for formatting, so I am stuck here. Please help me find a solution. Remember that Linux and Windows here are not in dual boot.

  • I wanted to add here is that THERE IS NO OPTION FOR ME TO FORMAT in the windows 7 installation. I know there is an option but the options listed here are only Refresh and Load drivers and NOT the Advsnced option. Is there some way that I can do the formatting on Kali Linux?? – Usman Zia Malik Dec 30 '15 at 14:31
0

Disclaimer - before doing anything with partitions, make sure you have good backups

In Windows setup, during the part where you select which partition, select the advanced option, then just delete all the partitions.

You do not have to create any paritions, Windows setup will do that for you. All you need is a blank drive. (Unless you have some special requirements for partitioning, like saving some space for a Linux partition).

enter image description here

2

You will need to remove all partitions, create a new one and then format it to NTFS. You can do this from the windows 7 setup.

Note, removing a partition will delete its data entirely, not just windows, but all other files as well. Be sure to make proper backups.

  • 1
    It should be sufficient to delete the existing partitions and then boot using the Windows disk. You'll be able to create the necessary partitions for Windows during the installation procedure. You aren't saying otherwise, just trying to clarify this point. – ChrisInEdmonton Dec 30 '15 at 14:00
  • 1
    @ChrisInEdmonton thanks for the addition. Yeah removing the partition can both be done during the setup and from linux itself. – LPChip Dec 30 '15 at 14:01
  • Ok but I cant format anything from the windows 7 setup is there any way I can do that IN KALI LINUX? – Usman Zia Malik Dec 30 '15 at 14:27
  • Please tell me a way to do the formatting and uninstalling of kali linux – Usman Zia Malik Dec 30 '15 at 14:32
  • @UsmanZiaMalik First you need to remove the partition. From selecting the partition, choose delete. If no partitions show up, you'll have to do this from linux itself. Given that doing this is different per distro, and I only worked with opensuse, I can't tell you how to do it through kali linux. – LPChip Dec 30 '15 at 15:12
0

Boot from kali or any other Linux distribution DVD and boot in live mode.

Open Gparted.

Format the drive or resize it and change the format from ext4 to NTFS

Now, you can finally install Windows on that partition you resized or formatted.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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