LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-28-2022, 02:02 PM   #1
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Rep: Reputation: Disabled
GRUB installation problems


I am attempting to install Slackware-15.0 in a VirtualBox partition on my Slackware-current machine. I recently switched from elilo to GRUB on my -current installation & that went so easily that I really don't remember what I did. I did some searching & found a video by OldTechBloke on how to use set up GRUB after installation on 14.2. I did not think that the difference between 14.2 & 15.0 would make any difference (was I wrong?). These are the steps I took:
1) Made these partitions: 500M, efi; 4G, swap; ~50G, /.
2) Performed a new installation of 15.0 in VirtualBox, skipping both lilo & elilo installation.
3) At the end of the installation, dropped into a shell instead of rebooting.
4) Did a chroot into the new installation, using:
Code:
# chroot /mnt /bin/bash
# source /etc/profile
5) Issued this command to install GRUB:
Code:
# grub-install --target=x86_64.efi --efi-directory=/boot/efi  --bootloader-id=grub
This gave me the following:
Code:
grub-install: error: /usr/lib64/grub/x86_64.efi/modinfo.sh doesn't exist. Please specify --target or --directory.
Now I'm lost. I am under the impression that my installation command specified both --target & --directory. I could not come up with the proper search criteria to get any info on the above error. Where do I go from here?
 
Old 07-28-2022, 02:22 PM   #2
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,691

Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
Did you check the box in the VM options that says "Enable EFI (Special OSes only)"? You have to enable this for the VM to emulate a UEFI bios.
 
Old 07-28-2022, 02:58 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Quote:
3) At the end of the installation, dropped into a shell instead of rebooting.
I've encountered problems with grub-install when dropping to a shell at the end of installation. What I do now is at the "install elilo prompt", I switch to another console chroot into /mnt and run grub-install grub-mkconfig, exit out of chroot switch back to other console and continue with setup configuration.

Last edited by colorpurple21859; 07-28-2022 at 03:04 PM.
 
1 members found this post helpful.
Old 07-28-2022, 05:58 PM   #4
slac
Member
 
Registered: May 2019
Posts: 265

Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by TSquaredF View Post
Code:
# grub-install --target=x86_64.efi --efi-directory=/boot/efi  --bootloader-id=grub
This gave me the following:
Code:
grub-install: error: /usr/lib64/grub/x86_64.efi/modinfo.sh doesn't exist. Please specify --target or --directory.
Now I'm lost. I am under the impression that my installation command specified both --target & --directory. I could not come up with the proper search criteria to get any info on the above error. Where do I go from here?
You are getting an error simply because you are typing the wrong command. Look at your command right here:

Code:
grub-install --target=x86_64.efi
Such target does not exist. It should be:

Code:
grub-install --target=x86_64-efi # ... Other stuff
It is not a '.', it should be a '-'. That is the reason why you are getting the error:

Code:
grub-install: error: /usr/lib64/grub/x86_64.efi/modinfo.sh doesn't exist.

Last edited by slac; 07-28-2022 at 05:59 PM. Reason: spell-checking
 
3 members found this post helpful.
Old 07-28-2022, 08:24 PM   #5
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Original Poster
Rep: Reputation: Disabled
I thank all three of you for the responses. slac, you hit the nail on the head. My old eyes & brain looked at "-" & saw ".". Changing that one character caused all to work properly. Thanks again.
Bill
 
1 members found this post helpful.
Old 03-31-2024, 09:45 AM   #6
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,026

Rep: Reputation: 618Reputation: 618Reputation: 618Reputation: 618Reputation: 618Reputation: 618
[QUOTE=TSquaredF;6370502]I am attempting to install Slackware-15.0 in a VirtualBox partition on my Slackware-current machine. I recently switched from elilo to GRUB on my -current installation & that went so easily that I really don't remember what I did. I did some searching & found a video by OldTechBloke on how to use set up GRUB after installation on 14.2. I did not think that the difference between 14.2 & 15.0 would make any difference (was I wrong?). These are the steps I took:
1) Made these partitions: 500M, efi; 4G, swap; ~50G, /.
2) Performed a new installation of 15.0 in VirtualBox, skipping both lilo & elilo installation.
3) At the end of the installation, dropped into a shell instead of rebooting.
4) Did a chroot into the new installation, using:
Code:
# chroot /mnt /bin/bash
# source /etc/profile
I've been beating my head against the wall for several hours trying to get grub to install on a new current64 install and had been getting that error about the missing .sh file. I finally found this post and installed grub and it went fine. Thank you VERY much for your solution.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
Grub errors...grub errors...grub errors smattmac Linux - Newbie 1 06-13-2005 02:07 PM
Grub, Grub and Grub ZeroEffect Linux - Newbie 11 10-07-2004 01:33 PM
GRUB GRUB GRUB GRUB "Whats Going on?" Gaweph Linux - Newbie 6 03-26-2004 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration