Gnuserland

Installation

Never give up – “Final Round”

And eventually I was able to achieve it, I extended my root partition across two disks encrypted through LVM!

The process was a total pain in the heck just because, so far I saw, the Elementary Installer (POP!_OS 19.04) has a bug that makes impossible to unlock two disks or two partitions during the advance setup, hence you have to do everything manually.

The main issue is the following one: after you added the second disk and extended the root partition you have also to add the new disk on the crypttab file in order to unlock it at boot time; unfortunately you can't do that simply restarting the OS because it won't unlock the second disk, hence you have to go in live mode and CHROOT your system to activate your changes.

Read more...

Never give up – “Round Two”

In this round I tried to extend the root partition adding the second disk available on this system. I followed these documentation for this test:

To extend the LVM Partition you have to go on Live Session but before to reboot the system with a LiveCD I created a GPT Table on it and formatted the disk as EXT4 with GPARTED, then I run this command:

Read more...

Never give up – “Round One”

I have been trying to install from the beginning POP! in the Debian Way and it didn't work out. Indisputably that approach will never work, hence I just installed POP! with the basic setup just to see how it organizes its stuff!

There we are:

Disk /dev/sda: 32 GiB, 34359738368 bytes, 67108864 sectors
Disk model: VBOX HARDDISK   
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: gpt
Disk identifier: D5E7BAF4-0084-4DB5-AF26-689AE7ED51F1

Device        Start      End  Sectors  Size Type
/dev/sda1      4096  1023998  1019903  498M EFI System
/dev/sda2   1024000  9412606  8388607    4G Microsoft basic data
/dev/sda3   9412608 58716158 49303551 23.5G Linux filesystem
/dev/sda4  58716160 67104766  8388607    4G Linux swap


Disk /dev/sdb: 32 GiB, 34359738368 bytes, 67108864 sectors
Disk model: VBOX HARDDISK   
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: gpt
Disk identifier: 26E74287-8A66-42F6-863B-4D7FBAA64639


Disk /dev/mapper/cryptdata: 23.5 GiB, 25226640896 bytes, 49270783 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/data-root: 23.5 GiB, 25224544256 bytes, 49266688 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/cryptswap: 4 GiB, 4294442496 bytes, 8387583 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
Read more...

The dream goes down 👎

Just to recap...

I created a Debian (GPT/EFI) with LVM + LUKS spread on two disks. I reused the same partitioning to install POP! and the installation went fine, but, when I rebooted the laptop, the OS was unable to unlock all the partitions and it didn't boot properly.

Then I repeated the same procedure and installed Ubuntu but apparently Ubuntu ignored my encrypted partitions and install everything without encryption.

🤔

Read more...

The dream goes on 👍

Eventually I was able to install POP!_Os on two disk trough LVM, but this is just the beginning.

As first istance I was using VirtManager trying to simulate an EFI partition but afterward I realized that QEMU/KVM doesnt' support any EFI-BIOS hence I switched to Virtualbox which supports EFI but I was unable to install POP! for some weird issue with a keyboard layout but I ended up I could have a corrupted ISO.

As a matter a fact downloading again a new ISO and checking the correct integrity I was able to install POP!. Now I could move forward and perform a LVM with encryption.

Read more...

A broken dream

One of the essential things I learned using GNU/Linux is “prepare yourself to avoid bad surprise”...

Actually I have something in mind, for a small price I bought another 250GB SSD, and now I have in total 500GB split in two disks. But my old disk is formatted as lvm partition, in fact:

sudo lvmdiskscan -l
  WARNING: only considering LVM devices
  /dev/sda2            [     232.41 GiB] LVM physical volume
  0 LVM physical volume whole disks
  1 LVM physical volume
Read more...