/u/lpock
On my system there's I think technically only 1 esp partition, the one created by windows.
The motherboard does not seem to care about the esp flag though and let's me boot from any fat32 partition contating an efi executable.
If you want to use systemd-boot than it might need them to be combined?
I only use efistub or refind now
Isn't windows notorious for deleting other files in the efi partition though?
It's never happened to me so I'm not actully sure what it does.
Afaict having multiple esp partition is forbidden by the standard, but on 3 computers I've tried it on (asus laptop, hp laptop, msi motherboard desktop) it's never been a problem. I think dells might not like it though.
I'm writing this mostly from memory, so check with the appropriate articles on the wiki.
The most basic way would be to create 2 partitions on the second disk. One fat32 512M, the other ext4 the rest of the disk.
You might need to set the efi flag on the first one?
The ext4 one will be root. You pacstrap it and chroot into it.
Mount the 1st partition, for example at /boot.
Generate the fstab file, instal your programs with pacman and grub and efibootmgr.
Run grub-install and generate the config. Assuming the config is correct you can boot into grub from bios and it will give you the option to boot into windows or linux.
If that still does not work, maybe share a list of commands you are using.
Looking at the wiki, if you have efibootmgr installed, grub-install should create the entry on its own. If it's not default you can also use it to make it default without going into bios. Make sure to add the partition to your fstab later so that you can update grub.
Yes. It needs to be it's own partition, since UEFI can only read fat32 filesystems. Then grub will load the Linux kernel or boot Windows. I believe installing grub is mostly automatic, but I have not used it in years
You should be able to create a partition where you place the bootloader, like grub or refind, set it as the default boot option in UEFI and make it find other systems or inform it manually.
Don't touch the one created by windows, I think maybe that's why people later complain about windows update destroying their dual boots?
Whether that works might depend on your motherboard.
That's why if you update remotely (or do other stuff which may take time and you don't want to lose progress if you disconnect, like video encoding) you should probably use something like tmux.
Can't the attacker just reset CMOS in such a situation? IIRC, removing the battery was enough, when I wanted to access bios on my school's pc.
Edit:
I guess if you set up a password to boot the pc, before the bootloader even loads, which I think is usually possible then resetting CMOS would reset that password and you would know, that the bios has been tampered with, although afaik most people just use disk encryption, so that they don't have to input 2 passwords?
I made something similar in fish. It uses brightnessctl, I bound it to the keyboard shortcuts, it restores last brightness on boot via a systemd service, updates waybar with a percentage (steps from 0 to current / steps from 0 to max) on each brightness update. It's not the cleanest, it doesn't check if the argument is correct, it can't set a specific brightness, but for me that's good enough and I don't want to waste time writing more.
~/.c/sway $ cat brightness.sh
#!/bin/fish
set currentBrightness (brightnessctl get)
if test $argv = "--inc"
set newBrightness (test $currentBrightness -lt 4 && echo 4 || math -s0 $currentBrightness * 1.25)
else if test $argv = "--dec"
set newBrightness (math -s0 $currentBrightness * .8)
else if test $argv = "--restore"
set newBrightness (cat ~/.config/sway/brightness)
end
brightnessctl s $newBrightness > /dev/null
echo $newBrightness > ~/.config/sway/brightness
pkill -SIGRTMIN+10 waybar
~/.c/sway $ cat ../waybar/getBrightnessPercentage.sh
!/bin/fish
set max (brightnessctl max)
set current (brightnessctl get)
set shift 0.1
math -s0 "100 * ln($current/$shift/$max + 1) / ln(1/$shift + 1)"
No problem.
I didn't have any artifacts either, just freezes. I hoped you maybe would have the same problem, as the one in my link was recently patched. Good luck on finding the solution.
Very interesting. I'd say in this case it was the easiest to use the live cd, since OP already had it lying around after the installation, but if it is not possible, for example if this was their only pc it is good to know this method.
It depends on the bootloader though. On machines, where I don't dual boot I use EFISTUB as my bootloader, so to edit the kernel command line I either have to use efibootmgr from linux or use uefi shell directly. If I hadn't installed the shell on the particular computer then I don't think there is a way to do it without a second one (unless some bios systems have an option to edit files).
I know there is a txt file included with the iso (I think in /root ?) which is just the wiki instalation article, but it doesn't tell you much about bootloaders for example, since online it is just a hyperlink. But if you know how to install everything and you just need a checklist it is good enough.
This will swap the keys for the duration when the program is running, right? Not ideal, but better that nothing, I guess, F3 and F4 are not that often used.
I tried doing some benchmarks in user space (I did clean the caches each run), 20 runs per command, samsung 850 evo, intel i7 4700hq, images made with lz4c -12 and zstd -15, as those seemed to give the best read speeds:
Command
Mean [ms]
Min [ms]
Max [ms]
Relative
cat initramfs-linux-zen.img
102.3 ± 5.3
96.0
109.8
1.38 ± 0.09
lz4cat initramfs-linux-zen.img.lz4
74.0 ± 2.9
70.6
81.2
1.00
zstdcat initramfs-linux-zen.img.zst
75.4 ± 1.4
72.9
77.9
1.02 ± 0.04
I'm not sure if those tests are representative, but I can't see why they wouldn't be.
Before I used compression because I thought my boot times were really reduced (just checking with systemd-analyze, but not in any rigorous way), but even with 4s boot times 25 ms is not noticable. The filesize being reduced from 37 MiB to 10 MiB is a big plus though, my /boot partition is 512 MiB big, initramfs is created on each kernel update twice, I'm guessing it should help with the life span of the nand cells.
They are on Arch, they can just read the docs. And fish 3.10 has some amazing docs. Scripts use the shebang anyway, so the only thing they need to know for now is how to set up environmental variables and that shell substitution in fish dosen't use a dollar sign in front of the first parenthesis.
I know he was talking about aurto, not aurutils, but just a tip; you should be able to use pacman -Ql aurto | fgrep -i systemd to find the systemd timers. I don't know if there's an easier/better way.
I doubt I'll be able to help, but post outputs of sudo blkid and df -T. Did you change your /etc/mkinitcpio.conf? I think you did not update /etc/fstab, after copying the files, the new /boot will have a new uuid now, that you made another partition, but the outputs of those commands should help investigate. I believe the fact, that your fstab matches the error doesn't matter, or even it couldn't be any other way, it says it can't find the disk you instructed it to.
Edit:
After I tried breaking /boot uuid in fstab on my system, I get the same error, after like 90 s, during which the pc tries to mount this non-existant partition.
Turns out iwd deletes the interface when I close it's service via systemd. So before the segault and after it there where the same number of interfaces, unfortunately. This seems strange, because this interface is not created at first by iwd. Unless it kills an interface and instantly creates one with the same name? Oh, and iwd didn't crash.
Edit:
Yeah, iwd did kill those interfaces, I'm dumb. I noticed, that they are numbered and the numbers seem to be unique, not reused. Also it's not like a name is enough to signal to iwd that this interface is correct and it doesn't need to create new ones.
Im looking at the stack trace again and I realized I also had seg faults in libglib in nmcli earlier today. I'm wondering if it's just my system thats messed up? It is all up to date though.
/u/lpock
On my system there's I think technically only 1 esp partition, the one created by windows.
The motherboard does not seem to care about the esp flag though and let's me boot from any fat32 partition contating an efi executable.
If you want to use systemd-boot than it might need them to be combined?
I only use efistub or refind now
Isn't windows notorious for deleting other files in the efi partition though?
It's never happened to me so I'm not actully sure what it does.
Afaict having multiple esp partition is forbidden by the standard, but on 3 computers I've tried it on (asus laptop, hp laptop, msi motherboard desktop) it's never been a problem. I think dells might not like it though.
I'm writing this mostly from memory, so check with the appropriate articles on the wiki.
The most basic way would be to create 2 partitions on the second disk. One fat32 512M, the other ext4 the rest of the disk.
You might need to set the efi flag on the first one?
The ext4 one will be root. You pacstrap it and chroot into it. Mount the 1st partition, for example at /boot. Generate the fstab file, instal your programs with pacman and grub and efibootmgr. Run grub-install and generate the config. Assuming the config is correct you can boot into grub from bios and it will give you the option to boot into windows or linux.
If that still does not work, maybe share a list of commands you are using.
Looking at the wiki, if you have efibootmgr installed,
grub-installshould create the entry on its own. If it's not default you can also use it to make it default without going into bios. Make sure to add the partition to your fstab later so that you can update grub.Yes. It needs to be it's own partition, since UEFI can only read fat32 filesystems. Then grub will load the Linux kernel or boot Windows. I believe installing grub is mostly automatic, but I have not used it in years
You should be able to create a partition where you place the bootloader, like grub or refind, set it as the default boot option in UEFI and make it find other systems or inform it manually.
Don't touch the one created by windows, I think maybe that's why people later complain about windows update destroying their dual boots?
Whether that works might depend on your motherboard.
That's why if you update remotely (or do other stuff which may take time and you don't want to lose progress if you disconnect, like video encoding) you should probably use something like tmux.
Can't the attacker just reset CMOS in such a situation? IIRC, removing the battery was enough, when I wanted to access bios on my school's pc.
Edit: I guess if you set up a password to boot the pc, before the bootloader even loads, which I think is usually possible then resetting CMOS would reset that password and you would know, that the bios has been tampered with, although afaik most people just use disk encryption, so that they don't have to input 2 passwords?
I recommend https://ryanstutorials.net/
I made something similar in fish. It uses brightnessctl, I bound it to the keyboard shortcuts, it restores last brightness on boot via a systemd service, updates waybar with a percentage (steps from 0 to current / steps from 0 to max) on each brightness update. It's not the cleanest, it doesn't check if the argument is correct, it can't set a specific brightness, but for me that's good enough and I don't want to waste time writing more.
No problem. I didn't have any artifacts either, just freezes. I hoped you maybe would have the same problem, as the one in my link was recently patched. Good luck on finding the solution.
Is this it: https://gitlab.freedesktop.org/drm/intel/-/issues/2024 ?
Very interesting. I'd say in this case it was the easiest to use the live cd, since OP already had it lying around after the installation, but if it is not possible, for example if this was their only pc it is good to know this method.
It depends on the bootloader though. On machines, where I don't dual boot I use EFISTUB as my bootloader, so to edit the kernel command line I either have to use
efibootmgrfrom linux or use uefi shell directly. If I hadn't installed the shell on the particular computer then I don't think there is a way to do it without a second one (unless some bios systems have an option to edit files).Login using a usb key, mount the partitions, arch-chroot, use passwd to change the root password and your user password
Sed is probably easier if you just want to replace 1 or 2 lines. If you have any problems I'll be glad to help.
Can't tell you exactly how to, I don't use it often enough to remember, but look at diff or sed. They should be already installed.
I know there is a txt file included with the iso (I think in /root ?) which is just the wiki instalation article, but it doesn't tell you much about bootloaders for example, since online it is just a hyperlink. But if you know how to install everything and you just need a checklist it is good enough.
This will swap the keys for the duration when the program is running, right? Not ideal, but better that nothing, I guess, F3 and F4 are not that often used.
I use zstd -15 for initramfs.
I tried doing some benchmarks in user space (I did clean the caches each run), 20 runs per command, samsung 850 evo, intel i7 4700hq, images made with lz4c -12 and zstd -15, as those seemed to give the best read speeds:
cat initramfs-linux-zen.imglz4cat initramfs-linux-zen.img.lz4zstdcat initramfs-linux-zen.img.zstI'm not sure if those tests are representative, but I can't see why they wouldn't be.
Before I used compression because I thought my boot times were really reduced (just checking with systemd-analyze, but not in any rigorous way), but even with 4s boot times 25 ms is not noticable. The filesize being reduced from 37 MiB to 10 MiB is a big plus though, my /boot partition is 512 MiB big, initramfs is created on each kernel update twice, I'm guessing it should help with the life span of the nand cells.
They are on Arch, they can just read the docs. And fish 3.10 has some amazing docs. Scripts use the shebang anyway, so the only thing they need to know for now is how to set up environmental variables and that shell substitution in fish dosen't use a dollar sign in front of the first parenthesis.
I know he was talking about
aurto, notaurutils, but just a tip; you should be able to usepacman -Ql aurto | fgrep -i systemdto find the systemd timers. I don't know if there's an easier/better way.I doubt I'll be able to help, but post outputs of sudo blkid and df -T. Did you change your /etc/mkinitcpio.conf? I think you did not update /etc/fstab, after copying the files, the new /boot will have a new uuid now, that you made another partition, but the outputs of those commands should help investigate. I believe the fact, that your fstab matches the error doesn't matter, or even it couldn't be any other way, it says it can't find the disk you instructed it to.
Edit: After I tried breaking /boot uuid in fstab on my system, I get the same error, after like 90 s, during which the pc tries to mount this non-existant partition.
Seems to be fixed :) I'll have to test it a bit more, but usually I'd have already gotten a crash
Edit: The one from AUR crashes, while the manually built one is ok, so it's pretty much confirmed.
Turns out iwd deletes the interface when I close it's service via systemd. So before the segault and after it there where the same number of interfaces, unfortunately. This seems strange, because this interface is not created at first by iwd. Unless it kills an interface and instantly creates one with the same name? Oh, and iwd didn't crash.
Edit:
Yeah, iwd did kill those interfaces, I'm dumb. I noticed, that they are numbered and the numbers seem to be unique, not reused. Also it's not like a name is enough to signal to iwd that this interface is correct and it doesn't need to create new ones.
Im looking at the stack trace again and I realized I also had seg faults in libglib in nmcli earlier today. I'm wondering if it's just my system thats messed up? It is all up to date though.