Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unable to make config file for grub after compiling kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
picarica
Apprentice
Apprentice


Joined: 11 Aug 2018
Posts: 285

PostPosted: Mon Nov 26, 2018 5:43 pm    Post subject: unable to make config file for grub after compiling kernel Reply with quote

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
View user's profile Send private message
Muso
Veteran
Veteran


Joined: 22 Oct 2002
Posts: 1052
Location: The Holy city of Honolulu

PostPosted: Mon Nov 26, 2018 5:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
picarica
Apprentice
Apprentice


Joined: 11 Aug 2018
Posts: 285

PostPosted: Mon Nov 26, 2018 6:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Nov 26, 2018 6:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Muso
Veteran
Veteran


Joined: 22 Oct 2002
Posts: 1052
Location: The Holy city of Honolulu

PostPosted: Mon Nov 26, 2018 6:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Nov 26, 2018 6:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Muso
Veteran
Veteran


Joined: 22 Oct 2002
Posts: 1052
Location: The Holy city of Honolulu

PostPosted: Mon Nov 26, 2018 7:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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