Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub problems
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
todd93
Guru
Guru


Joined: 30 Oct 2006
Posts: 486
Location: Missouri

PostPosted: Sat Oct 28, 2017 4:44 pm    Post subject: Grub problems Reply with quote

Hi, I'm attempting to install Grub2 again. I went through the full Grub2 install successfully the first time, but for some reason I was having trouble getting my Windows OS in the Grub2 menu. So I decided to start over with it, even restoring the MBR on my Windows drive. Now in an attempt to reinstall Grub, I get the following error:

Code:

# grub-install /dev/sda
Installing for i386-pc platform.
grub-install: error: cannot open `/boot/grub/themes/starfield/dejavu_16.pf2': No such file or directory.


Not sure what this means, or what it's trying to do.

Thanks

Todd
Back to top
View user's profile Send private message
apiaio
Apprentice
Apprentice


Joined: 04 Dec 2008
Posts: 180

PostPosted: Sat Oct 28, 2017 5:26 pm    Post subject: Reply with quote

If you want install grub2, you should run
Code:
grub2-install /dev/sda
command
Back to top
View user's profile Send private message
todd93
Guru
Guru


Joined: 30 Oct 2006
Posts: 486
Location: Missouri

PostPosted: Sat Oct 28, 2017 6:15 pm    Post subject: Reply with quote

apiaio wrote:
If you want install grub2, you should run
Code:
grub2-install /dev/sda
command


I thought so too, but when I run that I get the following:
Code:

grub2-install /dev/sda
bash: grub2-install: command not found
Back to top
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 314
Location: France

PostPosted: Sun Oct 29, 2017 5:55 pm    Post subject: Reply with quote

Hello.

Quote:
grub-install: error: cannot open `/boot/grub/themes/starfield/dejavu_16.pf2': No such file or directory.


Just a guess: grub themes files installed in /boot dir while separate /boot part not mounted?..

++
Gi)
Back to top
View user's profile Send private message
todd93
Guru
Guru


Joined: 30 Oct 2006
Posts: 486
Location: Missouri

PostPosted: Sun Oct 29, 2017 6:48 pm    Post subject: Reply with quote

guitou wrote:
Hello.

Quote:
grub-install: error: cannot open `/boot/grub/themes/starfield/dejavu_16.pf2': No such file or directory.


Just a guess: grub themes files installed in /boot dir while separate /boot part not mounted?..

++
Gi)


Okay, I think you were on to something, I mounted everything, and got the grub-install command to work (not grub2 install) Now I'm running into another issue when I enter the command
Code:
grub-mkconfig -o /boot/grub/grub.cfg
:

Code:

# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
Found linux image: /boot/vmlinuz-4.12.12-gentoo
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
Cannot find list of partitions!  (Try mounting /sys.)
done

Also I'm not sure what the menu entry in grub.cfg should be to boot my Windows drive. Here is my /boot/grub/grub.cfg file.

Thanks

Todd
Back to top
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 314
Location: France

PostPosted: Mon Oct 30, 2017 2:27 pm    Post subject: Reply with quote

Well, another guess then...

Quote:
Cannot find list of partitions! (Try mounting /sys.)


You ran grub-install in chrooted env, as for an installation of gentoo, but went a little too fast in the process and forgot some mount commands before entering chroot ;)

++
Gi)
Back to top
View user's profile Send private message
todd93
Guru
Guru


Joined: 30 Oct 2006
Posts: 486
Location: Missouri

PostPosted: Mon Oct 30, 2017 2:35 pm    Post subject: Reply with quote

guitou wrote:
Well, another guess then...

Quote:
Cannot find list of partitions! (Try mounting /sys.)


You ran grub-install in chrooted env, as for an installation of gentoo, but went a little too fast in the process and forgot some mount commands before entering chroot ;)

++
Gi)


That's possible, but I followed the guide to the letter, I think. I did find the guide in the forums here on how to chroot into the existing install. Of course, I'm not so far along that I can't start over, and will if I have to...
Back to top
View user's profile Send private message
Lysio
n00b
n00b


Joined: 20 Jun 2017
Posts: 7

PostPosted: Mon Oct 30, 2017 5:53 pm    Post subject: Reply with quote

Which live CD did you choose to install Gentoo ? If it was System Rescue CD, did you follow the installation alternative guide ?
Back to top
View user's profile Send private message
todd93
Guru
Guru


Joined: 30 Oct 2006
Posts: 486
Location: Missouri

PostPosted: Mon Oct 30, 2017 9:25 pm    Post subject: Reply with quote

Lysio wrote:
Which live CD did you choose to install Gentoo ? If it was System Rescue CD, did you follow the installation alternative guide ?


I'm using the livedvd, not the system Rescue CD.
Back to top
View user's profile Send private message
todd93
Guru
Guru


Joined: 30 Oct 2006
Posts: 486
Location: Missouri

PostPosted: Mon Oct 30, 2017 10:05 pm    Post subject: Reply with quote

guitou wrote:
Well, another guess then...

Quote:
Cannot find list of partitions! (Try mounting /sys.)


You ran grub-install in chrooted env, as for an installation of gentoo, but went a little too fast in the process and forgot some mount commands before entering chroot ;)

++
Gi)


OK, you are correct, /sys wasn't mounted, that solves that problem! I am having trouble getting grub to allow me to boot my Windows installation, though. Is there an entry I need to make in the grub.cfg to make this possible?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7390
Location: Goose Creek SC

PostPosted: Tue Oct 31, 2017 4:45 am    Post subject: Reply with quote

Is the windows install UEFI or is it legacy (protective MBR)?
Many UEFI implementations can be enabled to boot only UEFI mode, only legacy BIOS mode, or UEFI mode and legacy mode.
If legacy and the UEFI/BIOS is capable of and enabled to boot legacy and UEFI, can you select windows or windows boot manager as first to boot in the UEFI/BIOS and then boot windows?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
todd93
Guru
Guru


Joined: 30 Oct 2006
Posts: 486
Location: Missouri

PostPosted: Tue Oct 31, 2017 10:01 am    Post subject: Reply with quote

DONAHUE wrote:
Is the windows install UEFI or is it legacy (protective MBR)?
Many UEFI implementations can be enabled to boot only UEFI mode, only legacy BIOS mode, or UEFI mode and legacy mode.
If legacy and the UEFI/BIOS is capable of and enabled to boot legacy and UEFI, can you select windows or windows boot manager as first to boot in the UEFI/BIOS and then boot windows?


Windows is legacy on my machine, as is Gentoo.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7390
Location: Goose Creek SC

PostPosted: Tue Oct 31, 2017 11:31 am    Post subject: Reply with quote

have you emerged os-prober and ntfs3g and run os-prober with the boot partition and the windows partition mounted followed by grub-mkconfig -o /boot/grub/grub.cfg?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
todd93
Guru
Guru


Joined: 30 Oct 2006
Posts: 486
Location: Missouri

PostPosted: Wed Nov 01, 2017 10:49 pm    Post subject: Reply with quote

DONAHUE wrote:
have you emerged os-prober and ntfs3g and run os-prober with the boot partition and the windows partition mounted followed by grub-mkconfig -o /boot/grub/grub.cfg?


Yes, I have, and this is what I'm getting:

Code:

# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.12.12-gentoo
done


I may have an issue with my fstab, but it doesn't complain when I mount
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7390
Location: Goose Creek SC

PostPosted: Thu Nov 02, 2017 3:05 am    Post subject: Reply with quote

I'm guessing that os-prober made no mention of windows... https://wiki.gentoo.org/wiki/GRUB2/Chainloading has alternates to probing
_________________
Defund the FCC.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1955

PostPosted: Fri Nov 03, 2017 4:29 pm    Post subject: Reply with quote

You might find it worth checking out EasyBCD (the free version). It boots through Windows
to Grub, which adds five seconds to the boot time but means that your Windows stuff is
untouched. (I use it to avoid touching a pretty neurotic MBR on my laptop.)

Will
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