24
submitted 3 months ago by 257m@sh.itjust.works to c/linux@lemmy.ml

So basically I stupidly tried to update while my thinkpad had low battery and it powered off halfway through the update. The system wouldn’t boot because it was complaining that vm-linuz/linux was not found so I performed a chroot-rescue and got it to boot again. I must have messed something up during the process because now the device wlan0 is not showing up in iwctl device list. How can I fix or diagnose this issue? (I am using btrfs if that helps). Has anyone had a similar situation and can lend a hand?

top 10 comments
sorted by: hot top controversial new old
[-] krolden@lemmy.ml 8 points 3 months ago

$lspci -nnv

Then find your WiFi card and.make sure the module and driver are loaded.

[-] catloaf@lemm.ee 7 points 3 months ago

Did you finish the update?

[-] BestBouclettes@jlai.lu 4 points 3 months ago

You probably messed up your firmware. Do you see any driver related to WiFi with modprobe?

[-] 257m@sh.itjust.works 2 points 3 months ago

I see iwlwifi.

[-] mvirts@lemmy.world 2 points 3 months ago

no need to reinstall, a running system is always fixable, if you need networking try wired ethernet with a usb dongle or a usb wifi adapter or bluetooth/usb tethering to a phone

maybe start by running pacman -Syu again, in case it magically fixes itself.

Check dmesg for wifi related errors

figure out what wifi device you have and what kernel drivers support it

check that the driver module is available, try loading it manually with modprobe

reinstall relevant kernel modules. Hopefully this will fix whatever is wrong.

[-] ScottE@lemm.ee 2 points 3 months ago

Reboot to the snapshot you took of the root fs before starting the update, then just rerun the upgrade. If you are using btrfs (or ZFS) make use of its features so you never have this sort of problem.

[-] 257m@sh.itjust.works 1 points 3 months ago

Alright I solved it by just chrooting in again and deleted and reinstalled linux-firmware.

[-] Petter1@lemm.ee 1 points 3 months ago

I’d get my data I still need on a external disk and start new 😂 no time to save linux, just start again

[-] db2@lemmy.world 0 points 3 months ago

I'd reinstall the kernel via Ethernet. 🤷

[-] squid_slime@lemmy.world 3 points 3 months ago

If not Ethernet then could use live arch and pacstrap

this post was submitted on 20 Mar 2024
24 points (90.0% liked)

Linux

45393 readers
1365 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS