I am finally going to remove windows from by dualboot laptop and only boot into linux. Linux is on a single encrypted btrfs partition.
First I know I should back up the data to a spare disk in-case something goes wrong.
From what I read once I mound the luks partition I can expand it into the empty space left after removing the windows partitions. (https://wiki.archlinux.org/title/Dm-crypt/Device_encryption#Resizing_encrypted_devices) am I reading this correct?
Once the partition is expanded I am going to have to expand the btrfs filesystem. I’ve done this in the past (ext4) with partitionmanager by just expanding it to fill the empty space, but I’m not sure that works with btrfs. What is the proper way to do this?
Thanks in advance.
It works the same way, done this many times with Gparted.
so basically all I have to do is mount the encrypted partition and then I can use partitionmanager or gparted to expand the partitions as normal
Yes, that should do it. I would definitely make a backup image of the partition beforehand, of course. I did this about a year ago when I converted (in-place) all of my BTRFS partitions to encrypted ones.
I was unable to move the encrypted btrfs partition using neither partitionmanager or gparted. I removed the windows partitions which freed up space infront of the encrypted one, but when I tried to move the encrypted one I was up able to move it into the free space. Any suggestions?
Sorry, no. From what a quick search revealed, most are suggesting that it’s not worth it, better off just saving the data and creating a new one. Tbh, I don’t remember all the steps I took before.
thanks, I’m seeing conflicting results myself. I backed up the partition with rescuzilla but I’ll have to make a more proper backup with restic and try to restore the whole thing. Right now I don’t have the time so I’ll have to spend more time preparing for it.
just wanted to provide a followup. Since I had backed up the encrypted partition with rescuezilla I figured I’d give this a try.
First I moved my locked encrypted partition with partitionmanager to the top because physically the windows partitions I removed were in-front of my Linux partition. I validated that this didn’t cause any issues by rebooting and a quick check it looked good, so I rebooted with the EndeavourOS ISO and used Gparted to first unlock the partition and then expand it into the newly created empty space behind it. A reboot confirmed it all worked. My laptop is not windows free ! (well not really I still have a windows VM)
This is tangential, but related enough to mention I think.
I was running short of space on OS device of my NAS. I ordered a new 1 tb ssd, and (to my astonishment) simply did ‘btrfs device add /dev/nvme0n1 /’ and pop-bang, my volume went from 80% to 27% full. It was good etiquette to balance after that..but I was amazed at the simplicity.
No formatting, no partitioning, no nothing :0
I wonder how / if that would work with encrypted partitions, certainly will have to give that a try with and VM to experiment.
I know nothing about encrypted volumes (per say) as I never found it necessary. However, I could see that using partition spaces vs raw volumes could (I don’t know either) require you to partition first.