Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Disk decrypted

Need help with peripherals or devices?
Post Reply
Message
Author
Deblib
Posts: 119
Joined: 2016-05-14 14:41

Disk decrypted

#1 Post by Deblib »

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?

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Disk decrypted

#2 Post by p.H »

How different ? Please provide a detailed example.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Disk decrypted

#3 Post by debiman »

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.

Deblib
Posts: 119
Joined: 2016-05-14 14:41

Re: Disk decrypted

#4 Post by Deblib »

How different ? Please provide a detailed example.
I put 523 GB. The disk reflects 562 GB...

Deblib
Posts: 119
Joined: 2016-05-14 14:41

Re: Disk decrypted

#5 Post by Deblib »

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.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Disk decrypted

#6 Post by debiman »

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
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Disk decrypted

#7 Post by pylkko »

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?

Deblib
Posts: 119
Joined: 2016-05-14 14:41

Re: Disk decrypted

#8 Post by Deblib »

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: 119
Joined: 2016-05-14 14:41

Re: Disk decrypted

#9 Post by Deblib »

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

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Disk decrypted

#10 Post by p.H »

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).

Deblib
Posts: 119
Joined: 2016-05-14 14:41

Re: Disk decrypted

#11 Post by Deblib »

I think it's 523 GB but it's as easy as adding the previous amounts and giving approximately 2 TB

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Disk decrypted

#12 Post by pylkko »

You could, of course, just share some output here. Otherwise people are left to guess.

Deblib
Posts: 119
Joined: 2016-05-14 14:41

Re: Disk decrypted

#13 Post by Deblib »

I reformatted the disc (I've formatted it several times). I think it was GB (G in gdisk, sure)

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Disk decrypted

#14 Post by p.H »

Like many programs, gdisk uses GiB but omits the "i".
parted prints the correct prefixes.

Post Reply