Skip Navigation

Search

Can't boot into Luks2 + Refind

I installed CachyOS with BTRFS, LUKS2 , REFIND.

After successful installation I'm not seeing any prompt for password nor the linux boot entry on refind.

Note: I didn't do any lvm or raid.

What should I do?

Solved ======

I just forgot to create a boot partition ๐Ÿ˜ฎโ€๐Ÿ’จ

3

Can I delete BTRFS snapshots from middle?

Let's say i made 10 snapshots on top of the base.

Now can i delete snap no. 5? Will the snaps after 5 will be affected?

Solved ======

Yes, one can delete consecutive snapshots. The data won't be deleted unless all snaps ( reference points ) get deleted.

Note: If you delete the original file and delete all the snapshots made when the file is still there, the file will get deleted permanently.

8

ProtonVPN on Arch Linux (CachyOS) ?

How to install ProtonVPN in Arch Linux (CachyOS) ?

Should I follow https://wiki.archlinux.org/title/ProtonVPN ?

OR

from flathub https://flathub.org/apps/com.protonvpn.www ?

This flatpak has Unverified tag, but according to this, this flatpak is safe.

Which one should I follow ?

Asking this because I'm because I'm a bit lazy to configure OpenVPN and all that stuff. (pls don't kill me :) > Also do you think using VPN from flatpak is a good idea?

31

Cannot create local repository .db file with repo-add

Hello! I've got a new Arch install that I'm in the process of setting up, however I wanted to do things differently this time around for the goal of getting this system as stable as possible without sacrificing features. So, the AUR...

I've used yay extensively and paru briefly before, but this time to achieve that goal I wanted to try aurutils with a local repository. I'm in the process of setting that up and using the command: repo-add aur-local.db.tar which gives the output: ==> No changes made to package database.

In all the guides I've gotten open in all these tabs, the output I should be getting starts with this: ==> Creating updated database file...

When I run the command, for a microsecond I get a file appear in Thunar but then disappears. Running pacman -Syy fails as the repo's database file obviously doesn't exist. No matter what I search I can't find anyone else with this problem nor a solution.

My system is a manual Arch installation, no archinstall, using the XFCE desktop. My shell is fish and, I can't see this having any influence whatsoever but my DM is ly.

My pacman.conf: Gitea

My pacman.d/aur-local.conf: Gitea

2

How to know why a package is being updated/installed

Hey, sometimes when I do pacman -Syu, I see some weird package being installed and I am curious which explicitly installed package is installing/updating it.

How do I so with pacman?

I know we can easily find out why an installed package is being installed, but what about before the package is being installed?

7

Is /usr/bin/sudo supposed to be empty?

So I just fixed my Arch KDE install this morning (I broke plasma after an update) and now I have an issue with sudo. It simply doesn't do anything when I use it manually in the terminal and when I use yay, it gives an exec format error for the sudo file. After checking on the file using both the file command and kate. Both say that the file is empty. Is that supposed to be the case? If not, how do I fix it?

7

Grub shows up in boot options but won't boot

First time arch installer here. I just installed arch with grub on a uefi laptop. Everything seemed fine until I rebooted and ended up in uefi settings instead of grub. The grub entry shows up in the boot options but the computer doesn't seem to care. What could be wrong?

I dont know what information is useful to narrow the problem down so just tell me what logs are necessary an I'll post them.

Edit: I tried installing using the archinstall script in case I misunderstood the install instructions, but still not booting. Tried both grub and systemd-boot. The laptop is an Asus vivobook S 14 model K3402Z and even though I have been running fedora on it for the last year I believe the issues have something to do with the laptop hardware.

Edit 2: The issue has been resolved. Turns out the step that ruined the install was when I formatted the NVME drive according to this section of the wiki it messed something up, so reverting that fixed everything.

9

Creating identical keyfiles returns different hashes?

Solved, see below.

I recently reinstalled my home server and was unable to open my LUKS-encrypted hard drive. Neither my usual passphrase nor a newly created keyfile were working. I tested on different distros, initially on my new Proxmox installation, later on a the Arch ISO. I eventually tried the disk on my main system, on which it used to be and I still had an old keyfile on - et voilรก. So I created keyfiles as suggested in the wiki and occasionally md5sum returned a different hash for the keyfile! Why is this happening? I find' this extremely concerning because this could potentially result in massive data loss due to a keyfile apparently randomly not working as I was experiencing it. What am I missing?

For reference because I don't know how to share what I exactly did.

Scenario #1: A directory on a mounted hard drive on my desktop. ``` $ echo -n '$mypassphrase' > ./dir/keyfile $ md5sum ./dir/keyfile c6dd9329dbe030127ce5e19d85de4df9 ./dir/keyfile

chown root:root ./dir/keyfile; chmod 400 ./dir/keyfile

md5sum ./dir/keyfile

c6dd9329dbe030127ce5e19d85de4df9 ./dir/keyfile ```

Scenario #2: My old keyfile in /etc on my desktop containing $mypassphrase. ```

md5sum /etc/keyfile

a1c10c2d023c982259f6c945ebee664e /etc/keyfile ```

Scenario #3: Booted from the Arch ISO on my server. ```

echo -n '$mypassphrase' > keyfile

chown root:root keyfile; chmod 400 keyfile

md5sum keyfile

c6dd9329dbe030127ce5e19d85de4df9 keyfile ```

Scenario #4: A directory in /home on my desktop. $ echo -n '$mypassphrase' > ./keyfile $ md5sum keyfile a1c10c2d023c982259f6c945ebee664e keyfile

EDIT: I just moved the disk back into my server and tried echo'ing my passphrase into a keyfile which returned the hash starting with c6, whereas opening a file using nano and pasting the passphrase into the file returned the hash starting with a1.

EDIT: I moved the disk back into my server, reinstalled Proxmox and tried again. I was able to unlock the disk after I pasted the passphrase into a file and deleted all trailing spaces/newline. I also tried echo'ing the passphrase into a keyfile and that also did not work, no clue why but it seems to work on some systems on not on others.

6

Anyone else seeing duplicate audio devices when Bluetooth disconnects and reconnects?

So I have been running into a weird issue lately where if I disconnect a Bluetooth audio device, it will remain visible in the KDE audio mixer. Reconnecting the audio device then adds a duplicate entry and the keyboard volume control for it is completely broken. It stays at the same volume. This was working just fine about a week ago and I've already downgraded pipewire, kpipewire, bluedevil, and plasma-pa to no avail. Nothing shows up in the logs, so I don't know exactly what's causing this bug.

Anyone else experiencing the same thing?

Arch Linux Kernel 6.4.8-arch1-1 Pipewire 0.3.77-1 KDE Plasma: 5.27.7 KDE Frameworks Version: 5.108.0 Qt 5.15.10

EDIT: Seems like simply changing the Bluetooth A2DP audio profile causes this issue as well. I have Bluetooth earbuds that have both AAC and SBC modes and toggling between them just creates more and more duplicate devices with the same name.

THE FIX: Seems like pipewire-pulse 0.3.77 was the culprit after all. Downgrade it to pipewire-pulse 0.3.76 and then do a systemctl --user restart pipewire-pulse to workaround this issue.

EDIT 2: pipewire-pulse 0.3.77-2 has the patch backported. Feel free to update to latest version in Arch repos.

Relevant bug report: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3414

6

Randomly stuck at "Reboot: Power Down"

Update 02/2024

The Problem has been solved by disabling TPM in UEFI Setup. TPM seems to be bugged with some CPUs. Before updating the BIOS, TPM was probably disabled by vendor, hence it didn't appear initially.

If you experience freezes right before poweroff, try disabling TPM in UEFI/BIOS settings if it isn't in use.

Symptoms

  • Complete Freeze after: preparing to enter ACPI S5 state Reboot: Power Down
  • seemlingly random (can successfully shutdown maybe 10 times in a row, then suddenly freezes again)
  • seems to happen more often as uptime grows
  • Case Fans still spin, LEDs and Lights stay on
  • Monitors stay on, still react to HDMI/DP Hotplugging (unplug/plug)
  • REISUB/REISUO doesn't work
  • Disks are already powered off and disconnected
  • USB devices (eg. keyboard unresponsive)

Since When

  • After switching to Arch and flashing BIOS Firmware 7C88v18 to MSI B460M-A Pro Board
  • Arch Linux is ruled out by me since it's very unlikely Userland plays a role, and already used Linux before without the problem
  • Gone from linux ~6.2.10 to 6.4.8, Kernel bug unlikely

Attempted:

  • Reflash 7C88v18 from a FAT32 formatted partition (USB)
  • Add reboot=pci or reboot=acpi acpi=force to kernel cmdline
  • run fwupd
  • Stop X and wait a bit for processes to clear up (???)
  • intel-ucode is installed: ~> pacman -Qi intel-ucode | head -2 Name : intel-ucode Version : 20230613-1
  • Other threads on the Internet seem to have easier reproducibility (always happening), solutions were about either kernel cmdline or outdated kernel (If I didn't see a thread with my exact problem, apologies)

Hardware Info

~> pacman -Qi nvidia | head -2 Name : nvidia Version : 535.86.05-8

~> cat /sys/class/dmi/id/board_* 2>/dev/null Default string B460M-A PRO (MS-7C88) Micro-Star International Co., Ltd. 1.0

~> LC_ALL=C lscpu | grep -i 'model name' Model name: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz

~> sudo journalctl -k --grep=microcode [...] kernel: microcode: updated early: 0xf0 -> 0xf6, date = 2022-12-26 [...] kernel: SRBDS: Mitigation: Microcode [...] kernel: microcode: Microcode Update Driver: v2.2.

Misc

  • Did I just miss something obvious?
  • I don't want to go back to an outdated BIOS firmware
  • lscpu, nvidia-smi and other info added if needed
  • I have another device (ASUS Board, similar CPU) with similar arch linux setup (nouveau instead of propietary nvidia there), no problems on that device
4

Help with wifi after general issue in my building

Hey everyone. So Last night there was a general problem with my building's network connectivity. This morning my landlord let me know it was fixed, which it was. I verified this from my mobile phone as well as the laptop I am using right now to write this post. However on my fairly new and hence barebones desktop running arch, I simply cant get NetworkManager to connect or even in some cases see any wifi networks.

This morning, it would occasionally show me the available networks, I would try to connect to my one which would work, but I would for all intents and purposes not have internet until a few minutes later the connection would drop. Now it doesn't even show any available networks.

Below are the outputs of some commands I thought would be useful. Of course it's probably not a comprehensive list so please do ask if you would like me to run and show the output of another command, just know I need to redirect it to a file and then transfer it here with a usb so its a bit tedious.

``` $ systemctl --type=service UNIT LOAD ACTIVE SUB DESCRIPTION alsa-restore.service loaded active exited Save/Restore Sound Card State dbus.service loaded active running D-Bus System Message Bus kmod-static-nodes.service loaded active exited Create List of Static Device Nodes NetworkManager.service loaded active running Network Manager polkit.service loaded active running Authorization Manager rtkit-daemon.service loaded active running RealtimeKit Scheduling Policy Service sddm.service loaded active running Simple Desktop Display Manager systemd-fsck@dev-disk-by\x2duuid-12341dff\x2db2b7\x2d4b67\x2db390\x2dcf28a63530d3.service loaded active exited File System Check on /dev/disk/by-uuid/12341dff-b2b7-4b67-b390-cf28a63530d3 systemd-fsck@dev-disk-by\x2duuid-6b1c0137\x2d0b2d\x2d4366\x2d92a4\x2dc374d0e89e02.service loaded active exited File System Check on /dev/disk/by-uuid/6b1c0137-0b2d-4366-92a4-c374d0e89e02 systemd-journal-flush.service loaded active exited Flush Journal to Persistent Storage systemd-journald.service loaded active running Journal Service systemd-logind.service loaded active running User Login Management systemd-modules-load.service loaded active exited Load Kernel Modules systemd-random-seed.service loaded active exited Load/Save OS Random Seed systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems systemd-sysctl.service loaded active exited Apply Kernel Variables systemd-tmpfiles-setup-dev.service loaded active exited Create Static Device Nodes in /dev systemd-tmpfiles-setup.service loaded active exited Create Volatile Files and Directories systemd-udev-trigger.service loaded active exited Coldplug All udev Devices systemd-udevd.service loaded active running Rule-based Manager for Device Events and Files systemd-update-utmp.service loaded active exited Record System Boot/Shutdown in UTMP systemd-user-sessions.service loaded active exited Permit User Sessions [email protected] loaded active exited User Runtime Directory /run/user/1000 [email protected] loaded active running User Manager for UID 1000

LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. 24 loaded units listed. Pass --all to see loaded but inactive units, too. To show all installed unit files use 'systemctl list-unit-files'.

$ nmcli radio WIFI-HW WIFI WWAN-HW WWAN enabled enabled missing enabled

$ ip l 1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: enp6s0: mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000 link/ether c8:7f:54:6c:96:38 brd ff:ff:ff:ff:ff:ff 3: wlp2s0f0u10: (EDIT) mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000 link/ether fe:32:ce:d2:cd:0a brd ff:ff:ff:ff:ff:ff permaddr 28:ee:52:08:d2:67

$ nmcli dev wifi list (there should be several networks available, as I can verify from my mobile device) IN-USE BSSID SSID MODE CHAN RATE SIGNAL BARS SECURITY ```

EDIT: At the opoint after my wireless interface where there is (EDIT) written, in the actual output there is written NO-CARRIER, BROADCAST, MULTICAST, UP enclosed in angle brackets, but for some reason I can't figure out how to get markdown to render the angle brackets. I think it thinks I'm writing HTML.

EDIT 2: Solved this by getting help from the arch linux forums. Link to my post where I got help, in case future people need help.

0

Assistance with Bluetooth

EDIT: Poor troubleshooting on my part. I missed the part in the dmesg about missing the firmware. I installed the firmware through AUR and everything works as it should. I need to be better than this .....

Okay, so I am ready to tear my hair out over this one. I've followed the Arch wiki to the letter and none of my devices are being discovered. The dmesg command shows my internal bluetooth adapter and blueberry recognizes the adapter. What gives? I don't know where to go to troubleshoot from here. Any ideas are welcome.

6

Pacman slow download speed

Hello everyone!

I'm experiencing troubles when installing and updating dependencies via pacman, download speed is waaay too low like 30-40 kb/s. I've tried reflector and rank-mirors, I even moved mirrors from another machine where everything works well but nothing helped.

As far as I can tell it's not a slow internet connection problem, because when I download torrents the speed is good (up to 7 megabytes per second).

How can I troubleshoot this?

Thanks!

16

Anyone else getting DNS leaks when running VPN on Archlinux?

I tried both Mullvad and Mozilla VPN and when I do a dns test, both are still using my ISP's DNS instead of the VPN's. This only happens on my Arch systems, works fine on my phone.

EDIT: Turns out these VPN clients depend on systemd-resolved in order to change your DNS. Enabling the service makes it work properly. A bit scary that they don't give you a warning that you're leaking DNS if you don't have systemd-resolved enabled.

6

Eclipse disappeared from the official repos / Applications

Mmm. A lot of legacy plugins works with Eclipse components. ๐Ÿ˜ฅ

0