Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Search for Installation Guide
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
sumati
n00b
n00b


Joined: 10 Nov 2019
Posts: 46

PostPosted: Sun Nov 24, 2019 4:48 pm    Post subject: Search for Installation Guide Reply with quote

is there any new installation guide for using rEFInd, from the step of preparing partition up to the step of installing eEFInd?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10459
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Nov 24, 2019 5:23 pm    Post subject: Reply with quote

Have you seen the Wiki article?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
sumati
n00b
n00b


Joined: 10 Nov 2019
Posts: 46

PostPosted: Mon Nov 25, 2019 9:15 am    Post subject: Reply with quote

John R. Graham wrote:
Have you seen the Wiki article?

- John

Yes, of course I read the the article, but it describes only the last step. Since a successful installation of rEFInd is related also to the settings in the previous steps, a guide containing these steps would be more useful for the newcomer to Gentoo like me. Indeed I tried several times, when coming to refind-install, I received various error-reports. I have created a parition labeled as EFI (EF00), I am not sure if another BIOS boot partition is necessary. Probably I need some other special settings before I install refind.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3238

PostPosted: Mon Nov 25, 2019 9:36 am    Post subject: Reply with quote

sumati wrote:
... Since a successful installation of rEFInd is related also to the settings in the previous steps, a guide containing these steps would be more useful for the newcomer to Gentoo like me.
You might keep this in mind and start such guide under your user space and when it matures move it to the wiki.

sumati wrote:
Indeed I tried several times, when coming to refind-install, I received various error-reports.

You could get help if you posted those errors here in the forum. Maybe that wiki article still needs some adjustment.

sumati wrote:
I have created a parition labeled as EFI (EF00), I am not sure if another BIOS boot partition is necessary.

Why should it need another BIOS boot partition? If not mentioned as a precondition it should not be needed.
Back to top
View user's profile Send private message
Proinsias
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2014
Posts: 129
Location: Scotland

PostPosted: Mon Nov 25, 2019 9:48 am    Post subject: Reply with quote

charles17 wrote:
Why should it need another BIOS boot partition? If not mentioned as a precondition it should not be needed.

It is recommended in the handbook & the EFI partition section takes you through the creation of this.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3238

PostPosted: Mon Nov 25, 2019 10:15 am    Post subject: Reply with quote

Proinsias wrote:
It is recommended in the handbook & ...

It clearly states
https://wiki.gentoo.org/wiki/Handbook:AMD64/Blocks/Disks#What_is_the_BIOS_boot_partition.3F wrote:
For completeness, the BIOS boot partition [...] It is not required when booting in EFI/UEFI mode.
Back to top
View user's profile Send private message
sumati
n00b
n00b


Joined: 10 Nov 2019
Posts: 46

PostPosted: Mon Nov 25, 2019 10:38 am    Post subject: Reply with quote

charles17 wrote:
Proinsias wrote:
It is recommended in the handbook & ...

It clearly states
https://wiki.gentoo.org/wiki/Handbook:AMD64/Blocks/Disks#What_is_the_BIOS_boot_partition.3F wrote:
For completeness, the BIOS boot partition [...] It is not required when booting in EFI/UEFI mode.

OK, this point becomes now clear. Thanks!
Back to top
View user's profile Send private message
Goverp
l33t
l33t


Joined: 07 Mar 2007
Posts: 835

PostPosted: Mon Nov 25, 2019 11:03 am    Post subject: Reply with quote

sumati wrote:
...
when coming to refind-install, I received various error-reports. I have created a parition labeled as EFI (EF00), I am not sure if another BIOS boot partition is necessary. Probably I need some other special settings before I install refind.

When I installed refind on my laptop a couple of years ago, I decided to do it manually and avoid the refind-install script. IMHO that's one of those scripts that aims to simplify something that wasn't too difficult in the first place, and by trying to handle all possible configurstions ends up a mighty complex piece of code. The most complete documentation is the refind web site, but I found it heavy going.
_________________
Greybeard
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 45383
Location: 56N 3W

PostPosted: Mon Nov 25, 2019 11:19 am    Post subject: Reply with quote

sumati,

The BIOS boot partition is required by grub2 for part of itself when you boot in BIOS mode by use a GPT partition table where grub is installed.

In BIOS mode with an MSDOS partition table, the first partition traditionally starts at LBA 63.
Grub uses some of this wasted space.

In BIOS mode with a GPT partition table, the partition table starts at LBA 1, so this area cannot be used.
Instead, the BIOS boot partition is used by grub.

For completeness, UEFI firmware reads the VFAT partition directly to load any EFI compliant program.
That includes Grub2. Thus no BIOS boot partition is required.

Using BIOS booting with a GPT partition table is getting harder or impossible on some systems, so its best avoided if you can.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
sumati
n00b
n00b


Joined: 10 Nov 2019
Posts: 46

PostPosted: Mon Nov 25, 2019 11:27 am    Post subject: Reply with quote

NeddySeagoon wrote:
sumati,

The BIOS boot partition is required by grub2 for part of itself when you boot in BIOS mode by use a GPT partition table where grub is installed.

In BIOS mode with an MSDOS partition table, the first partition traditionally starts at LBA 63.
Grub uses some of this wasted space.

In BIOS mode with a GPT partition table, the partition table starts at LBA 1, so this area cannot be used.
Instead, the BIOS boot partition is used by grub.

For completeness, UEFI firmware reads the VFAT partition directly to load any EFI compliant program.
That includes Grub2. Thus no BIOS boot partition is required.

Using BIOS booting with a GPT partition table is getting harder or impossible on some systems, so its best avoided if you can.

I see. Thanks for the clear explanation!
Back to top
View user's profile Send private message
sumati
n00b
n00b


Joined: 10 Nov 2019
Posts: 46

PostPosted: Mon Nov 25, 2019 12:06 pm    Post subject: Reply with quote

thanks to all who replied. I found Sakaki's guide which is the most complete and detailed guide for using EFI boot: https://wiki.gentoo.org/wiki/Sakaki%27s_EFI_Install_Guide
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3238

PostPosted: Mon Nov 25, 2019 1:12 pm    Post subject: Reply with quote

sumati wrote:
thanks to all who replied. I found Sakaki's guide which is the most complete and detailed guide for using EFI boot: https://wiki.gentoo.org/wiki/Sakaki%27s_EFI_Install_Guide

I wasn't aware she mentions rEFInd there
Back to top
View user's profile Send private message
Proinsias
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2014
Posts: 129
Location: Scotland

PostPosted: Mon Nov 25, 2019 1:28 pm    Post subject: Reply with quote

charles17 wrote:
Proinsias wrote:
It is recommended in the handbook & ...

It clearly states
https://wiki.gentoo.org/wiki/Handbook:AMD64/Blocks/Disks#What_is_the_BIOS_boot_partition.3F wrote:
For completeness, the BIOS boot partition [...] It is not required when booting in EFI/UEFI mode.

I know, but I think the point still stands.
Quote:
it is recommended to create it in either case
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 45383
Location: 56N 3W

PostPosted: Mon Nov 25, 2019 8:07 pm    Post subject: Reply with quote

Proinsias,

The BIOS boot partition is 2MB and if you want to revert to BIOS booting it becomes essential.
Not having it means repartitioning. That's a PITA.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3653
Location: Illinois, USA

PostPosted: Mon Nov 25, 2019 10:33 pm    Post subject: Reply with quote

I hope I'm not stating the obvious, but when you run refind-install, you must be in an environment that boot via EFI, not BIOS.
What install media did you use and what mode was it in?
I've done two installations and made a lot of mistakes on the first.
On the second install I had to go into the BIOS and select refind from the list of boot targets. MSI B350 Tomahawk Arctic. I did not have to do that with my Gigabyte install.

So:
1. What media/mode did you install with?
2. Does efibootmanager see refind?
3. What mobo model?
4. What kind of errors are you getting? Can you post them?
5. can you pastebin /boot/efi/EFI/refind/refind.conf and /boot/refind_linux.conf ?
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3653
Location: Illinois, USA

PostPosted: Tue Nov 26, 2019 3:40 am    Post subject: Reply with quote

From the wiki:
Quote:
See EFI System Partition. It is advisable to set its mountpoint to /boot.

No. it can be done that way, but I wouldn't say it was advisable. To me, it'is advisibale to have as little as possible on the FAT system.

So I would say:

"See EFI System Partition. It is advisable to set its mountpoint to /boot/efi." Keep as little as possible there. I prefer to keep my kernels on ext4, either a separate /boot partition (not needed on modern motherboards), or with /boot a true directory of / with only /boot/efi a mount point.

EDIT:
On a UEFI-based PC, you'll normally install rEFInd to the ESP, which is usually mounted at /boot/efi.
Steps 1 thru 4 are done for you on gentoo with the refind-install script.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3238

PostPosted: Tue Nov 26, 2019 7:03 am    Post subject: Reply with quote

Tony0945 wrote:
From the wiki:
Quote:
See EFI System Partition. It is advisable to set its mountpoint to /boot.

No. it can be done that way, but I wouldn't say it was advisable. To me, it'is advisibale to have as little as possible on the FAT system.

So I would say:

"See EFI System Partition. It is advisable to set its mountpoint to /boot/efi." Keep as little as possible there. I prefer to keep my kernels on ext4, either a separate /boot partition (not needed on modern motherboards), or with /boot a true directory of / with only /boot/efi a mount point.

This commit by Arxel does it with mountpoint /boot but u(n)mounted.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3653
Location: Illinois, USA

PostPosted: Tue Nov 26, 2019 10:37 am    Post subject: Reply with quote

charles17 wrote:
This commit by Arxel does it with mountpoint /boot but u(n)mounted.

So you fool around mounting and unmounting? That way lies danger of forgetting whether it's mounted or not.
Just so that you can store kernels on FAT32 instead of ext4 or btrfs? WHY?
I prefer to follow upstream's advice.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3238

PostPosted: Tue Nov 26, 2019 10:44 am    Post subject: Reply with quote

Tony0945 wrote:
charles17 wrote:
This commit by Arxel does it with mountpoint /boot but u(n)mounted.

So you fool around ...

It wasn't me adding that section to the wiki
Back to top
View user's profile Send private message
sumati
n00b
n00b


Joined: 10 Nov 2019
Posts: 46

PostPosted: Tue Nov 26, 2019 11:28 am    Post subject: Reply with quote

Tony0945 wrote:
I hope I'm not stating the obvious, but when you run refind-install, you must be in an environment that boot via EFI, not BIOS.
What install media did you use and what mode was it in?
I've done two installations and made a lot of mistakes on the first.
On the second install I had to go into the BIOS and select refind from the list of boot targets. MSI B350 Tomahawk Arctic. I did not have to do that with my Gigabyte install.

So:
1. What media/mode did you install with?
2. Does efibootmanager see refind?
3. What mobo model?
4. What kind of errors are you getting? Can you post them?
5. can you pastebin /boot/efi/EFI/refind/refind.conf and /boot/refind_linux.conf ?

Thanks for the response. I used the bootable USB with install-amd64-minimal...iso, and install Gentoo on Virtualbox of host-machine running Archlinux. The errors I got already happened in the step of install kernel. I tried both manuel and automatic (genkernel). Using the manual method, when I cd to /usr/scr/linux and emerge pciutilis, it said "failed to emerge sys-apps/pciutlis-3.4.6-r1", and when I run make -j2, I got: "make: *** [Makefile:1115: prepare-objtool] Error 1" (also the bzImage cannot be found in the sub-directory). And when I tried "genkernel all" I got "Failed to compile the "prepare" target..."
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3653
Location: Illinois, USA

PostPosted: Tue Nov 26, 2019 2:51 pm    Post subject: Reply with quote

charles17 wrote:
It wasn't me adding that section to the wiki

Noted!
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3653
Location: Illinois, USA

PostPosted: Tue Nov 26, 2019 3:04 pm    Post subject: Reply with quote

sumati,
Now I'm confused. Is your problem with reFind or building the kernel?

Note that you can copy the kernel and initramfs from that minimal iso to your new install and build a custom kernel after you have booted into your new install, eliminating one variable.

The minimal.iso used to be non-UEFI. I think that may have changed.
My recommendation for boot media (there are lot's of choices) are the last Gentoo based sysrescuecd or the excellent up to date (but unofficial) Live Recovery System which requires a DVD, won't fit on a CD.
Back to top
View user's profile Send private message
sumati
n00b
n00b


Joined: 10 Nov 2019
Posts: 46

PostPosted: Wed Nov 27, 2019 9:26 am    Post subject: Reply with quote

Tony0945 wrote:
sumati,
Now I'm confused. Is your problem with reFind or building the kernel?

Note that you can copy the kernel and initramfs from that minimal iso to your new install and build a custom kernel after you have booted into your new install, eliminating one variable.

The minimal.iso used to be non-UEFI. I think that may have changed.
My recommendation for boot media (there are lot's of choices) are the last Gentoo based sysrescuecd or the excellent up to date (but unofficial) Live Recovery System which requires a DVD, won't fit on a CD.

I installed Gentoo several times. I was success once up to building the kernel, but failed in installing Grub. Then, I turned to reFInd, this time the problem occur with the kernel. Thanks for your suggestion, I will try it again over weekend. Another stupid question: How can copy the kernel and initramfs from that minimal iso to my new installed system, since I cannot open the iso with a filemanager?
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3238

PostPosted: Wed Nov 27, 2019 10:03 am    Post subject: Reply with quote

sumati wrote:
Thanks for the response. I used the bootable USB with install-amd64-minimal...iso, and install Gentoo on Virtualbox of host-machine running Archlinux.

So you want rEFInd for Gentoo as a guest on Virtualbox running on Archlinux??
Back to top
View user's profile Send private message
sumati
n00b
n00b


Joined: 10 Nov 2019
Posts: 46

PostPosted: Wed Nov 27, 2019 8:26 pm    Post subject: Reply with quote

charles17 wrote:
sumati wrote:
Thanks for the response. I used the bootable USB with install-amd64-minimal...iso, and install Gentoo on Virtualbox of host-machine running Archlinux.

So you want rEFInd for Gentoo as a guest on [url=https://wiki.archlinux.org/, index.php/VirtualBox#Installation_steps_for_Arch_Linux_guests]Virtualbox running on Archlinux[/url]??

Yes. I want first try gentoo on dropbox, when I am familiar with the system I will install it on my main computer.


Last edited by sumati on Thu Nov 28, 2019 9:50 am; edited 2 times in total
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum