View previous topic :: View next topic |
Author |
Message |
picarica Apprentice
Joined: 11 Aug 2018 Posts: 285
|
Posted: Mon Nov 26, 2018 5:43 pm Post subject: unable to make config file for grub after compiling kernel |
|
|
so i just updated my world and gentoo sources with it i made every steop to upgrade kernel in this order
Code: |
eselect kernel list
eselect kernel set x
cd /usr/src/linux
cp ../linux-(old kernel)/.config .
make oldconfig
make prepare
make -j9
make modules_install
make install
genkernel --install initramfs
emerge @module-rebuild
grub-mkconfig -o /boot/grub/grub.cfg
reboot
|
and after all that i get stuck after grub-mkconfig part
after writing it in terminel i get this output
Code: |
insmod: ERROR: could not load module part_msdos: no such file or directory |
i have no idea what to do i tried some googling but without help :/ |
|
Back to top |
|
|
Muso Veteran
Joined: 22 Oct 2002 Posts: 1052 Location: The Holy city of Honolulu
|
Posted: Mon Nov 26, 2018 5:56 pm Post subject: |
|
|
Did you mount /boot before make install?
Here's how I do it (nvidia and vmware modules also need to be built against each kernel)
Code: | su
eselect kernel list
eselect kernel set 2
mount /boot
cp /usr/src/linux/.config ~/kernel-config-`uname -r`
cd /usr/src/linux
zcat /proc/config.gz > /usr/src/linux/.config
make syncconfig
make && make modules_install
make install
grub-mkconfig -o /boot/grub/grub.cfg
emerge nvidia-drivers
emerge vmware-modules
umount /boot
reboot
|
_________________ "You can lead a horticulture but you can't make her think" ~ Dorothy Parker
2021 is the year of the Linux Desktop! |
|
Back to top |
|
|
picarica Apprentice
Joined: 11 Aug 2018 Posts: 285
|
Posted: Mon Nov 26, 2018 6:05 pm Post subject: |
|
|
Muso wrote: | Did you mount /boot before make install?
Here's how I do it (nvidia and vmware modules also need to be built against each kernel)
Code: | su
eselect kernel list
eselect kernel set 2
mount /boot
cp /usr/src/linux/.config ~/kernel-config-`uname -r`
cd /usr/src/linux
zcat /proc/config.gz > /usr/src/linux/.config
make syncconfig
make && make modules_install
make install
grub-mkconfig -o /boot/grub/grub.cfg
emerge nvidia-drivers
emerge vmware-modules
umount /boot
reboot
|
|
i dont have /boot on another partition so i didnt think it was needed |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Mon Nov 26, 2018 6:12 pm Post subject: |
|
|
I'd say your MBR support is not built into kernel and apparently not available in initramfs. Thus, your kernel cannot read the MBR hard drive.
@Muso, you should use emerge @module-rebuild instead, the way you do it you are polluting your world file. _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
Muso Veteran
Joined: 22 Oct 2002 Posts: 1052 Location: The Holy city of Honolulu
|
Posted: Mon Nov 26, 2018 6:17 pm Post subject: |
|
|
Jaglover wrote: | @Muso, you should use emerge @module-rebuild instead, the way you do it you are polluting your world file. |
Instead of emerge nvidia-drivers vmware-modules?
Nice to know, thank you. _________________ "You can lead a horticulture but you can't make her think" ~ Dorothy Parker
2021 is the year of the Linux Desktop! |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon Nov 26, 2018 6:34 pm Post subject: |
|
|
Jaglover wrote: | @Muso, you should use emerge @module-rebuild instead, the way you do it you are polluting your world file. | Better yet, or perhaps in addition to that, learn when to use --oneshot.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
Muso Veteran
Joined: 22 Oct 2002 Posts: 1052 Location: The Holy city of Honolulu
|
Posted: Mon Nov 26, 2018 7:05 pm Post subject: |
|
|
John R. Graham wrote: | Jaglover wrote: | @Muso, you should use emerge @module-rebuild instead, the way you do it you are polluting your world file. | Better yet, or perhaps in addition to that, learn when to use --oneshot.
- John |
Thank you for that. I haven't read the portage man page in years, --oneshot is a great solution. _________________ "You can lead a horticulture but you can't make her think" ~ Dorothy Parker
2021 is the year of the Linux Desktop! |
|
Back to top |
|
|
|