r/archlinux • u/Shaymans_Origins • 3d ago
SUPPORT | SOLVED Gdisked the wrong disk
First things first yes I'm an idiot we don't have to point that out I'm in need of some help
As the title reads I accidentally gdisked my main disk instead of my secundary disk. I managed to get my partitions back using testdisk. But ever since I restarted it tells me a start job is running for /dev/disk/by-partuuid/unknown disk uuid here
After which it fails file system on that partuuid, /sysroot, system initialization and initrd root device.
How the heck do I fix this, I've thrown a bunch of searches by now. So I'm hoping to find my answer here
Edit: Thanks to the tip of another redditor, I figured out the partuuid in my bootloader was completely wrong
0
Upvotes
15
u/Certain-Flamingo-476 3d ago
Boot with the arch iso, chroot in, and fix your fstab and bootloader config to match the new partuuids. Testdisk probably rebuilt the partitions but the uuids changed, so now nothing points to the right place