New hdd, no data; using as storage hdd only - no os. I just encrypted my hdd and it has no partition. If I do the following, will the encryption be deleted? The size of the hdd is too large for "fdisk". Below is an example of someone else trying to do the same thing with their ouput afterwards.
I encrypted using the following format: cryptsetup luksFormat /dev/sdX cryptsetup luksOpen /dev/sdX external_disk mkfs /dev/mapper/external_disk cryptsetup luksCLose external_disk
I created a partition using the folling:
sudo parted /dev/sda
Output: GNU Parted 2.3 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted)
Creates a new GPT disklabel i.e. partition table:
Next, set the default unit to TB, enter:
To create a 2TB partition size, enter:
mkpart primary 0.00TB 2.00TB
To print the current partitions, enter:
Model: ATA ST33000651AS (scsi) Disk /dev/sda: 2.00TB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 0.00TB 2.00TB 2.00TB ext4 primary
Quit and save the changes, enter:
Use the mkfs.ext4 command to format the file system, enter:
update: I got a similar output except that my logical partition size was 512bytes and the physical was (like) 4068. But now it seems my encryption is gone as I can mount and open the partition without a password.