GRUB can access the encrypted root volume, a separate /boot partition is only required if you use a boot loader not capable of accessing that directory.
To keep home separate from root, you'd need to create a partition for it and format that using LUKS.
Then you should be able to automatically unlock the home partition on boot via /etc/crypttab.
I'd keep it simple and suggest using a single partition for both root and home, with their own respective BTRFS subvolumes. You can also enable snapshots for /home as a form of backup.
Since BTRFS has logical volume management capabilities - LVM won't really provide much benefit in that regard.
For configuring swap to use hibernation a swap file should suffice, and will be automatically decrypted inside the root partition.
However, if you don't feel that you will take advantage of BTRFS features, then LVM + EXT4 is probably the ideal solution.
For cloning the installation - you can create a new LUKS container and filesystem on the other SSD and then use btrfs send/receive commands to send over the files.
First mount the top-level subvolume of the primary SSD and create read-only snapshots of your subvolumes:
do the same for the primary SSD by mounting the top-level subvolume (ID=5) as pointed out in the first section.
Unmount both filesystems:
umount /mnt/btrfs
umount /mnt
Delete the empty directory:
rmdir /mnt/btrfs
Mount the root of the LUKS partition:
mount -o subvol=@ /dev/mapper/root /mnt
Edit /etc/fstab on the new installation and update the UUIDs to match the btrfs filesystem.
mount -o subvolid=@
At this point, reinstall your boot loader if required, regenerate initramfs, and reboot:
grub-mkconfig -o /boot/grub/grub.cfg
mkinitcpio -P
exit
umount -a
reboot
Your system should now boot normally as it were before the old SSD.
If you have problems with snapper not creating snapshots anymore, delete the config by editing /etc/conf.d/snapper and removing root from the quotations on the following line:
SNAPPER_CONFIGS=""
Then recreate a snapper configuration file:
snapper -c root create-config /
If you don't use the default snapper setup, follow:
Steam Deck is counted as a separate entry on the Steam Hardware Survey. So Arch on desktop is the most popular choice amongst Steam users according to the survey.
If you want to dynamically allocate swap space, you're probably better off using a swap file or swap on ZRAM.
As for the root and home partitions, either utilizing
LVM or hosting both data on a single root partition will ensure you never run out of allocated disk space.
On my system the partition table is as follows:
/dev/nvme0n1p1 2048 2099199 2097152 1G EFI System
/dev/nvme0n1p2 2099200 1000214527 998115328 475.9G Linux root (x86-64)
With 8GB of dedicated swap space on ZRAM:
/dev/zram0 zstd 7.8G 4K 64B 20K 12 [SWAP]
ZRAM has the added benefit of storing memory pages in RAM, which will increase performance and not use disk space.
You can shrink the other partitions using GParted to expand the size of the desired partitions. However, this method will always carry the risk of potentially destroying data. So creating a backup of the data is strongly advised.
I'd recommend against creating a subvolume for the entire /var directory as the pacman database is located in /var/lib/pacman. This may be a problem because if you rollback the system to a previous snapshot, you may lose access to the database which could render your system unrecoverable.
Instead, consider creating subvolumes for /var/cache, /var/log etc.
A typical BTRFS subvolume layout resembles something like this:
Mount the top-level subvolume (5):
mount -o subvolid=5 /dev/root-partition /mnt
Create the subvolumes:
btrfs subvolume create /mnt/@
btrfs subvolume create /mnt/@home
Edit `/etc/fstab` to reflect the changes:
# /dev/nvme0n1p5
UUID=413eee0c-61ff-4cb7-a299-89d12b075093 /home ext3 nodev,nosuid,relatime 0 2
Remount the filesystems:
systemctl daemon-reload
mount -a
Use the appropiate btrfs send/receive or btrfs replace commands to replicate the installation on a different disk. Do not use rsync for this task as it does not recognize btrfs referencing, and will expand disk usage.
This is a possibility. Though changing the UUIDs is only necessary if connecting both drives to the same system. Otherwise it can cause filesystem conflicts and corruption which I believe is what you're referring to.
It is likely that the device block IDs for your SSD are different on the new system.
If you have the drive mounted as /dev/nvme0n1p2 in /etc/fstab, it will not follow persistent block device naming conventions. Therefore you should use UUIDs of the root device to prevent boot issues with block device IDs changing.
I'd suggest using the Arch ISO and chrooting into your installation to fix this problem.
First, download the ISO and boot it from USB.
Mount the target device:
For EXT4:
mount /dev/nvme0n1p2 /mnt
mount /dev/nvme0n1p1 /mnt/boot/efi
For BTRFS:
mount -o subvol=@ /dev/nvme0n1p2 /mnt
mount /dev/nvme0n1p1 /mnt/boot/efi
Change root into the install:
arch-chroot /mnt
Get the UUID of the root filesystem:
blkid -s UUID -o value /dev/nvme0n1p2 /mnt >> /etc/fstab
Edit the resulting /etc/fstab and change the old entry with the new UUID. E.g:
I'd highly recommend using btrfs with snapper instead of Timeshift.
Timeshift only works on a specific btrfs subvolume layout - That is,
@and@home. So it's rather inflexible and doesn't work well beyond basic setups.Snapper supports any subvolume layout which is designed to work with btrfs, and is therefore more suitable for most system configurations.
That is correct! Well spotted.
GRUB can access the encrypted root volume, a separate
/bootpartition is only required if you use a boot loader not capable of accessing that directory./etc/crypttabuses UUIDs to identify any additional encrypted drives, and will persist through updates.For a dual boot setup,
512MEFI partition size should be enough as long as/bootis on the root filesystem.To backup a LUKS header see: https://wiki.archlinux.org/title/dm-crypt/Device_encryption#Backup_and_restore
To keep home separate from root, you'd need to create a partition for it and format that using LUKS. Then you should be able to automatically unlock the home partition on boot via
/etc/crypttab.See: https://wiki.archlinux.org/title/Dm-crypt/Encrypting_a_non-root_file_system
Put your ESP on
/efior/boot/efi- This will separate your EFI files from the kernel images, and makes system rollbacks easier using BTRFS.Specify [LUKS1](https://wiki.archlinux.org/title/dm-crypt/Encrypting_an_entire_system#Encrypted_boot_partition_(GRUB) when creating a LUKS container, as LUKS2 has limited support for an encrypted
/boot.I'd keep it simple and suggest using a single partition for both root and home, with their own respective BTRFS subvolumes. You can also enable snapshots for
/homeas a form of backup.Since BTRFS has logical volume management capabilities - LVM won't really provide much benefit in that regard.
For configuring swap to use hibernation a swap file should suffice, and will be automatically decrypted inside the root partition.
However, if you don't feel that you will take advantage of BTRFS features, then LVM + EXT4 is probably the ideal solution.
If
/.snapahotsis mounted, unmount the subvolume then delete it:Then create the snapper config.
For cloning the installation - you can create a new LUKS container and filesystem on the other SSD and then use
btrfs send/receivecommands to send over the files.First mount the top-level subvolume of the primary SSD and create read-only snapshots of your subvolumes:
and so on...
Unmount
/mnt.Setup a new LUKS container on the target SSD:
Create the btrfs filesystem and mount it:
Then with both filesystems mounted on each SSD,
btrfs send/receivethe subvolumes to the target location:Send the read-only subvolumes over:
repeat for the other needed subvolumes.
Create writable snapshots of the read-only subvolumes:
Delete the read-only snapshots:
do the same for the primary SSD by mounting the top-level subvolume (ID=5) as pointed out in the first section.
Unmount both filesystems:
Delete the empty directory:
Mount the root of the LUKS partition:
mount -o subvol=@ /dev/mapper/root /mnt
Edit
/etc/fstabon the new installation and update the UUIDs to match the btrfs filesystem.mount -o subvolid=@
At this point, reinstall your boot loader if required, regenerate initramfs, and reboot:
Your system should now boot normally as it were before the old SSD.
If you have problems with
snappernot creating snapshots anymore, delete the config by editing/etc/conf.d/snapperand removingrootfrom the quotations on the following line:Then recreate a snapper configuration file:
If you don't use the default snapper setup, follow:
https://wiki.archlinux.org/title/snapper#Configuration_of_snapper_and_mount_point
Good luck!
Have you tried setting the keymap via
localectl set-x11-keymap pl?Log out and back in again for changes to make effect.
Install the
plymouthpackage:Add
plymouthto the HOOKS array in/etc/mkinitcpio.conf:Regenerate the initramfs:
Edit your bootloader configuration file and append
quiet splashto show the boot splash screen i.e (GRUB):Regenerate the GRUB configuration file:
Edit
/etc/plymouth/plymouthd.conf, uncomment both options and select a theme i.e (BGRT):Reboot.
Always consult the Arch Wiki where possible:
Plymouth - Arch Wiki
Steam Deck is counted as a separate entry on the Steam Hardware Survey. So Arch on desktop is the most popular choice amongst Steam users according to the survey.
If you want to dynamically allocate swap space, you're probably better off using a swap file or swap on ZRAM.
As for the root and home partitions, either utilizing LVM or hosting both data on a single root partition will ensure you never run out of allocated disk space. On my system the partition table is as follows:
With 8GB of dedicated swap space on ZRAM:
ZRAM has the added benefit of storing memory pages in RAM, which will increase performance and not use disk space.
You can shrink the other partitions using GParted to expand the size of the desired partitions. However, this method will always carry the risk of potentially destroying data. So creating a backup of the data is strongly advised.
Try adding
MOZ_ENABLE_WAYLAND=1to/etc/enviromentand then reload the session.You don't need to create a pacman hook to sign the UKIs. sbctl includes a pacman hook that will sign the files automatically.
You can use GParted to delete the home partition and expand the root partition.
Make sure to backup any data before doing so.
I'd recommend against creating a subvolume for the entire
/vardirectory as the pacman database is located in/var/lib/pacman. This may be a problem because if you rollback the system to a previous snapshot, you may lose access to the database which could render your system unrecoverable.Instead, consider creating subvolumes for
/var/cache,/var/logetc.A typical BTRFS subvolume layout resembles something like this:
@- mapped to/@home- mapped to/home@cache- mapped to/var/cache@log- mapped to/var/logand so on.
On my system using a Ryzen 5 3600 (Zen 2), the
acpi-cpufreqdriver is used by default with kernel version 6.5.4.As for the motherboard not exposing the CPPC flags, it seems to be a known issue.
The
amd_pstatedriver is used automatically on Zen 2+ APUs only.You will have to set the kernel paramater manually to enable the driver on desktop CPUs.
To create btrfs subvolumes after installation:
Mount the top-level subvolume (5):
Create the subvolumes:
Edit
/etc/fstabto reflect the changes:Remount the filesystems:
Done.
To create btrfs subvolumes after installation:
Mount the top-level subvolume (5):
Create the subvolumes:
Edit
/etc/fstabto reflect the changes:Remount the filesystems:
Done.
To create btrfs subvolumes after installation:
Mount the top-level subvolume (5):
mount -o subvolid=5 /dev/root-partition /mnt
Create the subvolumes:
btrfs subvolume create /mnt/@
btrfs subvolume create /mnt/@home
Edit `/etc/fstab` to reflect the changes:
# /dev/nvme0n1p5
UUID=413eee0c-61ff-4cb7-a299-89d12b075093 /home ext3 nodev,nosuid,relatime 0 2
Remount the filesystems:
systemctl daemon-reload
mount -a
Done.
For
EXT4formatted drives:For
BTRFSformatted drives:btrfs send/receiveorbtrfs replacecommands to replicate the installation on a different disk. Do not usersyncfor this task as it does not recognize btrfs referencing, and will expand disk usage.You're correct.
In that case u/amiabaka will have to use either
tune2fsorbtrfstuneto tune them depending on the filesystem.This is a possibility. Though changing the UUIDs is only necessary if connecting both drives to the same system. Otherwise it can cause filesystem conflicts and corruption which I believe is what you're referring to.
It is likely that the device block IDs for your SSD are different on the new system.
If you have the drive mounted as
/dev/nvme0n1p2in/etc/fstab, it will not follow persistent block device naming conventions. Therefore you should useUUIDsof the root device to prevent boot issues with block device IDs changing.I'd suggest using the Arch ISO and chrooting into your installation to fix this problem.
First, download the ISO and boot it from USB.
Mount the target device:
For
EXT4: mount /dev/nvme0n1p2 /mnt mount /dev/nvme0n1p1 /mnt/boot/efi For BTRFS: mount -o subvol=@ /dev/nvme0n1p2 /mnt mount /dev/nvme0n1p1 /mnt/boot/efiChange root into the install:
Get the UUID of the root filesystem:
Edit the resulting
/etc/fstaband change the old entry with the new UUID. E.g:Save the file.
Make sure the drive mounts correctly with:
Exit chroot, unmount, and reboot: