Well it probably doesn’t need it. Not really doing anything. I was just wondering if i made it too small and how to change it as there are some problems using fallocate so I’m not sure on the procedure and i would probably use dd. So i would probably remove the existing and recreate a larger one or maybe it can be made larger with the dd command? Is it a swap file or swap partition on the Btrfs?
Encountered that too on occasion, but not consistantly; anyway the following will definitely work and create a 38GB large swapfile (without holes).
swapsizeGB=38 swapsize=$(( swapsizeGB * 1024 )) sudo dd if=/dev/zero of=/swapfile count=$swapsize bs=1MiB status=progress
If it works just stick to it. Until it doesn’t …
It’s a swap file, so it can always be deleted and rebuilt again if need be.
sudo swapoff sudo rm /swap/swapfile
to remove the swapfile and then rebuild it according to the guide,
So if i want to change the size i only have to change (swapsizeGB=)? Nothing else?
Yes, change to 38 for 38GB, for example.
But this is only a substitute for fallocate…
Don’t forget to run all the other commands needed before and after fallocate/dd described in the WIki
I keep ending up in a mess, is there any chance you could do a guide for a non-encrypted install without hibernate please?
I’ll assume you will still want swap; think of hibernation as an option, you don’t need to use it.
The following refers to the copy&paste Wiki article.
+++ non-encrypted version +++
Just follow the aforementioned guide, but …
btrfsonluks=`sudo blkid -o device | grep luks`
fs_uuid=`sudo blkid -o device | grep luks` &&
fs_uuid=`sudo blkid -o device | grep sda2` &&
- delete (do not run) …
fs_uuid=`sudo blkid -o device -l -t TYPE=crypto_LUKS` && fs_uuid=`sudo blkid -o value -s UUID $fs_uuid` && sudo sed -i "s/parent_device_uuid\" : \"/parent_device_uuid\" : \"$fs_uuid/" /etc/timeshift/timeshift.json &&
You should now have an equivalent system to the guide, without the benefit of full disk encryption.
Still don’t get why one would choose this … but if it makes you happy, go for it .
[Edit 2020-11-29] modified to reflect timeshifts new config location
Thank you for the quick reply, I haven’t had chance to try it out but I’m about to. What if sda is for my root partition and I want to use sdb for /home? should I mount it as /home or @home? I don’t mind if I use EXT4 or BTRFS on my home partition to be honest.
Try to get it running “as-is” first. Once you’ve set it up that way you can always replace and/or delete the btrfs @home subvolume by changing the /home mount in your fstab later on.
But unless you really need to re-use/mount a existing home partition or device I’d advise against doing this.
Thanks, I already mounted it as /home in order to avoid confusion and I have to say that, after following your guide, my system is running beautifully and I don’t even notice the slower read/write speeds that I had previously.
Thank you so much for all of your help
p.s. I’m another Manjaro user that has been looking to jump ship for a while, the latest issues with the team was the last straw. I love the EOS community and now that I can get it running properly (thanks to you), I wouldn’t look back.
Currently i have used the copy and paste version of your set up on 2 nvme drives and an ssd on the same system. So i have 3 different desktops of EOS booting with Refind and your setup. I had to modify rEFInd to boot from the grubx64.efi instead of the vmlinuz image which i would normally do. It’s all working great. One of my other computers messed up with the grub update and had triple entries in it so i wiped it out and also put this setup on it with dual boot Windows 10 not using rEFInd on that one currently just grub.
I want to also try the BTRFS set up without encryption but i don’t understand completely your instructions.
What if it is nvme drives? Doesn’t matter? On the setups i did before two were nvme and one an ssd and i just copied and pasted your instructions.
I’m not getting that?
fs_uuid=`sudo blkid -o device | grep luks` && to fs_uuid=`sudo blkid -o device | grep sda2` && Okay change what the copy and paste sections has? .delete (do not run) … (What does this mean?
Delete these lines?
fs_uuid=`sudo blkid -o device -l -t TYPE=crypto_LUKS` && fs_uuid=`sudo blkid -o value -s UUID $fs_uuid` && sudo sed -i "s/parent_device_uuid\" : \"/parent_device_uuid\" : \"$fs_uuid/" /etc/timeshift.json &&
You will have to manually enter your root device. Could also be /dev/nvme0n1p2 for instance.
Just what it says…
- change “grep luks” to “grep sda2” or “grep nvme0n1p2” in the script under step #06
- do not execute the three mentioned lines
Okay Thanks. So was i supposed to change anything in the copy and paste setup when i installed? Because two drives were nvme and one is ssd but i never changed anything. It all seems to be working?
No, the copy&paste script doesn’t care what type of storage you have.
I was just asked how to setup this without encryption. The proposed quick solution needs you to manually change the root device. Could of course also be automated.
Sorry to resurrect this issue but I have installed using the above steps (without the swapfile, hibernation and luks) and noticed something strange when I did a lsblk:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 111.8G 0 disk ├─sda1 8:1 0 500M 0 part /boot/efi └─sda2 8:2 0 111.3G 0 part /run/timeshift/backup sdb 8:16 0 894.3G 0 disk ├─sdb1 8:17 0 892.3G 0 part /var/cache/pacman/pkg └─sdb2 8:18 0 1.9G 0 part [SWAP]
My root partition is on sda2 and sdb1 is mounted as /home but they show as /run/timeshift/backup and /var/cache/pacman/pkg respectively.
Is this correct, as surely sda2 should show as / or @ and sdb1 should show as /home?
lsblk lists volumes but can only list one mount point per volume, so it shows only one of the subvolumes. What is the output of
As @csteinforth stated this is a lsblk limitation. No need to worry, all is good.
Just check the actual mountpoints with
findmnt -nt btrfs
[Edit] If you want to also list non-btrfs filesystems and additional size info, try something like this
findmnt -D -t vfat,btrfs,ext4
Thanks guys - it all seems to be fine. I was just confused by the mountpoints
I was using Arch and decided to go to EndeavourOS for a new install on a recent laptop. I had choose to follow your quick tutorial for an encrypted system with BTRFS and automatic snapshots. Very easy ! I am pleased with the results. Thank you !
A while back you asked me about dual boot and rEFInd using the BTRFSonLuks. So i have been using it for a while and i actually had triple boot with BTRFSonLUKS on 3 separate drives with rEFInd. I have since installed it without encryption on two drives still using rEFInd. It works well! What i like about it is grub doesn’t add any entries for the other drives so it boots up with rEFInd and then you select the OS or desktop and then it either has to be decrypted or not and then the grub menu comes up and you enter your password to log in. I am using the grubx64.efi to boot instead of the vmlinuz-linux image that i would normally use with rEFInd because of grub being intertwined in the Btrfs setup with snaps and timeshift. I like it.
Edit: So i still have triple boot but only one is encrypted.