Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need help, UEFI, Gentoo (maybe dualboot)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Pluribootent
n00b
n00b


Joined: 20 Jul 2008
Posts: 52
Location: Graz, Austria

PostPosted: Wed Jan 13, 2016 2:42 pm    Post subject: Need help, UEFI, Gentoo (maybe dualboot) Reply with quote

Hello,
I have been using Gentoo since 2007 now, but I cannot get behind this new UEFI and installing Gentoo. I bought a new machine with UEFI and I want to use it with GPT.
My setup 2 SSDs with 250 GB. One contains Win10 in UEFI (no secure boot active), one should be fitted with Gentoo. I had several attempts to install Gentoo with UEFI and GPT with systemd and gnome, but I keep failing for 4 months now.

At the moment I detached the Win10 ssd to just simply manage a fresh Gentoo install with GPT and UEFI, but I cannot boot the installation disc in UEFI mode. So I managed to build a UEFI bootable USB stick with secure rescue live on it. But I get compile errors as soon as I want to install the kernel, so maybe installing gentoo from a system rescue live usb stick is not the way to go. I have been trying to install Gentoo now for 4 months. I am almost about to give up. I have read the Sakakis way. But it looks to me very complicated.

Is Gentoo simply not ready to be installed in UEFI mode GPT and so on?
If it is not, can I install Gentoo in MBR and BIOS mode along side with Win10 in UEFI? I do not think so.

Can anyone help me or tell me a way to go, or just tell me whether Gentoo in UEFI mode is simply not possible.

Thank you for your answers. :?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Wed Jan 13, 2016 3:12 pm    Post subject: Reply with quote

https://wiki.gentoo.org/wiki/UEFI_Dual_boot_with_Windows_7/8 also works with windows 10. I have several machines with a variety of UEFI motherboards dual booting assorted windows versions and gentoo.

First question: Are you booting the system rescue usb in uefi mode (opening menu screen is black and white) or legacy bios mode (opening menu screen is colorful)?
Second: What is the make and model of your computer? We "helpers" can access the appropriate User Manual for answers to uefi/bios questions.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Pluribootent
n00b
n00b


Joined: 20 Jul 2008
Posts: 52
Location: Graz, Austria

PostPosted: Wed Jan 13, 2016 4:22 pm    Post subject: Reply with quote

Answer 1: I booted the system rescue usb stick in UEFI mode (black/white)
Answer 2: My motherboard is a Gigabyte GA-H97-D3H.

So using rEFInd is a 'must'?

Thanks for your reply.
Back to top
View user's profile Send private message
Pluribootent
n00b
n00b


Joined: 20 Jul 2008
Posts: 52
Location: Graz, Austria

PostPosted: Wed Jan 13, 2016 4:24 pm    Post subject: Reply with quote

I am now downloading the gentoo live dvd in order to boot in UEFI mode.
Is there any way to UEFI boot te usual minimal gentoo install cd?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Wed Jan 13, 2016 4:37 pm    Post subject: Reply with quote

no, to, Is there any way to UEFI boot te usual minimal gentoo install cd?
suggest stick with sysrescuecd
rEFInd is not a must but is the best way to multiboot in uefi, IMHO, grub2 the worst
for best results have only one efi system partition, the one on the windows disk. more than one ef00 partition causes confusion.
best is to go along with windows, have the windows disk on the SATA 1 connection, gentoo disk some other higher numbered sata connection
Under BIOS Features, Windows 8 Features is set to Other OS, Boot Mode Selection is set to UEFI Only or UEFI and Legacy?
When using the sysresc usb, select 64 bit alternate kernel.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Pluribootent
n00b
n00b


Joined: 20 Jul 2008
Posts: 52
Location: Graz, Austria

PostPosted: Wed Jan 13, 2016 5:54 pm    Post subject: Reply with quote

(I am very thankful for your help.)
OK.

If I do not need Grub, do I need a boot partition?

The partitioning scheme:
/dev/sda1 EFI system partition
/dev/sda2 Microsoft reserved partition
/dev/sda3 Windows 10 (Basic data partition)
/dev/sda4 hidden,diag

/dev/sdb1 swap
/dev/sdb2 Gentoo

Is that correct?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Wed Jan 13, 2016 6:04 pm    Post subject: Reply with quote

that should work quite well
The separate boot partition is (as always) optional, a /boot directory in /root does nicely

I went win 8 to 8.1 to 10 on sda mresulting in :
parted -l
Model: ATA OCZ-VERTEX4 (scsi)
Disk /dev/sda: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 316MB 315MB ntfs msftdata
2 316MB 420MB 105MB fat32 boot, esp
3 555MB 255GB 255GB ntfs msftdata
4 255GB 256GB 472MB ntfs hidden, diag
5 256GB 256GB 472MB ntfs msftdata

Model: ATA OCZ-VERTEX4 (scsi)
Disk /dev/sdb: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 128GB 128GB reiserfs OCZ128

With swap on sdc, a spinning disk
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Wed Jan 13, 2016 6:46 pm    Post subject: Reply with quote

BTW, suggest leaving the profile at [1] default/linux/amd64/13.0* and USE="" in /etc/portage/make.conf until first boot; the systemd/gnome 3 updates can come easily with a subsequent profile update.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Pluribootent
n00b
n00b


Joined: 20 Jul 2008
Posts: 52
Location: Graz, Austria

PostPosted: Thu Jan 14, 2016 8:41 pm    Post subject: Reply with quote

Install worked, now I am trying to deal with the bootloader. Glad so far.
Do I need to copy my kernel (vmlinuz) to sda1, to get smth like: /EFI/Gentoo/Boot/bootx64.efi

I can use efibootmngr for that, as far as I read now. But the syntax is contradictory. Would this be correct to get what I want:
Code:
efibootmgr --create --disk /dev/sda --part 1 --label "Gentoo" --loader "\efi\boot\bootx64.efi"
Back to top
View user's profile Send private message
Pluribootent
n00b
n00b


Joined: 20 Jul 2008
Posts: 52
Location: Graz, Austria

PostPosted: Thu Jan 14, 2016 8:55 pm    Post subject: Reply with quote

Hm. This is not working. I was able to create the Gentoo entry in the UEFI but it jumps back to booting Windows instead.
Back to top
View user's profile Send private message
Pluribootent
n00b
n00b


Joined: 20 Jul 2008
Posts: 52
Location: Graz, Austria

PostPosted: Thu Jan 14, 2016 9:39 pm    Post subject: Reply with quote

I installed rEFInd now, and Gentoo boots fine. But I cannot boot Win10 now. It keeps crashing during boot. Any suggestions?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Jan 14, 2016 10:18 pm    Post subject: Reply with quote

does rEFInd show a windows icon?
No to
Quote:
Do I need to copy my kernel (vmlinuz) to sda1, to get smth like: /EFI/Gentoo/Boot/bootx64.efi

If using the suggested technique/guide efibootmgr is not used. The windows bootloader/manager ESP is manipulated from windows using bcdedit
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Pluribootent
n00b
n00b


Joined: 20 Jul 2008
Posts: 52
Location: Graz, Austria

PostPosted: Thu Jan 14, 2016 10:31 pm    Post subject: Reply with quote

yes, it shows a windows icon nd if I choose the win icon to boot win, the screen stays black and pc crashes. If I reboot, a windows message comes up asking whether I want to reapir something because win crashed earlier.

BTW thx for your patience. I am making progress here.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Jan 14, 2016 11:29 pm    Post subject: Reply with quote

when windows wants to try to repair try to select in sequence:
advanced options
startup settings
enable safe mode
boot in safe mode
restart see if normal boot occurs

if not the goal is to repair windows boot the hard way. http://blog.d0zingcat.xyz/2015/09/28/Windows/How%20to%20repair%20the%20EFI%20Bootloader%20in%20Windows%2010/

boot windows, repeat the refind install using http://www.rodsbooks.com/refind/installing.html#windows . My gigabyte motherboard has refind and windows bootloader entries in the uefi/bios Boot Menu.

do you have a windows 10 repair disk?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Pluribootent
n00b
n00b


Joined: 20 Jul 2008
Posts: 52
Location: Graz, Austria

PostPosted: Fri Jan 15, 2016 11:26 am    Post subject: Reply with quote

I managed to remove rEFInd (by deleting the refind folder from \EFI\) and then was able to boot windows again and it is running smooth. I reinstalled rEFInd through my Gentoo installation, making sure the ntfs drivers are installed. But same problem. As soon as I boot win10 from the rEFInd bootloader the windows circle comes up and then black screen and the monitor turns itself off. Gentoo boots fine.
I am running into too many pitfalls.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Fri Jan 15, 2016 1:48 pm    Post subject: Reply with quote

boot windows, repeat the refind install using http://www.rodsbooks.com/refind/installing.html#windows
do not install refind from gentoo using efibootmgr
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Pluribootent
n00b
n00b


Joined: 20 Jul 2008
Posts: 52
Location: Graz, Austria

PostPosted: Fri Jan 15, 2016 2:23 pm    Post subject: Reply with quote

Thanks, I will.

But a different question for now: I changed profile to gnome with systemd and followed the instructions from the wiki about systemd. Compiled the kernel and so on.
I get: Failed to create bus connection if I enter hostnamectl set-hostname ...
Back to top
View user's profile Send private message
Pluribootent
n00b
n00b


Joined: 20 Jul 2008
Posts: 52
Location: Graz, Austria

PostPosted: Fri Jan 15, 2016 2:38 pm    Post subject: Reply with quote

Do I need to pass on smth to the bootloader? Like for Grub2 it says to add:
Code:
GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd"
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Fri Jan 15, 2016 2:47 pm    Post subject: Reply with quote

usually means that init is using openrc instead of systemd
Code:
zcat /proc/config.gz | grep -i systemd
should produce something like
Quote:
CONFIG_GENTOO_LINUX_INIT_SYSTEMD=y
CONFIG_CMDLINE="root=PARTUUID=89bc9633-fbc9-4a90-8a67-e058cb6moose ro init=/usr/lib64/systemd/systemd loglevel=3"

In our case the bootloader should be the kernel itself using efi stub

In menuconfig terms:
Quote:
[*] Gentoo Linux support
[*] Linux dynamic and persistent device naming (userspace devfs) support
[*] Select options required by Portage features
Support for init systems, system and service managers --->
[*] OpenRC, runit and other script based systems and managers
[*] systemd

Processor type and features --->
[*] Built-in kernel command line
(root=PARTUUID=89bc9633-fbc9-4a90-8a67-e058cb6moose ro init=/usr/lib64/systemd/systemd loglevel=3) Built-in kernel command line
[*] Built-in command line overrides boot loader arguments

_________________
Defund the FCC.
Back to top
View user's profile Send private message
Pluribootent
n00b
n00b


Joined: 20 Jul 2008
Posts: 52
Location: Graz, Austria

PostPosted: Fri Jan 15, 2016 3:33 pm    Post subject: Reply with quote

That did it! Now Gentoo is on the way.
Only thing that needs fixing is booting win10 from refind bootloader. For the moment, I can boot Win10 through the UEFI directly when I hit F12 and choose.

Thank you so much so far for your help so far.
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
Page 1 of 1

 
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