Hello,
I am running Manjaro (Kernel 6.3.5-2) and KDE desktop on a dual-boot system. The Linux partition is encrypted using LUKS. I never use the Windows partition, and would like to remove it and allocate the space taken up by it for my Linux system. I would like this reallocated space to also be encrypted, just like my current Linux partition.
Is there a way to do this without needing to reinstall Linux from scratch? If so, could you please advise the best method to create an entire system snapshot, so that if anything goes wrong during the attempt, I can revert to my current state if needed? My usual backup regiment is a little haphazard, where I keep backups of important files, but I have never done a full system backup/restore.
Or is it best to simply start from scratch with a fresh install of Linux on a single-boot setup? If so, are there ways I can backup/restore as much of my Linux system customisations as possible (things such as packages, shortcuts, KDE activity/desktop customisations, etc), in order to minimise the amount of work I need to do in getting the Linux system looking/feeling like how I currently have it running?
In terms of my level of knowledge for performing this task, I am quite proficient and comfortable on the command line and with Bash scripting in general, but am not super knowledgeable on the finer details of the “under the hood” of the Linux system, and partition/encryption technicalities.
For instance, I completed the Architect install of Manjaro when I was first setting up the dual-boot system a few years ago, including the LUKS encryption. I was using a guide provided on these forums to complete this, and didn’t run into any issues, but many of the terms and tasks were new to me, in particular regarding boot systems, grub, lvm, etc.
Details of my current partition scheme are provided below.
Thank you very much in advance for any advice you might be able to provide.
Best,
fractal_sounds
~ plasmashell --version
plasmashell 5.27.5
~ kf5-config --version
Qt: 5.15.9
KDE Frameworks: 5.106.0
kf5-config: 1.0
**************************************************************
~ sudo fdisk -l
Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 31336447 31334400 14.9G Windows recovery environment
/dev/nvme0n1p2 31336448 31541247 204800 100M EFI System
/dev/nvme0n1p3 31541248 31574015 32768 16M Microsoft reserved
/dev/nvme0n1p4 31574016 515821567 484247552 230.9G Microsoft basic data
/dev/nvme0n1p5 998166528 1000214527 2048000 1000M Windows recovery environment
/dev/nvme0n1p6 515821568 516870143 1048576 512M EFI System
/dev/nvme0n1p7 516870144 998166527 481296384 229.5G Linux filesystem
**************************************************************
~ sudo parted -l
Number Start End Size File system Name Flags
1 1049kB 16.0GB 16.0GB ntfs Basic data partition diag
2 16.0GB 16.1GB 105MB fat32 EFI system partition boot, esp
3 16.1GB 16.2GB 16.8MB Microsoft reserved partition msftres
4 16.2GB 264GB 248GB ntfs Basic data partition msftdata
6 264GB 265GB 537MB fat32 boot, esp
7 265GB 511GB 246GB
5 511GB 512GB 1049MB ntfs Basic data partition hidden, diag
**************************************************************
~ lsblk -a -o NAME,FSTYPE,FSVER,SIZE,MOUNTPOINTS
NAME FSTYPE FSVER SIZE MOUNTPOINTS
nvme0n1 476.9G
├─nvme0n1p1 ntfs 14.9G
├─nvme0n1p2 vfat FAT32 100M
├─nvme0n1p3 16M
├─nvme0n1p4 ntfs 230.9G
├─nvme0n1p5 ntfs 1000M
├─nvme0n1p6 vfat FAT32 512M /boot/efi
└─nvme0n1p7 crypto_LUKS 1 229.5G
└─cryptroot LVM2_member LVM2 001 229.5G
├─vg-lvol--root ext4 1.0 50G /
├─vg-lvol--home ext4 1.0 174G /home
└─vg-lvol--swap swap 1 5.5G [SWAP]