Skip to content

ssd just lost its partition table

So, I've just done a regular arch linux system update. Of course without kernel updates because of issues/14622.

After rebooting, there was nothing left. I still got an ZFSBootMenu entry somewhere in the efibootmgr but that's it. After using my archzfs usb iso, I went to software/arch-linux-configuration/scripts/zfs/recover and started What I got in return was a no pool available.

I've used them all, parted, gdisk, testdisk and fdisk but they all have told me the same "shiny new ssd you got there". By the way, the ssd is a nvme-one from Samsung. I've fired up the lenovo internal system check tools but all they say is "super fine disk you got there, almost totally new".

What I did at the end was rebuilding my partition table using sgdisk. After that, I've also mkfs.vfat the efi boot partition and recreated the zfsbootmenu as well as the efibootmg entries. Important not, you have to update your /etc/fstab for the boot efi partition after doing that. Nice to know, after creating the zfs partition via sgdisk, I was able to fully import my encrypted zfs pool.

This is a pretty strange error and I hope I don't have to fix this again in the near future. It leaves a strange feeling in your stomach

Lessons learned? sgdisk -b=sgdisk-sda.bin /dev/sda ref

Arch Linux on Lenovo Thinkpad E14 Gen 3 - fix not working 3d and missing wifi

After almost ten years of great living with it, I went from a x250 to an e14.

I've manage to switch from luks zfs encryption to native encryption and from grub to zfsbootmenu. Of course I've used my archiso with build in zfs support.

Next and most important part, I had serious trouble get 3D and wifi working with my default installation. I could not find anything but I made it. And the reason why all is now working fine is simple "switch from linux-lts to linux".

So if you want to have a smooth 3D party and a working wifi, switch to latest arch linux kernel "5.19.1".

Best regards, artodeto

How to connect to eduroam with nmtui

I am using NetworkManager to work with any kind of network connection.

I found my freedom with the nmtui and it was working fine until today. Today, I needed to connect to an eduroam WiFi. Long story short this is currently not possible that easy with nmtui or nmcli.

Since I try to keep the system footprint small, I have not installed any gui for the NetworkManager.

Thanks to GallaFrancesco, I found a way to connect to my eduroam realm.

Execute the following command in your shell.

nmcli connection add \
    type wifi con-name "eduroam" ifname $(ifconfig | grep -i w | cut -d":" -f 1) ssid "eduroam" -- \
    wifi-sec.key-mgmt wpa-eap 802-1x.eap peap \ 
    802-1x.phase2-auth mschapv2 802-1x.identity "<username>@<realm>"

After that, restart your networkmanager service with systemctl restart NetworkManager.service to ensure the eduroam connection was found.

Finally, open nmtui and activate the eduroam connection. Now, you have to provide your password.

I've created a small howto here.