juniper wrote:you experience political reality dilation when travelling at american political speeds. it's in einstein's formulas. it's not their fault.
I dont know what windows uses.efibootmgr -c -l \\EFI\\Gentoo\\grubx64.efi -L "Gentoo" -p <number> -d /dev/sdx ###The device and partition where your ESP resides
Code: Select all
efibootmgr -n xxxx ####to choose your next boot..
Or you can have EFi on /bootalamahant wrote:Have you read all this literature about windows 10,secure boot,dual booting with Linux?
Maybe you need to disable secure boot from your efi menus--if it is indeed enabled...
Or even better just ditch the windows....
![]()
No one is going to mourn its loss unless maybe you need to play games.
Now your EFI partition should be vfat(mkfs.vfat) maybe 200M.A Boot partition of around 1 Gig would also be nice.
If you like the flexibility of lvm maybe you could consider this also in advance.
I dont know what kind of ESP windows uses but if I were you--as they already advised you I would create a new ESP on disk2.
And when you later install grub it will take over also your win10 installation.
If you need to manually create efi entries use something likeI dont know what windows uses.efibootmgr -c -l \\EFI\\Gentoo\\grubx64.efi -L "Gentoo" -p <number> -d /dev/sdx ###The device and partition where your ESP resides
Then you can use something likeCode: Select all
efibootmgr -n xxxx ####to choose your next boot..
OlisOlis wrote:I'm setting up a new system. It uses an X470 chipset. Windows 10 is installed on the 1st disk (SATA SSD), I want to install Gentoo on the 2nd disk (NVMe SSD).
All dualboot installation instructions I found describe how to install everything on one disk. Can I use the same instructions to install Gentoo on the 2nd disk? What partitions do I need for UEFI?
Its not to difficult to do at all. I have been dual booting windows and linux for several years now on UEFI systems. I have always kept them on separate drives. I do NOT use GRUB for booting. I build a linux stub-kernel (self booting) and let the built in UEFI boot manager handle the boot process. I always install my Gentoo OS first than install windows. Than I fix the (boot time out) that windows always screws with. Windows will usually set the boot time out to "0" making it impossible to bring up the UEFI boot manager before windows starts to boot. Efibootmanger can be used to set (fix) the boot time out.Olis wrote:Hello,
I'm setting up a new system. It uses an X470 chipset. Windows 10 is installed on the 1st disk (SATA SSD), I want to install Gentoo on the 2nd disk (NVMe SSD).
All dualboot installation instructions I found describe how to install everything on one disk. Can I use the same instructions to install Gentoo on the 2nd disk? What partitions do I need for UEFI?
Regards,
Oliver
I believe reFind will dual boot both Windows and Linux. There are ebuilds in the tree. I use it but only to select between Linux kernels, usb, and DVD. Grub is yesterday.OldTango wrote:This system does not control DNS for the “tonysegredo.com” domain. Contact the person responsible for the “ns2.webhostinghub.com” and “ns1.webhostinghub.com” nameservers and request that they update the “SPF” record with the following:
WOW! Where did you find that Quote...........LOLTony0945 wrote:I believe reFind will dual boot both Windows and Linux. There are ebuilds in the tree. I use it but only to select between Linux kernels, usb, and DVD. Grub is yesterday.OldTango wrote:This system does not control DNS for the “tonysegredo.com” domain. Contact the person responsible for the “ns2.webhostinghub.com” and “ns1.webhostinghub.com” nameservers and request that they update the “SPF” record with the following:
For Windows I now use Virtualbox as there ate only a few programs that I use that require Windows (TurboTax, MsMoney, APC Powerchute)
If you use software for work, Windows development, or gaming, that may be different, but I point out that you can have an awfully large virtual drive for Windows.
Thanks for all the answers. Well, I guess I didn't read everything about UEFI. I tried to learn about it as my current system is 7 years old and doesn't know anything about UEFI, but I wouldn't call myself an UEFI expert nowalamahant wrote:Have you read all this literature about windows 10,secure boot,dual booting with Linux?
Maybe you need to disable secure boot from your efi menus--if it is indeed enabled...
Or even better just ditch the windows....
![]()
No one is going to mourn its loss unless maybe you need to play games.
Now your EFI partition should be vfat(mkfs.vfat) maybe 200M.A Boot partition of around 1 Gig would also be nice.
If you like the flexibility of lvm maybe you could consider this also in advance.
I dont know what kind of ESP windows uses but if I were you--as they already advised you I would create a new ESP on disk2.
And when you later install grub it will take over also your win10 installation.
If you need to manually create efi entries use something likeI dont know what windows uses.efibootmgr -c -l \\EFI\\Gentoo\\grubx64.efi -L "Gentoo" -p <number> -d /dev/sdx ###The device and partition where your ESP resides
Then you can use something likeCode: Select all
efibootmgr -n xxxx ####to choose your next boot..
Naah, on EFI/GPT you can skip the "bios" partition and just go for a /boot or where ever you like to place EFIOlis wrote:Thanks for all the answers. Well, I guess I didn't read everything about UEFI. I tried to learn about it as my current system is 7 years old and doesn't know anything about UEFI, but I wouldn't call myself an UEFI expert nowalamahant wrote:Have you read all this literature about windows 10,secure boot,dual booting with Linux?
Maybe you need to disable secure boot from your efi menus--if it is indeed enabled...
Or even better just ditch the windows....
![]()
No one is going to mourn its loss unless maybe you need to play games.
Now your EFI partition should be vfat(mkfs.vfat) maybe 200M.A Boot partition of around 1 Gig would also be nice.
If you like the flexibility of lvm maybe you could consider this also in advance.
I dont know what kind of ESP windows uses but if I were you--as they already advised you I would create a new ESP on disk2.
And when you later install grub it will take over also your win10 installation.
If you need to manually create efi entries use something likeI dont know what windows uses.efibootmgr -c -l \\EFI\\Gentoo\\grubx64.efi -L "Gentoo" -p <number> -d /dev/sdx ###The device and partition where your ESP resides
Then you can use something likeCode: Select all
efibootmgr -n xxxx ####to choose your next boot...
I'm still confused what I really need and on which disk it should be. When I look at the Gentoo Installation Handbook it says to createIn addition I want to use a fixed size root fs (~50G) on 2nd disk (/dev/nvme0n1) and everything else will be set up with LVM (/var, /opt and /home).
- * a 2 MB "BIOS boot partition"
* a 128 MB "Boot partition"
When I installed Win10 on the first disk it created a 580 MB boot partition and a 2nd partition for Windows itself (both NTFS). I can remove these partitions and install Win10 later again.
As I understand it this 2 MB "BIOS boot partition" is required for grub(2) (although I haven't decided yet if I should use grub2 or reFind, which I don't know at all. As I understand it reFind will not need the small "BIOS boot partition" but installs to /boot/efi/EFI/refind). The handbook doesn't say anything about the file system for this partition. If grub2 has to write to this partition it should have a filesystem, I guess?
The "Boot partition" should probably be larger than 128 MB (eg. the 580 MB Windows created), it should be formatted with vFAT and it should be mounted to /boot/efi
These 2 partitions should be on disk 1, everything else (root fs and LVM filesystems) on disk 2.
Is this correct so far?
Second that! I don't dual boot but here is my reFind /etc/fstabtuggbuss wrote:Naah, on EFI/GPT you can skip the "bios" partition and just go for a /boot or where ever you like to place EFI
Code: Select all
LABEL=CT500MX_EFI /boot/efi vfat relatime 1 2
LABEL=CT500MX_PART2 / ext4 relatime 0 1
LABEL=SAGE_VIDEO /video ext4 auto,relatime 0 1
/dev/sr0 /mnt/cdrom auto user,noauto,nofail 0 0
tmpfs /var/tmp/portage tmpfs nr_inodes=1M,size=12G 0 0
devpts /dev/pts devpts defaults 0 0
Code: Select all
# df -h /boot/efi
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 99M 2.2M 97M 3% /boot/efi
Code: Select all
# fdisk -l /dev/sda
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk model: CT500MX500SSD1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 3EE9432E-169D-4EC5-A9EC-7F932FBDCD61
Device Start End Sectors Size Type
/dev/sda1 2048 206847 204800 100M EFI System
/dev/sda2 206848 976773134 976566287 465.7G Linux filesystem
Code: Select all
# fdisk -l /dev/sda
Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Disk model: Crucial_CT250MX2
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: B71B8547-F661-4A0E-A610-5FE0BDF75913
Device Start End Sectors Size Type
/dev/sda1 2048 2099199 2097152 1G EFI System
/dev/sda2 2099200 488392703 486293504 231.9G Linux filesystem
Code: Select all
# df -h /boot/efi
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 1022M 2.3M 1020M 1% /boot/efiCode: Select all
Starting kernel
Using load options 'root=PARTUUID=018ff9eb-01 initrd=/boot/initramfs rw add_efi_memmap dobtrfs'
Invalid loader file!
Error: Not Found while loading kernelCode: Select all
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 232,9G 0 disk
└─sda1 8:1 0 610M 0 part /boot/efi
sr0 11:0 1 287M 0 rom
nvme0n1 259:0 0 931,5G 0 disk
├─nvme0n1p1 259:1 0 50G 0 part /
└─nvme0n1p2 259:2 0 881,5G 0 part
├─systemvg-var 252:0 0 30G 0 lvm /var
├─systemvg-opt 252:1 0 3G 0 lvm /opt
├─systemvg-swap 252:2 0 16G 0 lvm
└─systemvg-home 252:3 0 400G 0 lvm /home
Code: Select all
/dev/nvme0n1p1: LABEL="root" UUID="c94c2700-9a6e-4702-99f7-fc1857e01559" UUID_SUB="c27beb2f-db70-49e9-924b-abde94f46586" TYPE="btrfs" PARTUUID="018ff9eb-01"
/dev/nvme0n1p2: UUID="zNubYc-rvxo-XgqY-38ps-1lVR-Ip4r-3gk83c" TYPE="LVM2_member" PARTUUID="018ff9eb-02"
/dev/sda1: UUID="6027-490C" TYPE="vfat" PARTLABEL="boot" PARTUUID="c4a4a7ec-a407-4548-a987-150a34757c8c"
Code: Select all
BootCurrent: 0000
Timeout: 10 seconds
BootOrder: 0000,0004,0002,0003,0001,0005,0006
Boot0000* rEFInd Boot Manager HD(1,GPT,c4a4a7ec-a407-4548-a987-150a34757c8c,0x800,0x131000)/File(\EFI\refind\refind_x64.efi)
Boot0001* UEFI:CD/DVD Drive BBS(129,,0x0)
Boot0002* Hard Drive BBS(HD,,0x0)..GO..NO........q.S.a.m.s.u.n.g. .S.S.D. .9.7.0. .E.V.O. .P.l.u.s. .1.T.B....................A...........................%8S..L......4..Gd-.;.A..MQ..L.S.4.E.W.N.F.0.M.3.2.3.1.6.9.B........BO..NO........u.S.a.m.s.u.n.g. .S.S.D. .8.6.0. .E.V.O. .2.5.0.G.B....................A.................................>..Gd-.;.A..MQ..L.3.S.J.Y.X.N.K.0.2.B.9.6.8.7. .W. . . . ........BO
Boot0003* CD/DVD Drive BBS(CDROM,,0x0)..GO..NO........u.D.R.W.-.2.4.D.5.M.T....................A.................................>..Gd-.;.A..MQ..L.L.K.I.K.L.B.4.A.5.4. .2. . . . . . . . ........BO
Boot0004* UEFI: DRW-24D5MT PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x1)/Sata(1,65535,0)/CDROM(1,0x30,0x3270)..BO
Boot0005* UEFI:Removable Device BBS(130,,0x0)
Boot0006* UEFI:Network Device BBS(131,,0x0)
Code: Select all
timeout 20
menuentry "Gentoo Linux" {
icon /EFI/refind/icons/os_gentoo.png
volume 018ff9eb-01
loader /boot/kernel
options "root=PARTUUID=018ff9eb-01 initrd=/boot/initramfs rw add_efi_memmap dobtrfs"
submenuentry "Boot using old kernel image" {
volume 018ff9eb-01
loader /boot/kernel.old
}
}
Code: Select all
lrwxrwxrwx 1 root root 42 29. Jun 22:37 System.map -> System.map-genkernel-x86_64-4.19.52-gentoo
-rw-r--r-- 1 root root 3474270 29. Jun 22:37 System.map-genkernel-x86_64-4.19.52-gentoo
-rw-r--r-- 1 root root 3244119 29. Jun 21:12 System.map-genkernel-x86_64-4.19.52-gentoo.old
lrwxrwxrwx 1 root root 46 29. Jun 22:37 System.map.old -> System.map-genkernel-x86_64-4.19.52-gentoo.old
drwxr-xr-x 3 root root 4096 1. Jan 1970 efi
lrwxrwxrwx 1 root root 41 29. Jun 22:43 initramfs -> initramfs-genkernel-x86_64-4.19.52-gentoo
-rw-r--r-- 1 root root 89250460 29. Jun 22:43 initramfs-genkernel-x86_64-4.19.52-gentoo
lrwxrwxrwx 1 root root 38 29. Jun 22:37 kernel -> kernel-genkernel-x86_64-4.19.52-gentoo
-rw-r--r-- 1 root root 7451520 29. Jun 22:37 kernel-genkernel-x86_64-4.19.52-gentoo
-rw-r--r-- 1 root root 6484640 29. Jun 21:12 kernel-genkernel-x86_64-4.19.52-gentoo.old
lrwxrwxrwx 1 root root 42 29. Jun 22:37 kernel.old -> kernel-genkernel-x86_64-4.19.52-gentoo.old
-rwxr-xr-x 1 root root 267 30. Jun 10:47 refind_linux.conf
Code: Select all
timeout 10
showtools shell, gdisk, memtest, about, reboot, exit, firmware
scanfor internal,optical,manual
dont_scan_volumes CT250MX_EFI,WD5001_PART2
fold_linux_kernels false
default_selection vmlinuz
I guess this will only work if he kernel is on my ESP? I have my kernel files in /boot (part of / on a btrfs file system). Does reFind scan a not mounted btrfs filesystem? ESP is mounted to /boot/efi.Tony0945 wrote:I don't use an initramfs so I don't know.
Try adding something to /boot/refind_linux.conf or /boot/efi/EFI/BOOT/refind.conf
Instead of symlinks, let reFind find your kernels.
Here are the non-commented out lines in my refind.conf:Not scanning the EFI partition doesn't really save any time. The second disk in this system is bootable so I don't want it scanned.Code: Select all
timeout 10 showtools shell, gdisk, memtest, about, reboot, exit, firmware scanfor internal,optical,manual dont_scan_volumes CT250MX_EFI,WD5001_PART2 fold_linux_kernels false default_selection vmlinuz
I think "fold_linux_kernels false" is the relevant one.
Two questions there.Olis wrote: Does reFind scan a not mounted btrfs filesystem?
Code: Select all
# eix -e refind
[I] sys-boot/refind
Available versions: 0.10.4-r2 (~)0.11.2 (~)0.11.3 {btrfs -custom-cflags doc +ext2 +ext4 -gnuefi hfs +iso9660 ntfs reiserfs}
Installed versions: 0.11.3(08:01:26 PM 09/03/2018)(doc ext2 ext4 gnuefi iso9660 ntfs -btrfs -custom-cflags -hfs -reiserfs)
Homepage: https://www.rodsbooks.com/refind/
Description: The UEFI Boot Manager by Rod Smith
Code: Select all
[ebuild R ] sys-boot/refind-0.10.4-r2::gentoo USE="ext2 ext4 (gnuefi) iso9660 -btrfs (-custom-cflags) -doc -hfs -ntfs -reiserfs"I have 0.10.4-r2 on one system and 0.11.3 on 5the other (haven't updated yet). I better try rebooting the newest one.Olis wrote:I'm using reFind 0.10.4-r2 (current stable version).
Good point. It wasn't build with btrfs supportTony0945 wrote:No! I don't put the kernels in the ESP!Two questions there.Olis wrote: Does reFind scan a not mounted btrfs filesystem?
1. Does reFind recognize btrfs? There is a btrfs use flag. Did you apply it in package.use?
It's not a default like ext4.
Code: Select all
chroot) livecd / # eix refind
[I] sys-boot/refind
Verfügbare Versionen: 0.10.4-r2 ~0.11.2 ~0.11.3 {btrfs -custom-cflags doc +ext2 +ext4 -gnuefi hfs +iso9660 ntfs reiserfs}
Installierte Versionen: 0.10.4-r2(21:30:21 01.07.2019)(btrfs ext2 ext4 gnuefi iso9660 -custom-cflags -doc -hfs -ntfs -reiserfs)
Startseite: https://www.rodsbooks.com/refind/
Beschreibung: The UEFI Boot Manager by Rod Smith
Code: Select all
timeout 10
showtools shell, gdisk, memtest, about, reboot, exit, firmware
scanfor internal,optical,manual
#dont_scan_volumes CT250MX_EFI,WD5001_PART2
fold_linux_kernels true
default_selection kernel
Code: Select all
"Boot with standard options" "root=PARTUUID=018ff9eb-01 rw add_efi_memmap quiet splash"
"Boot to single-user mode" "root=PARTUUID=018ff9eb-01 rw add_efi_memmap quiet splash single"
"Boot with minimal options" "ro root=UUID=c94c2700-9a6e-4702-99f7-fc1857e01559"
Code: Select all
/dev/nvme0n1p1: LABEL="root" UUID="c94c2700-9a6e-4702-99f7-fc1857e01559" UUID_SUB="c27beb2f-db70-49e9-924b-abde94f46586" TYPE="btrfs" PARTUUID="018ff9eb-01"
/dev/nvme0n1p2: UUID="zNubYc-rvxo-XgqY-38ps-1lVR-Ip4r-3gk83c" TYPE="LVM2_member" PARTUUID="018ff9eb-02"
/dev/sda1: UUID="6027-490C" TYPE="vfat" PARTLABEL="boot" PARTUUID="c4a4a7ec-a407-4548-a987-150a34757c8c"
Code: Select all
lrwxrwxrwx 1 root root 42 29. Jun 22:37 System.map -> System.map-genkernel-x86_64-4.19.52-gentoo
-rw-r--r-- 1 root root 3474270 29. Jun 22:37 System.map-genkernel-x86_64-4.19.52-gentoo
-rw-r--r-- 1 root root 3244119 29. Jun 21:12 System.map-genkernel-x86_64-4.19.52-gentoo.old
lrwxrwxrwx 1 root root 46 29. Jun 22:37 System.map.old -> System.map-genkernel-x86_64-4.19.52-gentoo.old
drwxr-xr-x 3 root root 4096 1. Jan 1970 efi
lrwxrwxrwx 1 root root 41 29. Jun 22:43 initramfs -> initramfs-genkernel-x86_64-4.19.52-gentoo
-rw-r--r-- 1 root root 89250460 29. Jun 22:43 initramfs-genkernel-x86_64-4.19.52-gentoo
lrwxrwxrwx 1 root root 38 29. Jun 22:37 kernel -> kernel-genkernel-x86_64-4.19.52-gentoo
-rw-r--r-- 1 root root 7451520 29. Jun 22:37 kernel-genkernel-x86_64-4.19.52-gentoo
-rw-r--r-- 1 root root 6484640 29. Jun 21:12 kernel-genkernel-x86_64-4.19.52-gentoo.old
lrwxrwxrwx 1 root root 42 29. Jun 22:37 kernel.old -> kernel-genkernel-x86_64-4.19.52-gentoo.old
-rwxr-xr-x 1 root root 267 30. Jun 10:47 refind_linux.conf