Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

[Solved] Grub-install error (please, specify --target...

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
enrico68
Apprentice
Apprentice
Posts: 268
Joined: Fri Oct 21, 2016 8:18 am

[Solved] Grub-install error (please, specify --target...

  • Quote

Post by enrico68 » Fri Feb 03, 2017 3:51 pm

Hello,

My present sdd is partitioned like so:

sdd1 fat32 /boot
ssd2 ext4 /

but when I run the command

Code: Select all

grub-install --target=X86 64-efi --efi-directory=boot
it gives me an error (modinfo.sh does not exist; please specify --target or --directory).

I have run before:

Code: Select all

echo 'GRUB_PLATFORMS="Efi-64"' >> /etc/portage/make.conf
I did the same procedure on another PC a few days ago, and it worked...where is the error?? The only difference between this setup and the one before is that this time I did not create a BIOS boot partition. Could it be the culprit? Is the BIOS boot partition always necessary?
Last edited by enrico68 on Sat Feb 04, 2017 7:03 pm, edited 1 time in total.
Top
Jaglover
Watchman
Watchman
User avatar
Posts: 8291
Joined: Sun May 29, 2005 1:57 am
Location: Saint Amant, Acadiana

  • Quote

Post by Jaglover » Fri Feb 03, 2017 4:32 pm

I do not use Grub2, but to my knowledge the so called BIOS partition is required for Grub2.
My Gentoo installation notes.
Please learn how to denote units correctly!
Top
enrico68
Apprentice
Apprentice
Posts: 268
Joined: Fri Oct 21, 2016 8:18 am

  • Quote

Post by enrico68 » Fri Feb 03, 2017 5:19 pm

I thought so, thanks!
Top
Jaglover
Watchman
Watchman
User avatar
Posts: 8291
Joined: Sun May 29, 2005 1:57 am
Location: Saint Amant, Acadiana

  • Quote

Post by Jaglover » Fri Feb 03, 2017 5:52 pm

There are other bootloaders you could use that do not require this partition.
My Gentoo installation notes.
Please learn how to denote units correctly!
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Sat Feb 04, 2017 10:06 am

It looks like you're trying to install on an EFI machine.

EFI machines will require an EFI System Partition (ESP) which needs to be FAT16 or FAT32, and is not a grub2 requirement (I've installed grub2 directly to an ext3 root partition - but this machine is a legacy MBR boot machine.)

Though I've not actually yet "officially" installed grub2 to an EFI machine, I've gotten an EFI machine to boot grub2 - and it only had two partitions, the ESP and Linux/Gentoo root partition. The basics is to get Portage to build grub2 as an EFI binary (grub.efi) and install it on your FAT16/FAT32 ESP. Then it will use the efibootmgr tool to ensure that grub2 is loaded as your boot EFI application. The only EFI machine that I've used I cheated and swiped the grub2.efi binary and moved it to the ESP default boot path, which for my x86 efi machine, \EFI\BOOT\BOOTIA32.efi .
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
fcl
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 77
Joined: Sat Dec 31, 2016 5:14 pm

  • Quote

Post by fcl » Sat Feb 04, 2017 11:24 am

OP, fyi I think you're missing a slash there in the grub-install command

grub-install --target=X86 64-efi --efi-directory=/boot
Top
enrico68
Apprentice
Apprentice
Posts: 268
Joined: Fri Oct 21, 2016 8:18 am

  • Quote

Post by enrico68 » Sat Feb 04, 2017 1:12 pm

This time I created a BIOS boot partition, but the error remains. here is my partition, using parted:

sdd1 2MB fat32 grub
sdd2 134MB fat32 boot
ssd3 1000MB swap none
sdd4 50GB ext4 rootfs
sdd5 185GB ext4 home

To partition the ssd, I followed the official Gentoo Handbook.

I never had this problem before, and now it is the second time in a row...just in case, I checked ssd2, and it is mounted on /mnt/gentoo/boot.

What is wrong with my setup?

EDIT: as it is shown above, the BIOS boot partition has a fat32 fs. What happens is I do "mkfs.fat -F 32 /dev/sdd2" (the boot partition) but, somehow, after I hit enter, also the ssd1 partition shows up as formatted in fat32. I tried that twice, but fat32 shows up on ssd1, no matter what. Maybe that is why I get my error message...

EDIT2: I believe the error lies with the boot partition not being ESP, the Handbook says: "On an UEFI installation, the boot and esp flags will show up on the boot partition". I do not see ESP, only boot, and I have to investigate why my system won't run in EFI mode..that is where the issues is...
Top
enrico68
Apprentice
Apprentice
Posts: 268
Joined: Fri Oct 21, 2016 8:18 am

  • Quote

Post by enrico68 » Sat Feb 04, 2017 4:02 pm

not a chance...the boot partition has a "boot,esp" flag this time, but I keep getting the same error message...I don't know what else to do....
Top
enrico68
Apprentice
Apprentice
Posts: 268
Joined: Fri Oct 21, 2016 8:18 am

  • Quote

Post by enrico68 » Sat Feb 04, 2017 7:06 pm

The above issue has been solved, it took me a while, but I was able to solve it! :D
Top
Post Reply

9 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic