Formatting HDD: unused space ?

2 réponses [Dernière contribution]
hack and hack
Hors ligne
A rejoint: 04/02/2015

I've put an internal HDD into a box in order to make it an external one.
I used Gparted to format it to ext4. so far, so good.
But Gparted announces 232GiB, when Thunar, and the internal case says 250.
I know there's always a bit of a difference between the announced number and the reality,
but this seems unusually huge.

Also, how do I encrypt an external drive?
I heard of Cryptsetup, but is there a preferred way (most secure, simplest)?

Last, about programs needing root:
I use sudo -i instead of gksudo,
but the CLI that remains is annoying.
I know it has it's use to debug problems,
but is there a way to close it without closing the program?
I use i3, so I could always go full screen easily.
But maybe there's a simpler way.

Thanks!

lembas
Hors ligne
A rejoint: 05/13/2010

The difference comes from using different units, GiB vs. GB. See https://en.wikipedia.org/wiki/Binary_prefix

$ units '232 GiB' GB
* 249.1081

Don't know about encryption, more worried about losing the password myself than getting black bagged.

Regarding the terminal closing thing, switch to the terminal window and hit Ctrl+Z, that will suspend the process in it. Then input bg which will make the process run in background and now you should be able to close only the terminal window. (easiest with Ctrl+D)

hack and hack
Hors ligne
A rejoint: 04/02/2015

I see... Thanks for the info.

I know what you mean about passwords.
I already have far too many devices to manage.
I'll have to decide how I want to deal with this.
Maybe a password manager could be worth it.