Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
uefi boot install problem
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Tony0945
Advocate
Advocate


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

PostPosted: Fri Mar 09, 2018 3:15 am    Post subject: Reply with quote

Hu wrote:
Every UEFI that I have used and can remember has offered an early boot key that drops me into UEFI shell. Some also offered a key that lets me pick any recognized EFI application, rather than running the default application (which would be the EFI stub kernel). Either of these approaches could be used to boot an alternate (known-good) Linux kernel without use of external media.
Well not my Gigabyte, but I will take your word for it. Don't know about my MSI. After I had so much trouble with the Gigabyte I just did a BIOS boot on the MSI. But we are moving way off topic.
I'd like to tell the OP that you run grub-install after chroot, but that was BIOS so I'll ask you, Hu, if that is proper advice for UEFI.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13831

PostPosted: Fri Mar 09, 2018 4:39 am    Post subject: Reply with quote

Sorry, I'm no help with grub. I haven't used grub in a long time. I use EFI stub kernels on my EFI systems.
Back to top
View user's profile Send private message
alienfetuseater
n00b
n00b


Joined: 26 Feb 2018
Posts: 34

PostPosted: Fri Mar 09, 2018 4:59 am    Post subject: Reply with quote

ok, confirm them if you would that understand correctly;

1 ) root on a device has the path of
Code:
 /
, but when i am mounting root on a device from another device it has a path from that other device of
Code:
 /mnt/gentoo
,

and 2 ) so installing grub or whatever bootoader i want can be done anywhere, so i can install at
Code:
 /mnt/gentoo/boot/efi
just as well as i can install at
Code:
 /mnt/gentoo/boot
so long as i have mounted the partition with the appropriately corresponding path's
Back to top
View user's profile Send private message
alienfetuseater
n00b
n00b


Joined: 26 Feb 2018
Posts: 34

PostPosted: Fri Mar 09, 2018 4:31 pm    Post subject: Reply with quote

ok, so i have come home and mounted the directories as i suspected i failed in doing, however now after moiunting those directories, chrooting into the new system, re-emerging grub2 and re-installing grub2 i still get the same result of

Code:
EFI variables are not supported on this system


i appreciate everyones assistance and dialogue but i am still stuck in the same position i was when this thread started. does anyone have any idea how to figure out what is wrong with this?

the bios utility is not in legacy mode, it is in uefi mode,
secure boot is off,
i pasted at the beginning thread my fstab file, partition scheme, and make.conf file
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7089
Location: Saint Amant, Acadiana

PostPosted: Fri Mar 09, 2018 4:34 pm    Post subject: Reply with quote

To boot in EFI mode two conditions must be met. The hardware must be configured to use UEFI and the media with OS you are booting must be UEFI capable.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


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

PostPosted: Fri Mar 09, 2018 4:54 pm    Post subject: Reply with quote

Jaglover wrote:
To boot in EFI mode two conditions must be met. The hardware must be configured to use UEFI and the media with OS you are booting must be UEFI capable.

alienfetuseater, earlier in the thread you said you were using the livedvd. I don't know if that boots with UEFI. At this point, all I can suggest is that you download and burn sysrescuecd which is what I used for my one UEFI install. The later versions definitely boot in UEFI mode.
http://www.system-rescue-cd.org/ IIRC, I used version 4.4.something. It's in the basement and right now I'm on the second floor.
There is a brand new 5.2.1 version and it surely will boot in UEFI mode. My older version booted in either and I had to tell the mobo bios to try UEFI mode first because the BIOS would also boot either. I had first used a 3.x version and it booted legacy only and i had similar problems with refind as Jaglover said.
Back to top
View user's profile Send private message
alienfetuseater
n00b
n00b


Joined: 26 Feb 2018
Posts: 34

PostPosted: Fri Mar 09, 2018 5:03 pm    Post subject: Reply with quote

@tony0945 if i cant get this to work then i will try the sysrescue cd, i mentioned i was using the dvd because i read that it was the only medium that supported uefi. maybe i was wrong in reading that, so if this doesnt work i will try that
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Fri Mar 09, 2018 5:37 pm    Post subject: Reply with quote

what live media (cd/dvd/usb) are you currently booting? second the suggestion of system rescue cd or system rescue usb
boot the live media in efi mode, run
Code:
grep -i efi /proc/mounts
if "efivarfs /sys/firmware/efi/efivars efivarfs ro,relatime 0 0" is not returned the live media did not boot in efi mode.
then run (let us all see what the efi partition containsd):
Code:
mkdir /mnt/efi
mount /dev/sda2 /mnt/efi
ls -lr /mnt/efi | wgetpaste -t
umount /mnt/efi
Post the url returned.
Mount the gentoo partitions and run
Code:
grep -i efi /mnt/gentoo/usr/src/linux/.config
if
Code:
CONFIG_EFI_PARTITION=y
CONFIG_EFI=y
CONFIG_EFI_STUB=y
CONFIG_EFI_MIXED=y
CONFIG_FB_EFI=y
CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
# EFI (Extensible Firmware Interface) Support
CONFIG_EFI_VARS=m
CONFIG_EFI_ESRT=y
CONFIG_EFI_FAKE_MEMMAP=y
CONFIG_EFI_MAX_FAKE_MEM=8
CONFIG_EFI_RUNTIME_WRAPPERS=y
# CONFIG_EFI_BOOTLOADER_CONTROL is not set
# CONFIG_EFI_CAPSULE_LOADER is not set
# CONFIG_EFI_TEST is not set
CONFIG_EFI_DEV_PATH_PARSER=y
# CONFIG_CACHEFILES is not set
CONFIG_EFIVAR_FS=y
# CONFIG_EARLY_PRINTK_EFI is not set
# CONFIG_EFI_PGT_DUMP is not set
is not returned, recommend editing the kernel configuration.
Enter the chroot, run (let us all see raw data):
Code:
parted -l | wgetpaste -t
mount | wgetpaste -t
ls -lR /boot | wgetpaste -t
wgetpaste -t /usr/src/linux/.config
Post the url's returned.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


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

PostPosted: Fri Mar 09, 2018 5:59 pm    Post subject: Reply with quote

alienfetuseater wrote:
@tony0945 if i cant get this to work then i will try the sysrescue cd, i mentioned i was using the dvd because i read that it was the only medium that supported uefi. maybe i was wrong in reading that, so if this doesnt work i will try that


I had to go down to the basement. It's version 5.1.1 and definitely boots UEFI.
Back to top
View user's profile Send private message
Marcih
Apprentice
Apprentice


Joined: 19 Feb 2018
Posts: 152

PostPosted: Fri Mar 09, 2018 6:00 pm    Post subject: Reply with quote

I'll butt in if I may.
You've mounting your EFI System Partition at /boot/efi (when booted from the LiveCD and non-chrooted /mnt/gentoo/boot/efi) but you've installing GRUB into /boot, meaning that the GRUB files aren't on your ESP but on your rootfs where the /boot folder is located.
It may be that you'll get confused in the future when referring to the handbook so I suggest you follow the handbook and install at /boot.

So, boot your LiveCD, chroot into your Gentoo install:
Code:
# mount /dev/sda4 /mnt/gentoo
# mount -t proc /proc /mnt/gentoo/proc
# mount --rbind /sys /mnt/gento/sys
# mount --rbind /dev /mnt/gentoo/dev
# chroot /mnt/gentoo /bin/bash
# source /etc/profile

(mount --make-rslave /sys and /dev is only necessary for systemd and adding "(chroot)" to the text on the left of the prompt is only visual so I've left those two out, otherwise this is what the handbook tells you to do. If anybody wants to give me further knowledge on what else I can omit from my list, feel free.)
Then change your fstab to have your ESP mount on /boot, not /boot/efi. First remove all the files in /boot on the rootfs and only then mount /boot:
Code:
# rm -rf /boot/*
# mount /boot

Now try installing GRUB again, like the handbook says:
Code:
# grub-install --target=x86_64-efi --efi-directory=/boot --removable
# grub-mkconfig -o /boot/grub/grub.cfg


Alternatively, you can stick with your /boot/efi path but then remember to change the --efi-directory option when doing grub-install.
skellr wrote:
The Grub manual says it's supposed to be easy to use. I would try it the easy way.
Code:
On EFI systems for fixed disk install you have to mount EFI System Partition. If you mount it at /boot/efi then you don’t need any special arguments:

# grub-install

Otherwise you need to specify where your EFI System partition is mounted:

# grub-install --efi-directory=/mnt/efi

That's interesting, I never saw that mentioned on either the Arch or Gentoo wiki. Here the Gentoo wiki talks about specifying the --efi-directory, I'd do it anyways, doesn't hurt anything and just makes sure you tell GRUB exactly where to install its files.
_________________
Bones McCracker wrote:
It wouldn't be so bad, if it didn't suck.

===
I refuse to move on from GTK+2.
Back to top
View user's profile Send private message
alienfetuseater
n00b
n00b


Joined: 26 Feb 2018
Posts: 34

PostPosted: Fri Mar 09, 2018 6:12 pm    Post subject: Reply with quote

deleted

Last edited by alienfetuseater on Fri Mar 09, 2018 7:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
alienfetuseater
n00b
n00b


Joined: 26 Feb 2018
Posts: 34

PostPosted: Fri Mar 09, 2018 6:15 pm    Post subject: Reply with quote

deleted

Last edited by alienfetuseater on Fri Mar 09, 2018 7:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
alienfetuseater
n00b
n00b


Joined: 26 Feb 2018
Posts: 34

PostPosted: Fri Mar 09, 2018 6:22 pm    Post subject: Reply with quote

deleted

Last edited by alienfetuseater on Fri Mar 09, 2018 7:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
alienfetuseater
n00b
n00b


Joined: 26 Feb 2018
Posts: 34

PostPosted: Fri Mar 09, 2018 6:23 pm    Post subject: Reply with quote

deleted

Last edited by alienfetuseater on Fri Mar 09, 2018 7:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
alienfetuseater
n00b
n00b


Joined: 26 Feb 2018
Posts: 34

PostPosted: Fri Mar 09, 2018 6:25 pm    Post subject: Reply with quote

deleted

Last edited by alienfetuseater on Fri Mar 09, 2018 7:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
alienfetuseater
n00b
n00b


Joined: 26 Feb 2018
Posts: 34

PostPosted: Fri Mar 09, 2018 6:26 pm    Post subject: Reply with quote

deleted

Last edited by alienfetuseater on Fri Mar 09, 2018 7:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
P.Kosunen
Guru
Guru


Joined: 21 Nov 2005
Posts: 309
Location: Finland

PostPosted: Fri Mar 09, 2018 6:28 pm    Post subject: Reply with quote

alienfetuseater wrote:
and then when i install the bootloader, grub2 or whichever, after emerging,
Code:

grub-install --target=x86_64-efi --efi-directory=/boot

this will automatically know to install bootloader to
Code:
/mnt/gentoo/boot/efi
? how does that part work? sounds kind of magical


Code:
grub-install --target=x86_64-efi --efi-directory=/boot/efi


Efi dir is /boot/efi in chroot.
Back to top
View user's profile Send private message
alienfetuseater
n00b
n00b


Joined: 26 Feb 2018
Posts: 34

PostPosted: Fri Mar 09, 2018 6:39 pm    Post subject: Reply with quote

Code:

(chroot) livecd ~ # exit
exit
livecd gentoo # grep -i efi /proc/mounts

/dev/sda2 /mnt/gentoo/boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0



Code:

livecd gentoo # mkdir /mnt/efi
livecd gentoo # mount /dev/sda2 /mnt/efi
livecd gentoo # ls -lr /mnt/efi | wgetpaste -t

total 20381
-rwxr-xr-x 1 root root 6734112 Mar  6 13:37 vmlinuz-4.9.76-gentoo-r1.old
-rwxr-xr-x 1 root root 6734112 Mar  9 18:00 vmlinuz-4.9.76-gentoo-r1
drwxr-xr-x 6 root root     512 Mar  9 16:47 grub
-rwxr-xr-x 1 root root    3856 Mar  7 02:31 dbx
-rwxr-xr-x 1 root root    6274 Mar  7 02:31 db
-rwxr-xr-x 1 root root  109073 Mar  6 13:37 config-4.9.76-gentoo-r1.old
-rwxr-xr-x 1 root root  109062 Mar  9 18:00 config-4.9.76-gentoo-r1
-rwxr-xr-x 1 root root 3582392 Mar  6 13:37 System.map-4.9.76-gentoo-r1.old
-rwxr-xr-x 1 root root 3582657 Mar  9 18:00 System.map-4.9.76-gentoo-r1
-rwxr-xr-x 1 root root     886 Mar  7 02:31 PK
-rwxr-xr-x 1 root root    3573 Mar  7 02:31 KEK
drwxr-xr-x 4 root root     512 Mar  9 16:26 EFI

Your paste can be seen here: http://bpaste.net/show/1bec5b301cbd
livecd gentoo # umount /mnt/efi
livecd gentoo #



Code:

livecd gentoo # mount /dev/sda4 /mnt/gentoo
mount: /dev/sda4 is already mounted or /mnt/gentoo busy
       /dev/sda4 is already mounted on /mnt/gentoo
livecd gentoo # cd /mnt/getoo
bash: cd: /mnt/getoo: No such file or directory
livecd gentoo # cd /mnt/gentoo
livecd gentoo # mount --types proc /proc /mnt/gentoo/proc
mount: /proc is already mounted or /mnt/gentoo/proc busy
       /proc is already mounted on /mnt/gentoo/proc
livecd gentoo # mount --rbind /sys /mnt/gentoo/sys
livecd gentoo # mount --make-rslave /mnt/gentoo/sys
livecd gentoo # mount --rbind /dev /mnt/gentoo/dev
livecd gentoo # mount --make-rslave /mnt/gentoo/dev

livecd gentoo # grep -i efi /mnt/gentoo/usr/src/linux/.config

CONFIG_EFI_PARTITION=y
CONFIG_EFI=y
CONFIG_EFI_STUB=y
CONFIG_EFI_MIXED=y
CONFIG_FB_EFI=y
CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
# EFI (Extensible Firmware Interface) Support
CONFIG_EFI_VARS=y
CONFIG_EFI_ESRT=y
CONFIG_EFI_RUNTIME_MAP=y
# CONFIG_EFI_FAKE_MEMMAP is not set
CONFIG_EFI_RUNTIME_WRAPPERS=y
CONFIG_EFI_BOOTLOADER_CONTROL=y
# CONFIG_EFI_CAPSULE_LOADER is not set
# CONFIG_EFI_TEST is not set
CONFIG_EFIVAR_FS=y
# CONFIG_EARLY_PRINTK_EFI is not set
# CONFIG_EFI_PGT_DUMP is not set
livecd gentoo #



Code:

livecd gentoo # parted -l | wgetpaste -t

Warning: The driver descriptor says the physical block size is 2048 bytes, but
Linux says it is 512 bytes.
Model: ATA ST3500413AS (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name    Flags
 1      1049kB  3146kB  2097kB  fat32           grub    bios_grub
 2      3146kB  137MB   134MB   fat32           boot    boot, esp
 3      137MB   674MB   537MB   linux-swap(v1)  swap
 4      674MB   500GB   499GB   ext4            rootfs


Ignore/Cancel?   


Code:

(chroot) livecd ~ # mount | wgetpaste -t

/dev/sda4 on / type ext4 (rw,relatime,data=ordered)
/dev/sda1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sda2 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
openrc on /sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/rc/sh/cgroup-release-agent.sh,name=openrc)
cpuset on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cpu on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
cpuacct on /sys/fs/cgroup/cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
net_cls on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=2044572,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
/dev/sda2 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)


Your paste can be seen here: https://paste.pound-python.org/show/ma6ZkHIZBp4dU1C7xNKu/

Code:

ls -lR /boot | wgetpaste -t


Your paste can be seen here: https://paste.pound-python.org/show/M21sf8Mesbkklrtb9ZoC/

Code:

wgetpaste -t /usr/src/linux/.config


Your paste can be seen here: https://paste.pound-python.org/show/wuK6oU4t9nwJHdDTI3Pk/
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Fri Mar 09, 2018 7:42 pm    Post subject: Reply with quote

/dev/sda1 shows formatted as fat32 in pastebin https://paste.pound-python.org/show/1NbUDU80uJ88byUdQqdB - was intended to be unformatted
/dev/sda1 shows mounted at /boot in pastebin https://paste.pound-python.org/show/ma6ZkHIZBp4dU1C7xNKu/ - at 2MB it is too small to contain a kernel
/dev/sda2 shows mounted at /boot and at /boot/efi in pastebin https://paste.pound-python.org/show/ma6ZkHIZBp4dU1C7xNKu/ - one partition mounted at 2 places in one filesystem is not recommended.
Suggest removing the filesystem from /dev/sda1 and leaving /dev/sda1 unmounted forever. You may have mounted it manually and/or current /etc/fstab may contain a /dev/sda1 line.
Suggest mounting /dev/sda2 on only one mount point. As it is currently contains kernel files as well as grub and efi directories it has beeb functioning as though only mounted at /boot. Suggest continue with /dev/sda2 mounted only at /boot.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
alienfetuseater
n00b
n00b


Joined: 26 Feb 2018
Posts: 34

PostPosted: Fri Mar 09, 2018 8:04 pm    Post subject: Reply with quote

DONAHUE wrote:
/dev/sda1 shows formatted as fat32 in pastebin https://paste.pound-python.org/show/1NbUDU80uJ88byUdQqdB - was intended to be unformatted
/dev/sda1 shows mounted at /boot in pastebin https://paste.pound-python.org/show/ma6ZkHIZBp4dU1C7xNKu/ - at 2MB it is too small to contain a kernel
/dev/sda2 shows mounted at /boot and at /boot/efi in pastebin https://paste.pound-python.org/show/ma6ZkHIZBp4dU1C7xNKu/ - one partition mounted at 2 places in one filesystem is not recommended.
Suggest removing the filesystem from /dev/sda1 and leaving /dev/sda1 unmounted forever. You may have mounted it manually and/or current /etc/fstab may contain a /dev/sda1 line.
Suggest mounting /dev/sda2 on only one mount point. As it is currently contains kernel files as well as grub and efi directories it has beeb functioning as though only mounted at /boot. Suggest continue with /dev/sda2 mounted only at /boot.


ok, let me make adjustments and post back after.

also in comparing your kernel configurations i have some adjustments to make to match yours.

and it appears that i should use the rescueCD as the results did not include 'efivarfs /sys/firmware/efi/efivars efivarfrs ro,realtime o o'

also should i just not include the /dev/sda1 partition? ive seen recommendations saying that it is not neccessary, just to have
/dev/sda2 /boot/efi
/dev/sda3 swap
/dev/sda4 /
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


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

PostPosted: Sat Mar 10, 2018 12:06 am    Post subject: Reply with quote

alienfetuseater wrote:

also should i just not include the /dev/sda1 partition? ive seen recommendations saying that it is not neccessary, just to have
/dev/sda2 /boot/efi
/dev/sda3 swap
/dev/sda4 /

If it's not going to be mounted or have a filesystem it shouldn't be in /etc/fstab which is for telling the system what filesystem to mount where.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Sat Mar 10, 2018 3:38 am    Post subject: Reply with quote

recommended /etc/fstab:
Code:
#<fs>     <mountpoint> <type> <opts>          <dump/pass>
/dev/sda2 /boot        vfat   defaults,noauto 0 1
/dev/sda3 none         swap   sw              0 0
/dev/sda4 /            ext4   notail,noatime  0 1


Code:
boot the sysresccd/usb in efi mode 
mount /dev/sda4 /mnt/gentoo
ls -lR /mnt/gentoo/boot | wgetpaste -t
mkdir /mnt/gentoo/boot/efi #may exist
mount /dev/sda2 /mnt/gentoo/boot/efi
ls -lR /mnt/gentoo/boot/efi | wgetpaste -t




if you have a spare usb flash drive that contains nothing of value, suggest download a rEFInd flash drive image from http://sourceforge.net/projects/refind/files/0.11.2/refind-flashdrive-0.11.2.zip/download, unzip it, cd to the unzip directory (contains file refind-flashdrive-0.11.2.img), run fdisk -l noting what disks are listed, presumably /dev/sda and /dev/sdb, install the spare usb flash drive, run fdisk -l again, this second list should list a new disk, presumably /dev/sdc, assuming /dev/sdc is correct, run
Code:
dd if=refind-flashdrive-0.11.2.img of=/dev/sdf bs=4MB
dd can be destructive be sure of= is pointing to the correct "spare" usb. You can then reboot using F2 or delete to enter the UEFI and selecting the spare USB in UEFI mode as first boot choice. This will give you a chance to see the rEFInd interface plus provide trouble shooting information, ie what boot choices does rEFInd show?

edit for consistency as noted by Charles17 below
_________________
Defund the FCC.


Last edited by DONAHUE on Sat Mar 10, 2018 2:07 pm; edited 3 times in total
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2613

PostPosted: Sat Mar 10, 2018 6:22 am    Post subject: Reply with quote

DONAHUE wrote:
.. Suggest continue with /dev/sda2 mounted only at /boot.
Yes, but then:

DONAHUE wrote:
recommended /etc/fstab:
Code:
#<fs>     <mountpoint> <type> <opts>          <dump/pass>
/dev/sda2 /boot/efi    vfat   defaults,noauto 0 1


Better avoid /boot/efi and mount at /boot directly
Code:
#<fs>     <mountpoint> <type> <opts>          <dump/pass>
/dev/sda2 /boot        vfat   defaults,noauto    0 1
Back to top
View user's profile Send private message
P.Kosunen
Guru
Guru


Joined: 21 Nov 2005
Posts: 309
Location: Finland

PostPosted: Sat Mar 10, 2018 1:56 pm    Post subject: Reply with quote

charles17 wrote:
Better avoid /boot/efi and mount at /boot directly

EFI partition need only grub*.efi bootloader file, if you use boot directly also grub modules and kernels go there. On basic system grub modules and kernels can be in root fs, EFI system partition can be always unmounted unless you upgare grub.
Back to top
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 864
Location: The Village, Portmeirion

PostPosted: Sun Mar 11, 2018 2:11 am    Post subject: Reply with quote

Marcih wrote:

That's interesting, I never saw that mentioned on either the Arch or Gentoo wiki. Here the Gentoo wiki talks about specifying the --efi-directory, I'd do it anyways, doesn't hurt anything and just makes sure you tell GRUB exactly where to install its files.

Why not tell it multiple times just to make sure it knows what is wanted?
Code:
# grub-install --efi-directory=/boot/efi  --efi-directory=/boot/efi --efi-directory=/boot/efi


It already assumes /boot/efi is the default, but it never hurts to say it again, it's not like you're married to it.
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 Previous  1, 2, 3, 4  Next
Page 2 of 4

 
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