The "disk D" letter you see in Windows isn't a consistent naming. For example, if your "disk D" has another Windows installation and then you boot it, you'll see that your D
became C
, and the former C
turned into D
. If you unplug D
and plug in a new one, it will become the new D
. Etc.
Another thing to note: "disk D" is actually a partition, not a disk.
Linux has similar concept: there are disks /dev/sda
, /dev/sdb
, etc; and then they have partitions sda1
, sda2
, sda3
, etc. Similarly to those in Windows, their names may change, depending on circumstances.
So you need to figure out which disk currently refers to the HDD you wanted (spoiler: if you only have two devices, and your "disk C" has a Linux installation as well, then most likely the "disk D" would be sdb
, and its partitions are sdb1
, sdb2
, etc).
You may do that by looking for your disk implicit or explicit properties. Such as: the disk size — if you only have one disk of certain size, then you know which one you wanted to use. Or by partitions layout. Or by data in those partitions.
Or just execute lsscsi
, which will show you the model names of the disks, so you can figure out which one you want. For example:
λ lsscsi
[0:0:0:0] disk ATA Netac SSD 1TB XKR /dev/sda
[1:0:0:0] cd/dvd PLDS DVD+-RW DU-8A5LH 6D11 /dev/sr0