Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems booting after installing new hardware
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1689

PostPosted: Sat Aug 13, 2016 1:27 am    Post subject: Problems booting after installing new hardware Reply with quote

Basically I upgraded my motherboard, CPU, and RAM and am now having difficulty booting into Grub. My setup is as follows

Sda1 = can't actually remember why the handbook wanted this small bit, but I can't mount it to check - I get a file system unknown error
Sda2 = boot partition
Sda3 = swap
Sda4 = root
Sdb* = Windows 10

If I tell my bios to load Windows 10 or a rescue CD then everything loads fine, however I can't load grub from sda*. I've loaded the rescue cd (which is loaded as UEFI) and gone through the steps in the handbook to setup grub (remounting root, boot, sys, dev; chrooting; etc...) and grub2-mkconfig sees the kernel, but I keep getting an error when I try to load grub at boot:

Code:
error: no such device: {device ID}


Tricky thing is that the device ID doesn't match anything in my grub.cfg, so I'm not sure what it's trying to load. ALSO interesting is that before I mount boot into /mnt/Gentoo/boot that this folder is already populated with all the kernels, confs, and other files that I thought was in the boot partition. In other words, my old 'boot partition' was actually just another directory in my root partition (though it seems to have booted just fine). I can't install grub to the root partition (which wouldn't make sense anyway) and keeping it installed at sda2 doesn't load at boot time.

I'm tempted to do a full reinstall so that I'm starting form a clean slate, but I'm worried I'll hit the same problem later (and I can at least boot into Windows now - I'm also concerned that doing this may mess up the windows booting, which happened the last time I installed Gentoo).

Any thoughts about this? Suggestions or info I can provide that'd help?
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1689

PostPosted: Sun Aug 14, 2016 1:34 pm    Post subject: Reply with quote

Ok, figured the problem out. I was misreading the BIOS. There was one selection for UEFI hard disk booting, which loaded Windows, and another that was listed as non-UEFI, which tried to load grub. I thought that each option was for each of my different hard drives (linux on one, Windows on the other) as it listed the drive ID correctly for each option. Buried underneath a scrollbar, however, showed that the UEFI hard drive allowed me to select boot priority (which makes sense, as I know I was booting linux under UEFI previously - though I was wondering if I somehow had installed things on the Windows drive for some reason).

In any event, changing the boot priority mostly fixed the problem. However, now when I try to load windows I get a strange error about loading a particular file. It says to press 'enter' to continue, which leads to Windows (appearing, at least) to load correctly. I will try to take a screenshot of it and load the error a little later today, but wanted to update on the situation at least.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum