Score:9

Does "Erase disk and install Ubuntu" option delete/erase everything on the Hard-drive?

cn flag

I'm just confused. I was a Windows user pretty much all my life. But now I want to switch to Linux for good. I have a 1 TB hard-drive attached to my laptop. As you know, in windows, the total hard-drive storage is divided into a couple of drives(i.e. Drive:C, Drive:D, Drive:E etc.). Usually, Windows is stored in Drive:C. My question is if I choose the Erase disk and install Ubuntu/ubuntu-derivatives option, will it erase the data on the other drives such as Drive:D/Drive:E, or will it just erase the drives where windows/any other OS is installed and keeping the data on other drives safe ?

oldfred avatar
cn flag
Yes. A drive really is the entire physical device. Partitions are the sub-divisions on the drive. Microsoft confuses drives & partitions. A "d: drive" can be a second partition on first drive or first partition on second drive. In Linux drives are sda, sdb, or newer nvme0n1 etc. And partitions are sda1, sda2 , sdb1 etc. Do not confuse drives & partitions. Only use Something Else install option and have really good backups before any system change.
muru avatar
us flag
Does this answer your question? [Does "Erase Disk and Install Ubuntu" replace the default boot screen?](https://askubuntu.com/questions/552076/does-erase-disk-and-install-ubuntu-replace-the-default-boot-screen)
muru avatar
us flag
And https://askubuntu.com/questions/984042/how-does-ubuntu-partition-the-disk-when-we-choose-erase-disk-and-install-ubuntu'
RonJohn avatar
cn flag
Having been a computer geek for many decades, this question saddens me. But... nobody was born with computer knowledge; you've got to learn some time!
NieDzejkob avatar
eg flag
When in doubt, make a backup! Don't rely on your understanding of what will be erased.
eg flag
Does “Erase disk ...” delete everything? No. It Erases it.
Chrollo_Rifat avatar
cn flag
@BillyC. pretty much the same thing.
ar flag
Does this answer your question? [If I chose "Replace Windows with Ubuntu", do I lose the other partition too?](https://askubuntu.com/questions/306452/if-i-chose-replace-windows-with-ubuntu-do-i-lose-the-other-partition-too)
Score:22
cn flag

Only Windows confusingly calls partitions "drives". Everyone else calls partitions "partitions", and disks/drives "disks".

The erase disk option uses the term "disk" in the non-Windows sense. Everything on that physical hard drive (disk) will be erased, including all partitions regardless of what they are called.

  • If "D:" is another partition on the same drive, it will be erased.
  • If "D:" is on a separate drive, it won't be touched.
bd flag
Voo
"Only Windows confusingly calls partitions "disks"". Does it though? Looking at the disk management UI it refers to "volumes" for the various named partitions (which is correct NTFS parlance I think) and says things like "Disk 2 partition 1". The only reference I can see to "disk" is the default naming when you create the first volume on a disk ("local disk") - which is accurate until you create a second volume (which is a rather advanced use case, so you might as well know what you're doing and name things correctly).
user535733 avatar
cn flag
@Voo Minor edit to clarify; thanks. If the OP learned their disk/drive/partition nomenclature somewhere other than Windows, I extend a hearty apology to the hard-working folks in Redmond.
bd flag
Voo
Yeah I'm honestly not sure what exactly a "drive" is (google also seems to like the name as a metaphor for a storage unit though). Presumably it's the same as a disk, but yeah.. who knows. Luckily most of the time it's not that important.
RonJohn avatar
cn flag
@Voo a "disk drive" is the mechanism which *drives* the disk. It's very much similar to a record player: there are belt *drive* and direct *drive* turn tables. We shorten "hard disk drive" to "drive" because we're lazy and like shorthand.
phuclv avatar
sd flag
it's not Windows who calls that but CP/M and DOS that use the term "drive"
Score:7
jp flag

Other people have explained 'drive' and 'partition' in the Linux context. Anyway, "Erase disk and install Ubuntu” removes the old partition table and creates a new one. This means that the opeating system sees the memory locations as empty in the whole physical device.

But the memory cells are still containing the data that were written before (in your case while it was still formatted by Windows). It is still possible (but a lot of hard work) to recover some of these data with special tools, e.g. PhotoRec.

If you want to make it impossible to recover the previous data, you can

  • overwrite the whole drive with zeros or some random data, or
  • use a built-in tool in the drive to remap the links between logical memory locations and physical locations (which works like encrypting without offering a key).

Removing the old partition table and creating a new one is usually good enough, at least for personal use.


You can find more details at this link.

Peter Cordes avatar
fr flag
Only SSDs have a mapping layer that you can logically erase. Rotational magnetic HDDs need to actually overwrite (unless their controller supports full-disk encryption so you can just generate a new key like on some SSDs); the logical -> physical mapping is trivial and linear on HDDs except for a few spare sectors it can remap to cover bad sectors as the drive starts to wear out.
sudodus avatar
jp flag
@PeterCordes, We have different experiences. I will not argue with you. I agree that you are right in some cases (about wiping a HDD). Each user should use a method to protect their privacy, that they can rely on, even if many people think it is overkill.
Peter Cordes avatar
fr flag
I didn't say you were wrong, just wanted to point out that your 2nd bullet point only applies to SSDs. Using [`hdparm` to do an ATA SECURE ERASE command](https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase) on an HDD will make its firmware write zeros over the whole thing, similar to if you'd used `dd` to do the same thing, at least in performance / how long it takes.
sudodus avatar
jp flag
Several years ago I did that (used hdparm to do an ATA SECURE ERASE command on an HDD) and it took 2 hours. Overwriting with dd (or corresponding took more than 10 hours if I remember correctly), so yes, in that case hdparm was overwriting, but in a much more efficient way compared to dd (or shred or some gui tool using dd under the hood). I think DBAN was also efficient (and fast), similar to hdparm on that old SATA HDD. However, it was a long time ago, I am not quite sure that I remember correctly.
Peter Cordes avatar
fr flag
Interesting. I wonder if it could get all heads to write zeros in parallel. Unlikely it was bottlenecked by the CPU, even with the default `bs` setting, not `bs=64k` or whatever to get `dd` to make fewer system calls. Anyway, it's still not just replacing a mapping table.
bd flag
Voo
@PeterCordes Well since we're in nitpicking corner ;-) That understanding is correct for traditional CMR drives, but not so much for [SMR](https://en.wikipedia.org/wiki/Shingled_magnetic_recording) drives. At least device managed drives will do something very similar to flash memory controllers in their firmware and there isn't a simple mapping from LBA to on-disk structure.
Score:0
pr flag

You can boot into a "live" environment from an Ubuntu USB/DVD and use GParted to resize your hard drive and make room for your Ubuntu installation. It can get messy for those new to doing this so ensure you have a backup of what you want to keep. There is plenty of instruction on the net as to how to go about this.

Score:0
tr flag

If your storage device that you want to install linux on does in fact have more than one partition i.e. Drive D: and possibly Drive E: In Windows ,transfer all your personal data that you want to save that is on the Drive C: to one of these other drives. If you are installing Ubuntu or an Ubuntu flavour,choose "something else" in the installer, a partition manager will open and you can install to the partition you wish. N.B. the partitions in the linux partition manager will not be named in the windows fashion,so you will have to carefully identify which one is C: You can usually do this by noting the sizes of the "drives" and the free space in them ,in Windows, and then comparing these values in the linux partition manager (Gparted) If you do this carefully ,the two other partitions will remain untouched. Backups are always advisable.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.