Help, I broke my install!
I Bought a new case for my pc since it's pretty significantly aged at this point so I ended up rearranging the drives when I was hooking everything up.
I think I know what needs to be done but It hasn't worked. I work nights and am a zombie and can't quite figure it out.
The situation:
I dual boot with windows and after putting pc into a new case grub doesn't work.
So far I've loaded up an arch live cd to try and rescue, I chrooted and then reinstalled grub, and ran an update-grub and it only pulled two entries for the same windows partition.
Separate drives for both my arch install and windows install.
I'm not sure what to do at this point any tips would be helpful.
Edit: I copied over my /boot/efi/grub/grub.cfg to /boot/grub/grub.cfg and that got me into my arch install but I've got no display.
Got into tty2 and sddm is running. Stuck once again.
Edited 3 Feb 2021. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 4 · 69% up
- Kind
- Text
- ID
- lbeh2g
14 comments
If you didn't set your drive by UUID, you're gonna have to update fstab to map to the correct drives, which means for example only, /dev/sda is now /dev/sdb and vice versa.
So update your fstab by booting into an arch iso and chrooting into your system.
Oh, I'm an idiot, I work at a large company and frequently run into a similar issue with VMs. That makes total sense. I think I'm just not thinking straight lol. I have been awake for about 18 hours and have another 7 to go.. Really appreciate the response, I'll let you know if that works
Do yourself a favor and take the opportunity to switch over to using UUID in your fstab. It'll save you from this ever happening again. Well, barring the absurdly unlikely case of a namespace collison.
My fstab
I think I must have corrected this some time ago I guess. So I wonder why grub wouldn't pick this up then?
You're not using a btrfs file system, I'd switch to system-boot personally. Grub is finicky.
But you're gonna have to run a grub make config while you're in chroot
That's odd. Could you perhaps be attempting to boot from the wrong drive? Like maybe grub got installed on the other one by mistake and didn't get updated? For that matter have you tried swapping the drive cable order?
Holy balls I fixed it.
Resolution:
cp - r /boot/efi/grub/grub.cfg /boot/grub/grub.cfgAfter that I was having display issues because I have a second monitor that's plugged into another pc (monitor not in use but plugged into my main rig) that is set to disabled and somehow got set to primary, probably because I plugged it into the wrong port on my gpu..
Fixed it by unplugging the monitor and rebooting. Crazy how that could have cased the secondary issues. Figured this out with the following;
nvidia-xconfig - - query-gpu-infoAnyways, I appreciate all the help! Got me thinking in the right direction, couldn't have done it without you fellas.
Glad to hear it. The fact the grub files were in both places makes me think you might've mounted your efi partition on the wrong spot when you were trying to reinstall grub from the chroot.
Yeah, that very well could be. This is the first time I've chrooted to fix a bootloader issue so it wouldn't surprise me. I'm still having issues where it won't display with a second monitor but w/e I guess.