Categories
Uncategorized

How to modify squashfs image

You cannot modify squashfs image directly but you can uncompress it, apply changes and compress it again.

Categories
Uncategorized

Ubuntu – How to use persistent encrypted partition

Simple solution using Linux Unified Key Setup.

Categories
Uncategorized

Ubuntu – How to use encrypted tmp partition

The answer is to recreate encrypted tmp partition every boot with random key as you do not need to keep temporary data in memory.

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.