• 0 Posts
  • 49 Comments
Joined 2 years ago
cake
Cake day: June 3rd, 2023

help-circle











  • Before installing Arch on a USB flash drive, I disabled ext4 journaling in order to reduce disk reads and writes, being fully aware of the implications (file corruption after unexpected power loss). I was confident that I would never have to pull the plug or the drive without issuing a normal shutdown first. Unfortunately, there was one possibility I hadn’t considered: sometimes, there’s that one service preventing your PC from turning off, and at that stage there’s no way to kill it (besides waiting for systemd to time out, but I was impatient).

    So I pulled the plug. The system booted fine, but was missing some binaries. Unfortunately, I couldn’t use pacman to restore them because some of the files it relied on were also destroyed.

    This was not the last time I went through this. Luckily I’ve learned my lesson by now




  • Why do you advocate for keeping /home separate?

    I personally don’t do it because the more partitions you have, the more often you need to fiddle around in GParted when one partition gets full. This is also why I use swap files instead of swap partitions

    As far as I can tell, unless you distro-hop, separating /home doesn’t have any advantages. Even then, sharing one /home directory between multiple desktop environments can cause some problems

    I agree with making and testing backups, though. My current strategy is to back everything up to a 4.2 TiB ZFS pool with daily snapshots on my LAN, and back up the most important data on that to the cloud



  • I think your misunderstanding comes from the fact that “wouldn’t work” can mean a lot of things, and you didn’t know quite what it meant

    If

    1. you’re not on an IPv6 network,
    2. you enter the IPv6 address of a website into the address bar and
    3. the browser attempts to load that website (not a search engine),

    then the connection will time out:

    OP never got to step 3, which indicates a problem with the browser




  • Neat, thanks for sharing

    Here’s the above pseudocode in bash:

    find /home/ -mindepth 1 -maxdepth 1 -type d -exec mount none {}/.cache/ -t tmpfs -o size=16G \;
    

    for doesn’t work here because it uses spaces to delimit strings, which could cause issues with filenames that contain spaces

    You can also create a systemd user service, which is useful if you don’t have root access. The above mount command requires root, but the following doesn’t and is more robust than symlinking to /tmp/:

    ln -s $(mktemp -dp /var/tmp/) ~/.config/