Friday, December 7, 2018

Install Archlinux on LUKS encrypted BTRFS filesystem with subvolumes

In this post I will go through the system installation. Second post will be about btrfs snapshots, namely how to create and restore snapshot.

ArchLinux installation is very well documented on Archlinux Wiki. My tutorial basically follows all the necessary steps from the wiki page with some additional configuration to achieve:
  • LUKS encryption (this will be applied to all partitions except /boot)
  • btrfs formatted filesystem, with use of subvolumes with flat layout


Thursday, December 6, 2018

VirtualBox: shrink Clonezilla disk image

I've spent some time until I finally found out how you can not only increase the disk image but also how to shrink it.

Use case:
I had an disk backup created with clonezilla. The source disk size was 1TB and the restore disk size was 256GB. The actual data amount was around 120GB, so it would definitely fit on the smaller disk.
But with clonezilla, I wasn't able to restore it.