Skip to content

u/TheHardew

In this archive from Jul 2018 to Aug 2023

1
posts
41
comments
0
media
131
score

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.

1 points

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.

1 points

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.

1 points

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?

1 points

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)"
3 points

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.

2 points

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).

2 points

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.

1 points

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:

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.

2 points

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.

5 points

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.

2 points

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.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.