Categories
Uncategorized

Ubuntu – How to encrypt swap partition

Create partition for swap (/dev/sdaX in this example). Prepare and enable it using mkswap and swapon commands. If you already use swap partition then omit these steps. $ sudo mkswap /dev/sdaX Setting up swapspace version 1, size = 4194300 KiB no label, UUID=325d9718-8532-460d-afec-74e6aee9ae5f $ sudo swapon /dev/sdaX Execute ecryptfs-setup-swap script (it is part of ecryptfs-utils […]

Categories
Uncategorized

How to use VideoLAN in live mode

After I started my journey with squashfs I encountered problem with VideoLAN as I couldn’t start it.

Categories
Uncategorized

How to download YouTube videos using console application

The easiest way to download YouTube videos is to use youtube-dl.

Categories
Uncategorized

How to backup DOS-type partition table/GPT and LVM metadata?

DOS partition table We can use sfdisk to dump partition table in usable format and store it: $ sudo sfdisk -d /dev/sda > sda_partitions Partition table can be restored using stored backup: $ sudo sfdisk /dev/sda < sda_partitions Partition table can be easily cloned (from sda to sdz in this example): $ sudo sfdisk -d […]

Categories
SysOps

How to get disk UUID

I recently needed to know the UUID (universally unique identifier) of my bootable USB root partition. It is a better way to distinguish storage devices because device names can change depending on the connection order.

Categories
SysOps

Boot to RAM notes

This post contains notes on this topic in the form of a concise guide.

Ubuntu – Where to download Minimal CD?

Recently I started to use Minimal CD for customized installation so I need to write down places where I can get it.

How to add custom grub2 menu entry?

Edit /etc/grub.d/40_custom file to add a custom entry in grub2 menu.