2

I installed Ubuntu alongside Windows 11, but I forgot to turn off BitLocker.

Ubuntu was installed "successfully", but I wasn't able to dual boot, so I deleted the partitions assigned to Ubuntu OS.

Do I need to clear disks or deleting the partition was enough? I reinstalled Ubuntu ok now after disabling BitLocker, but I don't know if the old data is gone.

I don't want to recover anything, just want to make sure anything is corrupted.

3
  • 2
    Yes; It’s gone or it will be permanently gone once the data is overwritten for good over time but there wasn’t any real data since you never used the operating system since Linux does not support BitLocker and since you also disable encryption that means everything was overwritten when did that.
    – Ramhound
    Commented Dec 18, 2023 at 5:03
  • 1
    If you delete a partition some (often most) information is recoverable - I mention this in case the data is sensitive and you want it permanently gone - however it won't cause any type of corruption and the OS won't see it. As @Ramhound said, the more data you write on the system after changing the partition the less data is recoverable.
    – davidgo
    Commented Dec 18, 2023 at 6:53
  • 2
    how "Gone" do you want the old data to be? if you just want it out of the way, then deleting the partition is fine. if you want to sell the disk and ensure your data is not recoverable by another party, look into somthing like dban. Commented Dec 18, 2023 at 14:18

3 Answers 3

7

If I deleted a partition, will that delete the data on this partition?

Strictly: no. Deleting a partition means removing the relevant entry from the partition table. This does nothing to data inside the partition*. If you re-create the entry in the partition table then you will revert the deletion. In fact a standard way to expand a partition+filesystem to the right may involve deleting the partition. See this question and my answer there.

After just deleting a partition, the data is still there. But if a new filesystem gets created, it shall not and will not use the old data; it will gradually overwrite it with its own data. It's a job of the new filesystem to always return its own data. One of the reasons to have a filesystem as an abstraction layer is you (and your programs) don't have to worry which parts of the partition get overwritten or what happens to old data. The filesystem is obliged to reliably give you data you have stored in it, not some random nor stale data. So in normal operation there is no risk that some old files appear or something gets corrupted because of the fact the old filesystem used to be there.

It may be possible to recover some old files. Recovery programs bypass the filesystem layer in order to do so. There may also be a way (depending on the type of the new filesystem) to allocate blocks to a regular file without zeroing them, this would make some old data appear inside the file. This can be useful while testing, debugging or manually repairing the (new) filesystem. It's not something any OS (including your newly reinstalled Ubuntu) does by itself.

The fact the old filesystem was there will not corrupt anything.


* In Windows it's common to create a partition and its filesystem in one step, this makes many users think that "partition" and "filesystem" are synonyms (while they are certainly not). I can imagine this philosophy can be extended to deleting partitions, so there may exist overzealous tools that wipe the beginning of the partition when removing the entry from the partition table. Their "delete partition" action should be named "delete partition and cripple filesystem". The actual act of deleting a partition does nothing to the data inside the partition. If a tool commanded to just delete a partition does anything to the data, it's being overzealous.

1
  • 1
    "many users think that "partition" and "filesystem" are synonyms" - you can often add "drive" to that collection, too Commented Jan 24 at 9:12
-4

Yeah, it will be gone. If you wrote over the partition again, say, with another install, it's pretty much unrecoverable.

-4

Most importantly, the table that keeps track of files and directories within that partition (virtual I'm assuming) is lost, so basically all your data is lost as well.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .