actual_patience

joined 2 years ago
[–] actual_patience@programming.dev 4 points 1 year ago (1 children)

I much prefer it over grub. I don't think there's any other bootloader's that support btrfs snapshots.

[–] actual_patience@programming.dev 3 points 1 year ago (1 children)

I think flatpaks are good. The performance penalty for containerized software can be felt much more when you're not using a good CPU. So containers do not "solve" my use case.

[–] actual_patience@programming.dev 2 points 1 year ago (1 children)

Could you pass me a link to an example setup?

 

It is by design non-invasive and should work on any distro which meets the requirements; Btrfs root and systemd-boot bootloader. With non-invasive I mean; it doesn't mess with your normal OS and its configuration, it can be rolled out, toyed around with and just as easily be removed again.

Taken from reddit:

I think this is the best approach to immutability. I don't want heavy abstraction and I don't want containers.

A system I can deploy anytime and rollback on is all I needed.

When I have time, I will include this in my setup.

 

I was wondering if anyone here has attempted the new "COW filesystem for Linux that won't eat your data".

It's supposedly has been stable since the start of 2023. I'm willing to give it a try on Arch, but before I do, I'd like to hear if anyone has faced any issues with it.

[–] actual_patience@programming.dev 2 points 2 years ago (3 children)

"subvolume - cannot be snapshotted if it contains any active swapfiles"

Make a subvolume only for the swapfile.

has a chance to fragment

This is true for all files. Is it a bigger problem for swap?

has issues with hibernation (that I've personally encountered multiple times)

This one I can't refute. How long ago did you have these issues?

[–] actual_patience@programming.dev 5 points 2 years ago (1 children)

Mount options also only take effect on the first mount of the device. Since it looks like you only have 1 btrfs device - only / needs the options, really.

I didn't know this. Thanks!

[–] actual_patience@programming.dev 6 points 2 years ago (10 children)

Yeah it's supported. It's listed in the docs for btrfs and arch.

 

I'm attempting a new install. I want to use btrfs with swapfile.

Do I need to disable compression on my swap subvolume?

Is there anything else I should keep in mind for fstab if I want to, say, not keep track of my Downloads folder when snapshotting?

Here is my fstab:

LABEL=arch@btrfs        /               btrfs           rw,relatime,discard=async,space_cache=v2,subvolid=256,subvol=>

LABEL=arch@btrfs        /home           btrfs           rw,relatime,discard=async,space_cache=v2,subvolid=257,subvol=>

LABEL=arch@btrfs        /var/cache/pacman/pkg   btrfs           rw,relatime,discard=async,space_cache=v2,subvolid=259>

LABEL=arch@btrfs        /var/log        btrfs           rw,relatime,discard=async,space_cache=v2,subvolid=258,subvol=>

LABEL=arch@btrfs        /.snapshots     btrfs           rw,relatime,discard=async,space_cache=v2,subvolid=260,subvol=>

LABEL=arch@btrfs        /swap           btrfs           rw,relatime,discard=async,space_cache=v2,subvolid=263,subvol=>

LABEL=efi@fat32         /efi            vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=asci>

/swap/swapfile          none            swap            defaults        0 0
[–] actual_patience@programming.dev 1 points 2 years ago (1 children)

Don't you need FAT 32 for compatibility?

[–] actual_patience@programming.dev 1 points 2 years ago (3 children)

ext4 boot partition? Does that mean you have Coreboot, not UEFI?

Such a good image 🤣🤣🤣

I think you are understating the value of the Arch Wiki and AUR.

I am also a university student. I was required by one of my courses to program an Arduino using ArduinoIDE. My program, however, was not detecting my Arduino. By simply scrolling the Arch wiki, I found the issue, downloaded the fix via AUR and was able to get it working hassle-free. An equivalent of this process does not exist on NixOS.

I do not know what programs your uni requires, but if you do plan on using them on Linux, Debian or Arch, or their many derivatives should be the go-to simply for documentation and quick-fixes alone.