I installed Ubuntu 16.04 LTS and chose the option to remove all and set an encrypted LVM(I have a backup of all my data).
I have 1 SSD(/dev/sda
) and 1 HDD(/dev/sdb
).
What the installer did:
It set LVM for /dev/sda
and that's all, it didn't touch /dev/sdb
.
What I try to do and can't find info about(there is info on what I try to do but not with LVM + encryption - at least from what I could find):
- Remove encryption from the root /
(that's not that important, but I don't need security for that data, I would like performance)
- Set /home
, /var
and /tmp
to be on the encrypted HDD(/dev/sdb
) - this is the main issue
- Remove swap from the SSD
Relevant fdisk -l
output:
Disk /dev/sda: 119,2 GiB, 128035676160 bytes, 250069680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xb607a342
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 999423 997376 487M 83 Linux
/dev/sda2 1001470 250068991 249067522 118,8G 5 Extended
/dev/sda5 1001472 250068991 249067520 118,8G 83 Linux
Disk /dev/sdb: 698,7 GiB, 750156374016 bytes, 1465149168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 3E77BD28-907B-4CDD-B5A9-5886A8E3CF74
Device Start End Sectors Size Type
/dev/sdb1 2048 1465149134 1465147087 698,7G Linux LVM
Disk /dev/mapper/sda5_crypt: 118,8 GiB, 127520473088 bytes, 249063424 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/ubuntu--vg-root: 110,8 GiB, 119000793088 bytes, 232423424 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/ubuntu--vg-swap_1: 7,9 GiB, 8493465600 bytes, 16588800 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Any guru out there? :)