Something happened to my wifi after a hard reset & FSCK
Hey everyone, so, I'm having wifi issues again. My previous thread with wifi dongle issues was this thread: https://www.linuxquestions.org/quest...nt-4175672155/
Anyways, in trying to do some heavy Qemu-using, it turns out, you cannot dedicate 3/4ths of your RAM to a virtual machine and just casually browse the internet on your host at the same time. web & browser standards these days, I tell you what... So my Slackware-based host froze, and I hard-reset it which resulted in FSCK running it's shenanigans on sda3 (my /home partition) at startup. Well, turns out, something is wrong with either the dongle driver I had installed a month earlier, or something else in the system that is causing me to not be able to connect to my wifi router. I am back onto tethering again for the time being. I can connect via wifi on other devices and systems, just not my Slackware machine. iwconfig doesn't do anything but show my dongle exists, when I try to connect, nothing changes. At this point, I don't know what to do. How can I diagnose and fix this problem? |
Can you provide the output of iwconfig and method you use to connect to the internet (rc.inet1.conf, networkmanager, wicd, etc)? And then can you provide any relevant output or error messages from trying to connect?
|
Basically, for your connection you need a driver (that you already got compiled & installed in the thread you mentioned) that iwconfig is reporting as working - wireless interface is up (that's according to your last lines). Note that iwconfig is just a configuration utility that won't do the actual connection.
Then you need a utility to make the connection, standard is wpa_supplicant, that uses /etc/wpa_supplicant.conf for configuration. If this standard method is used, check if /etc/wpa_supplicant.conf is OK. Here (end of the post) you have some manual instructions for bringing up the connection: https://www.linuxquestions.org/quest...4/#post6061801 If you used some other connection managers, like wicd/NetworkManager, then check their configuration files. AFAIK NM stores its own stuff and doesn't make use of /etc/wpa_supplicant.conf I'm not familiar with these graphic connection managers, but since you mentioned a potential filesystem corruption, I'd just wipe them out (uninstall), clean all their configuration crap and reinstall them again. P.S. bassmadrigal was faster :) |
Quote:
I select my router in the NM dropdown, it hangs for about seventy seconds, then goes back to a disconnected state, no error message, no further responses. Code:
# iwconfig Quote:
|
Quote:
After the crash you had, maybe it is worth inspecting Code:
/etc/udev/rules.d/ |
networkmanager logs to /var/log/messages
|
Quote:
https://www.linuxquestions.org/quest...4/#post6061801 again: end of the post It just needs a properly populated /etc/wpa_supplicant.conf and to not have any wpa_supplicant session running (NetworkManager (which uses by itself wpa_supplicant) / wicd). A successful manual test will exclude any networking issues and you can then focus on NetworkManager. You could even use two consoles and disable the "move to background" -B switch from wpa_supplicant and look after errors: Code:
/usr/sbin/wpa_supplicant -D nl80211 -i wlan0 -c /etc/wpa_supplicant.conf Code:
/sbin/dhclient wlan0 Code:
/usr/sbin/wpa_supplicant -D nl80211 -i wlan0 -dd -c /etc/wpa_supplicant.conf https://www.linuxquestions.org/quest...4/#post6061656 |
@lawnm0wer
Before going for the manual test! Some of the causes for the WiFi connection problems reported in this recent thread might be also relevant for your actual situation, in which you had to hard reset you Slackware. wpa_supplicant & dhcpcd have not exited clean and you might have some pid/lock files leftovers that you'll need to manually clean/delete. These are both executed (used) by NetworkManager. - /var/run/wpa_supplicant/wlan0 https://www.linuxquestions.org/quest...ml#post6080130 - /run/dhcpcd/dhcpcd-wlan0.pid https://www.linuxquestions.org/quest...ml#post6109167 |
@abga I just realized, I've been getting mad at people for not looking at my posts when I did the exact same thing to you... :foot:
Sorry about that, I will be looking at posts closer from here-on-out. Quote:
Code:
bash-5.0# ls /var/run/wpa_supplicant/ Code:
## Exact manual command @_peter It wasn't even multiple qemu machines, just one. I've dialed that back to 50% ram instead of 75% Anyways I checked that folder, all I see is 70-persistent-net.rules, the flash.rules I set up for qemu and I don't see anything out of the ordinary there. |
Quote:
- more info on wext and why it is "old" https://wireless.wiki.kernel.org/en/...ess-extensions Code:
/usr/sbin/wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant.conf Quote:
- for some clarification, read the first answer from this post: https://unix.stackexchange.com/quest...wpa-supplicant Quote:
- the correct ones should be: Code:
/usr/sbin/wpa_supplicant -D nl80211 -i wlan0 -dd -c /etc/wpa_supplicant.conf OK, so no pids/locks related to WiFi appear to be available and nl80211 is not supported by the WiFi driver. Please correct and retry the test(s). If the manual test(s) gets you connected, then focus on NetworkManager. Again, I'd just uninstall it together with its conf files and reinstall & reconfigure it back clean. |
few times on nasty hard reset, the file you identified 70-persistent-net.rules has been corrupted for me, hdds were most likely faulty, but i never understood the root cause.
no network connection while driver and interface looked ok, it puzzled me for days. agree, it doesn't appear to be the scenario you are facing. as others said, eventually you will make it work by focusing on network-manager once the manual tests passes, good luck. another case of "it was working fine until it doesn't" guessing, you have zero issue connecting to your router with the ethernet interface on that particular computer? usb tethering works fine you said. |
Quote:
Quote:
Well, back on topic, wext seems to initialize, but nothing further came of anything other than what seemed to be an idle process. Output: Code:
bash-5.0# /usr/sbin/wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant.conf Code:
bash-5.0# /usr/sbin/wpa_supplicant -D nl80211 -i wlan0 -dd -c /etc/wpa_supplicant.conf Quote:
|
Quote:
EDIT: ________________________________ Looking after an explanation about this error I learned that it could be caused by an already running wpa_supplicant instance. Which in turn could have been launched by you, in your attempts, or by NetworkManager if it's still running. First, check if NetworkManager is running and kill it: Code:
# check status Code:
#repeat: Next step you should have tried: Code:
#obtain IP configuration from your AP Code:
/usr/sbin/wpa_supplicant -D wext -i wlan0 -dd -c /etc/wpa_supplicant.conf NetworkManager is just a package that you can uninstall with: Code:
/sbin/removepkg /var/log/packages/NetworkManager* Code:
/usr/sbin/slackpkg install NetworkManager |
Quote:
Code:
dhcpcd wlan0 Code:
WLAN_WPADRIVER[4]="wext" Code:
/etc/rc.d/rc.inet1 restart_wlan0 |
Did you redo the steps in post 4 of the other thread? Whenever you have a kernel update you will have to rerun the commands in post 4 of your other thread.
|
All times are GMT -5. The time now is 04:09 AM. |