You cannot modify squashfs image directly but you can uncompress it, apply changes and compress it again.
Simple solution using Linux Unified Key Setup.
The answer is to recreate encrypted tmp partition every boot with random key as you do not need to keep temporary data in memory.
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 […]
After I started my journey with squashfs I encountered problem with VideoLAN as I couldn’t start it.
The easiest way to download YouTube videos is to use youtube-dl.
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 […]
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.