익명 20:31

Ubuntu 24.04 forgets wifi credentials after plugging in second SSD

Ubuntu 24.04 forgets wifi credentials after plugging in second SSD

I have been running Ubuntu 24.04 for about a year on my laptop and connections to several wifi hotspots are saved under the network settings applet. I just tried installing an additional SSD and now the system prompts me for passwords when I try to connect to any of my wifi hotspots which were already save earlier.

Possibly relevant...

  1. I have not yet tried to mount or formatted the new SSD.

  2. I noticed that after just plugging in the new SSD and booting up / is now pointing to the new SSD.

  3. When I unplug the new drive and bootup, the wifi works fine without prompting for the credentials and I can find the credentials under /etc/netplan

Now it is possible that /etc/netplan gets mapped elsewere when adding the new SSD though I think it is unlikely. (Not able to verify it now to avoid wear and tear from opening the laptop... opened thrice already). The YAML files under /etc/netplan are named with GUID/UUIDs is it possible the file name is computed by the system at retrieval time and adding the new SSD changes the computed GUID/UUID?



Top Answer/Comment:

Solved via Gemini.

The wifi credentials are saved under /etc/netplan as YAML files. Each file includes the PCI address of the wifi device. Adding the new SSD caused the PCI devices to be renumbered so the older wifi device PCI address (wlp2s0) in the YAML no longer matches the newer PCI address (wlp3s0).

This is fixed by running nm-connection-editor and selecting the new PCI address. (Gemini suggested clearing the device field altogether.)

nm-connection-editor:

nm-connection-editor

상단 광고의 [X] 버튼을 누르면 내용이 보입니다