Disk decrypted

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Disk decrypted

Postby Deblib » 2017-11-04 09:06

Hey! Hi!
I've removed the encryption from a 2-TB external hard drive. I have partitioned it with gdisk and the partitions come out with different dimensions than I have put them. I think this may be the case, but I don't know how to fix it. I wiped it with dd if=/dev/zero of=/dev/sdX but it's still the same. Any solution?
Deblib
 
Posts: 58
Joined: 2016-05-14 14:41

Re: Disk decrypted

Postby p.H » 2017-11-04 12:37

How different ? Please provide a detailed example.
p.H
 
Posts: 179
Joined: 2017-09-17 07:12

Re: Disk decrypted

Postby debiman » 2017-11-04 12:54

Deblib wrote:dd if=/dev/zero of=/dev/sdX but it's still the same.

if you did that, and let it run its course (MANY hours for 4TB), then there's no more partitions on your hd anymore.
in fact, there's NOTHING on it, except zeros.
User avatar
debiman
 
Posts: 1636
Joined: 2013-03-12 07:18

Re: Disk decrypted

Postby Deblib » 2017-11-05 16:09

How different ? Please provide a detailed example.

I put 523 GB. The disk reflects 562 GB...
Deblib
 
Posts: 58
Joined: 2016-05-14 14:41

Re: Disk decrypted

Postby Deblib » 2017-11-05 16:29

I summarize what I've done:
I first create five partitions on the disk (everything fine), then encrypt the entire disk and realize that I won't be able to dispose of the partitions created, so I decide to re-encrypt everything, but encrypting partition by partition. Because I didn't know how to decrypt the disk, I tried formatting it and different unorthodox methods until he didn't ask me for the key. Then I recreated the five GPT partitions with gdisk and here came the problem I was telling you about.
I forgot to tell you I made it a
Code: Select all
# badblocks -s -v -f /dev/sdc
and no sector of the disk is faulty.
Deblib
 
Posts: 58
Joined: 2016-05-14 14:41

Re: Disk decrypted

Postby debiman » 2017-11-05 18:11

you should have mentioned GPT; i know nothing about it.
but even so i find it hard to believe that those 5 partitions are still present after a "scrub" with dd.

anyhow, have you tried a gparted or some other graphical tool?
it's just easier to see where you are atm, and easier to use i think.
User avatar
debiman
 
Posts: 1636
Joined: 2013-03-12 07:18

Re: Disk decrypted

Postby pylkko » 2017-11-05 18:34

You say you used a 2 TB disk. And since 2 TB = 2048 GB, how where you expecting to be able to get 5 partitions of 523 GB? Maybe you can provide the exact commands that you used to partition the disk.

To me it sounds like the encryption is not related to this problem. But I find it very hard to understand your writing, that is, what exactly were you attempting and what happened. How many partitions? What size did you intend them to be? And what are the sizes reported to you? And what program is reporting them to you/what commands are you using to get the information about the partition sizes?
User avatar
pylkko
 
Posts: 1213
Joined: 2014-11-06 19:02

Re: Disk decrypted

Postby Deblib » 2017-11-05 18:55

With gparted you get the partition dimensions right (as opposed to the Debian utility of Disks) but the last partition occupies me very little. Has my hard drive been reduced in size with decryption?
Deblib
 
Posts: 58
Joined: 2016-05-14 14:41

Re: Disk decrypted

Postby Deblib » 2017-11-05 19:00

And since 2 TB = 2048 GB, how where you expecting to be able to get 5 partitions of 523 GB?

The dimensions of the original partitions were:
1 TB
523 GB
156 GB
155 GB
118 GB
Deblib
 
Posts: 58
Joined: 2016-05-14 14:41

Re: Disk decrypted

Postby p.H » 2017-11-06 16:02

Deblib wrote:I put 523 GB. The disk reflects 562 GB

I guess you mean 523 GiB. That's due to the difference between 1 GB (1000^3) and 1 GiB (1024^3).
p.H
 
Posts: 179
Joined: 2017-09-17 07:12

Re: Disk decrypted

Postby Deblib » 2017-11-13 16:58

I think it's 523 GB but it's as easy as adding the previous amounts and giving approximately 2 TB
Deblib
 
Posts: 58
Joined: 2016-05-14 14:41

Re: Disk decrypted

Postby pylkko » 2017-11-13 17:48

You could, of course, just share some output here. Otherwise people are left to guess.
User avatar
pylkko
 
Posts: 1213
Joined: 2014-11-06 19:02

Re: Disk decrypted

Postby Deblib » 2017-11-18 17:38

I reformatted the disc (I've formatted it several times). I think it was GB (G in gdisk, sure)
Deblib
 
Posts: 58
Joined: 2016-05-14 14:41

Re: Disk decrypted

Postby p.H » 2017-11-19 20:43

Like many programs, gdisk uses GiB but omits the "i".
parted prints the correct prefixes.
p.H
 
Posts: 179
Joined: 2017-09-17 07:12


Return to Hardware

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable