WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: About grub2 installation  (Read 1068 times)

Offline destroyedlolo

  • Jr. Member
  • **
  • Posts: 50
    • destroyedlolo's website
About grub2 installation
« on: December 26, 2022, 10:09:21 AM »
Hello,

I'm trying to install Grub2 on a fresh new install, but it's turning to be a nightmare.

  • First of all, the dependency with liblvm2 is missing but it's old well known issue
  • after correcting, grub-install is complaining because it can't find /mnt/sda2/boot/grub/i386-pc
... because it doesn't exists  :-[
[/list]

I did the same installation some months back, with a package named "grub2" and not grub2-multi and, as soon as I installed liblvm2, it worked perfectly and
Code: [Select]
/mnt/sda2/boot/grub$ ls
fonts/    grub.cfg  grubenv   i386-pc/  locale/   themes/

where as on the new system there is nothing.

So ... what is the correct way to install grub2 ?

Thanks

Laurent

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14543
Re: About grub2 installation
« Reply #1 on: December 26, 2022, 12:23:54 PM »
Did you use “—target=i386-pc”?

Offline destroyedlolo

  • Jr. Member
  • **
  • Posts: 50
    • destroyedlolo's website
Re: About grub2 installation
« Reply #2 on: December 26, 2022, 12:44:53 PM »
No, only --root-directory and my disk device.

[edit]after rethinking of it, I did the install of the other system from another Linux machine as I did already faced this issue with TCL one [/edit]

Offline destroyedlolo

  • Jr. Member
  • **
  • Posts: 50
    • destroyedlolo's website
Re: About grub2 installation
« Reply #3 on: December 28, 2022, 04:23:57 AM »
I had a look on several tutorials and did the same on one of my Gentoo box ... and grub-install is working out of the box.
So, I'm wondering if the problem is not with this x86 TCL package ??

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11220
Re: About grub2 installation
« Reply #4 on: December 28, 2022, 05:56:01 AM »
Hi destroyedlolo
Try using  “—target=i386-pc”  like juanito did here:
https://forum.tinycorelinux.net/index.php/topic,19364.0.html