View previous topic :: View next topic |
Author |
Message |
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Sat Oct 28, 2017 4:44 pm Post subject: Grub problems |
|
|
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 |
|
|
apiaio Guru
Joined: 04 Dec 2008 Posts: 417
|
Posted: Sat Oct 28, 2017 5:26 pm Post subject: |
|
|
If you want install grub2, you should run Code: | grub2-install /dev/sda | command |
|
Back to top |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Sat Oct 28, 2017 6:15 pm Post subject: |
|
|
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 |
|
|
guitou Guru
Joined: 02 Oct 2003 Posts: 534 Location: France
|
Posted: Sun Oct 29, 2017 5:55 pm Post subject: |
|
|
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 |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Sun Oct 29, 2017 6:48 pm Post subject: |
|
|
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 |
|
|
guitou Guru
Joined: 02 Oct 2003 Posts: 534 Location: France
|
Posted: Mon Oct 30, 2017 2:27 pm Post subject: |
|
|
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 |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Mon Oct 30, 2017 2:35 pm Post subject: |
|
|
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 |
|
|
Lysio n00b
Joined: 20 Jun 2017 Posts: 9
|
Posted: Mon Oct 30, 2017 5:53 pm Post subject: |
|
|
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 |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Mon Oct 30, 2017 9:25 pm Post subject: |
|
|
I'm using the livedvd, not the system Rescue CD. |
|
Back to top |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Mon Oct 30, 2017 10:05 pm Post subject: |
|
|
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 |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Oct 31, 2017 4:45 am Post subject: |
|
|
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 |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Tue Oct 31, 2017 10:01 am Post subject: |
|
|
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 |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Oct 31, 2017 11:31 am Post subject: |
|
|
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 |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Wed Nov 01, 2017 10:49 pm Post subject: |
|
|
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 |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Fri Nov 03, 2017 4:29 pm Post subject: |
|
|
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 |
|
|
|