Technology in terms you understand. Sign up for my weekly newsletter, "Confident Computing", for more solutions you can use to make your life easier. Click here.

Can I Delete a Partition Without Losing Its Data?

//
Is it possible to remove a partition and have its data left behind? I do need the data, just not the partition.

No.

But … yes.

There are ways of doing what you ask; just not as simply as your question implies.

Become a Patron of Ask Leo! and go ad-free!

Partitions on a hard disk
Partitions on a hard disk. (Click for larger image.)

Partitions

A partition is just a way to sub-divide a hard disk into fixed areas. In the example disk above, you can see that my one-terabyte drive is divided into five partitions, ranging from 650 megabytes to almost 940 gigabytes.

Each area is a fixed size, meaning the space used is what it is, regardless of whether or not there are actually any files there. This differs from folders in that a folder takes up only the space of its contents, plus a little overhead.

Partitions are generally treated like disks — in fact, the “C:” drive on my system is simply one partition among the others. The others don’t have drive letters attached, but they’re still treated as independent disks.

Deleting a partition

Deleting a partition is very similar to deleting a folder: all of its contents are deleted as well. Just like deleting a file, the contents can sometimes be recovered using recovery or forensic tools, but when you delete a partition, you’ll delete everything inside it.

That’s why the answer to your question is “no” — you can’t just delete a partition and keep its data.

You need to take additional steps.

Back up and restore

One way to retain the data in a partition prior to deleting it is to back it up.

Backing up — either by making an image of the partition or copying all the files it contains elsewhere — ensures that no data is lost when the partition is deleted. You can then restore the files — again, either from the image or by copying the files from wherever they were kept — to wherever you want them to live after the partition has been deleted.

Honestly, before you go playing with partitions on a hard disk, I recommend taking an image backup of the entire disk anyway. As a side benefit, you can recover/restore the files for this partition from that.

Growing an adjacent partition

Typically, when people ask this question they’re in a situation like this:

  • One partition has a lot of files and is quite full — usually the C: drive.
  • Another partition on the same drive has some files, but is not full. Often this is the D: drive.
  • The person asking wants to get rid of D: and allocate all its space to C: without losing any of its files.

The process then turns out to be fairly direct.

  • Back up the entire hard disk for safety.
  • Copy the files from D: to C: if there’s room.
  • If there’s no room, copy the files from D: to an external hard drive or some other location.
  • Delete the D: partition.
  • Extend the C: partition into the space freed up by deleting D:.
  • Copy the files back, this time to the newly expanded C: partition.

Deleting and extending partitions can often be done with Windows own built-in disk management tool. If not (perhaps you’re running an older version of Windows, or the partitions are laid out in a sequence that the Windows tool can’t cope with) there are third-party tools that can do the job.

Save the data!

The bottom line here is simple: deleting a partition deletes everything within it, but that’s easily handled by making a copy of the data elsewhere first. Then you can restore that data whenever, wherever, and however you like.

Podcast audio

Play

Video Narration

5 comments on “Can I Delete a Partition Without Losing Its Data?”

  1. First, thanks for all the valuable information you provide.

    I think it’s worth mentioning that, while you can backup “data” from D: and later move it to C:, any executable programs installed on D: cannot be moved along with the data and maintain functionality since the system will be looking for these programs on drive D:. Due to slowly decreasing space on C:, I have begun installing programs on D:, but saw that didn’t prevent some space on C: from being used anyway during the installation.

    One thing that I think could enhance Microsoft’s image with users would be to develop a method to move a program from one drive to another, searching the system for references to the program and modifying them to reflect the new location. Then, again, maybe there is and I’m just behind the times.

    • There isn’t and I’m not sure I’d trust it if there was. Programs can have so many “private” places to keep information that there’s no tool that could know about them all in order to update them. The “right” way to move a program installed on D: to C: is to uninstall it, and then reinstall it. Depending on the program that can be painful, or simple.

    • There are some third party programs for that, but I’m somewhat skeptical of those claims. That’s the reason I don’t partition my system drive. It could come back to bite you if the c: drive fills up.

  2. Hi. Thanls for all the help Leo.
    I had two drives in my pc. I used one as main drive wirh 3 partitions and the other one a backup with the same 3 partitions and files. I wanted to update from windows 7 to windows 10 with only 1 partition, so I deleted the partition in one of the drives but couldn’t install the new os.
    Unluckilly the other disk failed and I lost all my data while i was backing it up to dropbox (paid). I havn’t writtwn any data on the disk withot partition nor fosmated it, so thr data must be rhere. The other disk doesn’t boot but can be accesed from another pc, but i can’t coy it’s contents to another disk.
    Any suggestions how to recover the data?

Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.