- https://github.com/Benjamin-Loison
- Joined on
2022-10-16
Block a user
Dual boot Windows time inconsistency
To be able to investigate when the time shift occurs, let us add to crontab
:
# [Benjamin_Loison/linux/issues/27](https://gitea.lemnoslife.com/Benjamin_Loison/linux/issues/27)
* * * * *…
How to enable full disk encryption after install?
[wiki.archlinux.org: Dm-crypt/System configuration#Unlocking in late userspace (822797)](https://wiki.archlinux.org/index.php?title=Dm-crypt/System_configuration&oldid=822797#Unlocking_in_late_user…
How to enable full disk encryption after install?
Should test with:
/etc/mkinitcpio.conf
:
HOOKS=(base systemd autodetect microcode modconf kms keyboard sd-vconsole block sd-encrypt lvm2…
How to enable full disk encryption after install?
Let us try:
/etc/fstab
:
/dev/mapper/crypt / ext4 errors=remount-ro 0 1
/et…
How to enable full disk encryption after install?
Replacing in /mnt/etc/fstab
0e9a3032-7390-4a7f-8073-e690fc58839a
with 4ce57ca1-ca7c-4b06-abb8-eb0892d6897e
does not help booting.
How to enable full disk encryption after install?
sudo blkid
Output:
/dev/sr0: BLOCK_SIZE="2048" UUID="2025-01-11-10-25-55-00" LABEL="d-live 12.9.0 gn amd64" TYPE="iso9660" PTUUID="98418538"…
How to enable full disk encryption after install?
/mnt/etc/fstab
:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this…
How to enable full disk encryption after install?
On my Debian 12 GNOME laptop:
/etc/fstab
:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique…
How to enable full disk encryption after install?
df -h /mnt/
Output:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/recrypt 30G 11G 18G 37% /mnt
How to enable full disk encryption after install?
sudo fdisk -l
Output:
Disk /dev/vda: 30 GiB, 32212254720 bytes, 62914560 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/ph…
How to enable full disk encryption after install?
sudo cryptsetup open /dev/vda1 recrypt
Enter passphrase for /dev/vda1:
sudo resize2fs /dev/mapper/recrypt
Output:
re…
How to enable full disk encryption after install?
sudo cryptsetup reencrypt --encrypt --reduce-device-size 32M /dev/vda1
Output:
WARNING!
========
This will overwrite data on LUKS2-temp-4ce57c…
How to enable full disk encryption after install?
sudo resize2fs -p -M /dev/vda1
Output:
resize2fs 1.47.0 (5-Feb-2023)
Resizing the filesystem on /dev/vda1 to 3039933 (4k) blocks.
Begin pass…
How to enable full disk encryption after install?
sudo e2fsck -f /dev/vda1
Output:
e2fsck 1.47.0 (5-Feb-2023)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
P…
How to enable full disk encryption after install?
What about Debian 12 GNOME to just encrypt ext4 with LUKS without LVM?
Run a command when fill a given percentage of the disk