Article 55CTH LFS Version 9.1, 8.4.3. Setting Up the GRUB Configuration

LFS Version 9.1, 8.4.3. Setting Up the GRUB Configuration

by
Shah404
from LinuxQuestions.org on (#55CTH)
Hello Users,
I can't install grub on my LFS. I did everything according to the book.
The command
Code:grub-install /dev/sdareturns
Code:(lfs chroot) root:/boot/grub# grub-install /dev/sda
grub-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.As decribed in the book, that this problem can occur, as some files arent yet installed
Quote:
If the system has been booted using UEFI, grub-install will try to install files for the x86_64-efi target, but those files have not been installed in chapter 6. If this is the case, add --target i386-pc to the command above.
So the command
Code:grub-install /dev/sda --target i386-pcreturns
Code:Installing for i386-pc platform.
grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
grub-install: error: embedding is not possible, but this is required for cross-disk installMy lfs is on my pendrive.
These are my partitions
after running lsblk
Code:sdc 8:32 1 28.7G 0 disk
|-sdc1 8:33 1 100M 0 part
|-sdc2 8:34 1 12G 0 part /
`-sdc3 8:35 1 4G 0 part [SWAP]sdc1 is for boot

This is my /etc/fstab
Code:# Begin /etc/fstab

# file system mount-point type options dump fsck
# order

/dev/sdc2 / ext4 defaults 1 1
/dev/sdc3 swap swap pri=1 0 0
proc /proc proc nosuid,noexec,nodev 0 0
sysfs /sys sysfs nosuid,noexec,nodev 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /run tmpfs defaults 0 0
devtmpfs /dev devtmpfs mode=0755,nosuid 0 0

# End /etc/fstabDo i need to mention boot there?
its type is ext2, and what aboutoptions, dump and fsck order, i am a beginner, i dont know much about that.

My GRUB directory has:
Code:(lfs chroot) root:/boot/grub# ls
fonts grubenv i386-pcThank Youlatest?d=yIl2AUoC8zA latest?i=pVOU_Hfpmg0:traJHtFRC2U:F7zBnMy latest?i=pVOU_Hfpmg0:traJHtFRC2U:V_sGLiP latest?d=qj6IDK7rITs latest?i=pVOU_Hfpmg0:traJHtFRC2U:gIN9vFwpVOU_Hfpmg0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments