Skip to content

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.

4 points14 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
4 · 69% up
Kind
Text
ID
lbeh2g

Author

9
posts
144
comments
1
media
View profile

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.

5 points

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

2 points

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.

3 points

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?

1 points

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

2 points

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?

2 points

Holy balls I fixed it.

Resolution:

cp - r /boot/efi/grub/grub.cfg /boot/grub/grub.cfg

After 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-info

Anyways, I appreciate all the help! Got me thinking in the right direction, couldn't have done it without you fellas.

2 points

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.

2 points

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.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.