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.

Friday, March 23, 2018

Bash Functions

This post contains few functions, or tips I often use, so I keep them close.


Elasticsearch: setting up watcher for FS monitoring

In this post, we'll go through components used for this case scenario and the process of setting up a watcher within elasticsearch.

Our case scenario: we have three machines running different OS (all are linux based) and we'd like to be notified when we're running low on disk space. For this we've taken advantage of running elasticsearch instance with Gold license and enabled watcher feature.