View previous topic :: View next topic |
Author |
Message |
JKosta n00b
Joined: 11 Nov 2013 Posts: 32
|
Posted: Mon Nov 25, 2013 12:43 am Post subject: GRUB does not install the configuration directories![SOLVED] |
|
|
I am trying to install and configuring grub but I have problems with it.
This package does not install the /etc/default/grub file nor /etc/grub/ directory.
What I run:
Code: | grub-mkconfig -o /boot/grub/grub.cfg |
What I get:
Code: | cat /boot/grub/grub.cfg#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
# |
I get an empty file...
Is it normal?
Last edited by JKosta on Mon Nov 25, 2013 8:25 pm; edited 1 time in total |
|
Back to top |
|
|
tryn Guru
Joined: 21 Dec 2002 Posts: 325 Location: 39.885° N. -88.913° W.
|
Posted: Mon Nov 25, 2013 3:02 am Post subject: |
|
|
JKosta
The command that you have posted is not correct if this is what you ran then try this one.
But first make sure that boot is mounted.
Code: | grub2-mkconfig -o /boot/grub/grub.cfg |
Are you using this link to help set grub2 ?
http://www.gentoo.org/doc/en/grub2-migration.xml |
|
Back to top |
|
|
Logicien Veteran
Joined: 16 Sep 2005 Posts: 1555 Location: Montréal
|
Posted: Mon Nov 25, 2013 8:22 am Post subject: |
|
|
Did you install grub-static? If yes, this is Grub 1 and there is no /etc/grub.d directory and no /etc/default/grub file. If you want Grub 2 you have to emerge the grub package according with the value you give to the GRUB_PLATFORMS variable in /etc/portage/make.conf. _________________ Paul |
|
Back to top |
|
|
JKosta n00b
Joined: 11 Nov 2013 Posts: 32
|
Posted: Mon Nov 25, 2013 5:38 pm Post subject: |
|
|
tryn,
Code: | grub2-mkconfig -o /boot/grub/grub.cfg
bash: grub2-mkconfig: command not found |
Logicien,
Code: | emerge -av grub
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] sys-boot/grub-2.00-r7 USE="binfont nls -custom-cflags -debug -device-mapper -doc -efiemu -libzfs -mkfont -mount -sdl -static" GRUB_PLATFORMS="pc -coreboot -efi-32 -efi-64 -emu -ieee1275 -multiboot -qemu -qemu-mips -yeeloong" 0 kB
|
|
|
Back to top |
|
|
fturco Veteran
Joined: 08 Dec 2010 Posts: 1181 Location: Italy
|
Posted: Mon Nov 25, 2013 7:26 pm Post subject: |
|
|
When did you last updated your system? As far as I know sys-boot/grub-2.00-r7 has never been released. It's strange. |
|
Back to top |
|
|
JKosta n00b
Joined: 11 Nov 2013 Posts: 32
|
Posted: Mon Nov 25, 2013 8:24 pm Post subject: |
|
|
I installed sys-boot/grub-2.00_p5107-r2 and solved the problem.
Thanks to tryn, Logicien and fturco! |
|
Back to top |
|
|
|