LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-26-2021, 06:36 AM   #16
MUSTDOS
Member
 
Registered: Mar 2020
Distribution: antix
Posts: 100

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by colorpurple21859 View Post
do the same as in post 11, but change back to --target=x86_64-efi

from live installer
make sure your booted in uefi mode by checking the existence of /sys/firmware/efi
mount the root partition to /mnt
mount /dev/sda1 to /mnt/boot/efi

Code:
arch-chroot /mnt
grub-install --target=x86_64-efi
exit
reboot
[root@parabolaiso /]# ls /sys/firmware/efi
config_table fw_platform_size runtime systab
efivars fw_vendor runtime-map
[root@parabolaiso /]# ls /boot/efi/EFI/parabola/
grub.efi grubia32.efi
[root@parabolaiso /]# rm -r /boot/efi/EFI/parabola/*
[root@parabolaiso /]# grub-install --target=i386-efi
Installing for i386-efi platform.
grub-install: error: cannot find EFI directory.
[root@parabolaiso /]# grub-install --target=i386-efi --efi-direcotry=/boot/efi
grub-install: unrecognized option '--efi-direcotry=/boot/efi'
Try 'grub-install --help' or 'grub-install --usage' for more information.
[root@parabolaiso /]# grub-install --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
[root@parabolaiso /]# grub-install --target=x86_64-efi --efi-directory=/boot/efi
Installing for x86_64-efi platform.
Installation finished. No error reported.
[root@parabolaiso /]#



Still, grub won't boot.
 
Old 05-26-2021, 07:47 AM   #17
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,395

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
What is on /dev/sda4 and /dev/sda5? Post parabola /etc/fstab.
 
Old 05-26-2021, 07:50 AM   #18
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,572

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
When you boot your computer and access the BIOS firmware, are you able to boot either windows (Boot000B) or Parabola (Boot0010).

When you had the other Linux systems installed, were you able to boot each of them as well as windows from the Grub menu?

I noticed that in your efibootmgr output, all the Linux entries show the drive as GPT while windows shows MBR. Not sure what that means but it usually shows GPT for windows.

You indicate Grub won't boot either OS, so what exactly happens? Black screen, blinkng cursor, other??
 
Old 05-26-2021, 08:03 AM   #19
MUSTDOS
Member
 
Registered: Mar 2020
Distribution: antix
Posts: 100

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
What is on /dev/sda4 and /dev/sda5? Post parabola /etc/fstab.
sda4 is a primary partion for non-OS linux files: Source code Progs (not from package manager), vids, pics, etc.
sda5 is where I install linux distros

As root
root@parabolaiso ~ # cat /etc/fstab
root@parabolaiso ~ #

It's empty


As chroot in /mnt (sda5) while /mnt/boot is binded to sda1

[root@parabolaiso /]# cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# UUID=522c8b3d-2472-441b-8961-2809edab6ff1
/dev/sda5 / ext4 rw,relatime 0 1

# UUID=2cf43d12-e431-4695-acbe-84f5b4bf9909
/dev/sda6 none swap defaults 0 0
 
Old 05-26-2021, 08:05 AM   #20
MUSTDOS
Member
 
Registered: Mar 2020
Distribution: antix
Posts: 100

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
When you boot your computer and access the BIOS firmware, are you able to boot either windows (Boot000B) or Parabola (Boot0010).
Neither, only live USB

Quote:
When you had the other Linux systems installed, were you able to boot each of them as well as windows from the Grub menu?
[/QUOTE]

No, I switched between Linux and Windows from the BIOS/UEFI menu


Quote:
You indicate Grub won't boot either OS, so what exactly happens? Black screen, blinkng cursor, other??
Hard reboot and only, nothing else.

Last edited by MUSTDOS; 05-26-2021 at 08:06 AM.
 
Old 05-26-2021, 08:06 AM   #21
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,395

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Quote:
As chroot in /mnt (sda5) while /mnt/boot is binded to sda1
Without sda1 binded to /boot what is the contents of /boot as chroot?
 
Old 05-26-2021, 08:08 AM   #22
MUSTDOS
Member
 
Registered: Mar 2020
Distribution: antix
Posts: 100

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Without sda1 binded to /boot what is the contents of /boot as chroot?
root@parabolaiso ~ # arch-chroot /mnt
[root@parabolaiso /]# ls /boot
grub syslinux
initramfs-linux-libre-lts-fallback.img vmlinuz-linux-libre-lts
initramfs-linux-libre-lts.img
[root@parabolaiso /]#
 
Old 05-26-2021, 08:18 AM   #23
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,395

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Without sda1 binded to /boot and as chroot in /mnt (sda5)
Code:
mkdir /boot/efi
mount /dev/sda1 /boot/efi
grub-install --target=x86_64-efi
exit
reboot
 
Old 05-26-2021, 08:54 AM   #24
MUSTDOS
Member
 
Registered: Mar 2020
Distribution: antix
Posts: 100

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
do the same as in post 11, but change back to --target=x86_64-efi

from live installer
make sure your booted in uefi mode by checking the existence of /sys/firmware/efi
mount the root partition to /mnt
mount /dev/sda1 to /mnt/boot/efi

Code:
arch-chroot /mnt
grub-install --target=x86_64-efi
exit
reboot

Success!

I cleaned the /mnt folder before reinstalling just to be sure, now grub works but bare bones; No OSes detected.

My guess it is safe to run grub-mkconfig -o /boot/efi/grub/grub.cfg now, right?
 
Old 05-26-2021, 09:08 AM   #25
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,395

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Code:
grub-mkconfig -o /boot/grub/grub.cfg
Don’t mount bind the efi partition to /boot. The grub folder on the efi partition is from when you was binding the efi partition to /boot and can be deleted.

Last edited by colorpurple21859; 05-26-2021 at 09:13 AM.
 
Old 05-26-2021, 09:34 AM   #26
MUSTDOS
Member
 
Registered: Mar 2020
Distribution: antix
Posts: 100

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Code:
grub-mkconfig -o /boot/grub/grub.cfg
Don’t mount bind the efi partition to /boot. The grub folder on the efi partition is from when you was binding the efi partition to /boot and can be deleted.
GRUB is still not detecting OSes with this, or properly configuring GUI; Still bare bone


I tried this too
grub-mkconfig -o /boot/efi/grub/grub.cfg

Ended up breaking GRUB and reinstalled it again...

Last edited by MUSTDOS; 05-26-2021 at 09:41 AM.
 
Old 05-26-2021, 10:09 AM   #27
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,395

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Did you install os-prober?
 
Old 05-26-2021, 10:13 AM   #28
MUSTDOS
Member
 
Registered: Mar 2020
Distribution: antix
Posts: 100

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Did you install os-prober?
No; just followed the documentation.


How do I do that?

Note: I'm still new to pacman and only know how to use pacstrap for now; I already tried installing

Note: Nevermind, installed it as chroot. I can't use pacman in root in live media, only in chroot.

How do I work with os-prober?

Last edited by MUSTDOS; 05-26-2021 at 10:36 AM.
 
Old 05-26-2021, 10:38 AM   #29
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,395

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
grub-mkconfig will call up os-prober automatically

Last edited by colorpurple21859; 05-26-2021 at 10:41 AM.
 
Old 05-26-2021, 11:23 AM   #30
MUSTDOS
Member
 
Registered: Mar 2020
Distribution: antix
Posts: 100

Original Poster
Rep: Reputation: Disabled
Tried this again: grub-mkconfig -o /boot/grub/grub.cfg still, grub not configured

erased and reinstalled grub with efi, no config.
 
  


Reply

Tags
grub, instal, installation



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
Need Help Configuring Grub (Libreboot) to Load LUKS Encrypted Parabola Logical Volume Group nekrosynthesis Linux - Newbie 35 11-12-2019 01:04 AM
Parabola GNU / Linux - Problem with ATI driver (Radeon HD 4250) when starting x Roondmoond Linux - Newbie 12 10-08-2014 03:31 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Parabola GBU/Linux 2012 laptop dualboot ilovepenquins Linux - Laptop and Netbook 4 07-18-2013 06:31 AM
"isolinux.bin missing or corrupt" for Arch, Parabola and Fedora zwitterion-241920 Linux - General 5 12-30-2011 04:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:17 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