You are not logged in.

#1 2013-05-14 00:35:10

UnsolvedCypher
Member
Registered: 2012-04-28
Posts: 201

[SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

After following the Beginners' Guide to install Arch on a UEFI system, I just get a black screen with a blinking underscore on it. I'm not sure if this means I am in the bootloader, the OS, or that UEFI failed to load the kernel. I used a GPT, made the EFI Partition, and used EFISTUB as the bootloader. I've seen many threads like this, but none of the solutions have helped me. What could I possible be overlooking?

Last edited by UnsolvedCypher (2013-05-19 20:46:22)

Offline

#2 2013-05-14 04:12:40

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

You use EFISTUB, but does that mean you are booting via a bootmanager (Gummiboot or rEFInd), or are you using a direct efibootmgr entry?

I take it you have tried to use an efibootmgr entry, as otherwise I think it would be quite obvious if you made it to a boot manager... but I could be wrong, as I ahve gummiboot set to "timeout 0" so I see nothing.

Last edited by WonderWoofy (2013-05-14 04:13:47)

Offline

#3 2013-05-14 19:23:06

UnsolvedCypher
Member
Registered: 2012-04-28
Posts: 201

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

I am using rEFInd, and adding that entry to using efibootmgr as is described on the Beginers' Guide. Should I try gummiboot instead?

Offline

#4 2013-05-14 19:31:43

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

If rEFInd had been properly configured, you should have seen a fancy graphical boot selection screen (like this).


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#5 2013-05-14 21:56:05

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

Is your EFI System Partition of gdisk type ef00?  After you use efibootmgr to make the entry, does it show up when you run efibootmgr w/o any arguments?  If so, when you run efibootngr -v, what does it show for your refind entry?

There have been some bugs with efibootmgr not actually creating entries on some machines/firmwares.  So it may be that you are doing everything right, but just being bitten by this bug.  I fall else fails, you can use the UEFI shell to create entries, though I do not know the syntax offhand.  If your system did not come with a shell in the firmware, you can use the default spot for *.efi applications.  It is \EFI\boot\bootx64.efi, and is typically for when you have a removable media you are booting off of.  Obviously in those cases you will not have an efibootmgr entry, so it will default to whatever is in that postition.  So you can put the UEFI shell there to get things going.

Otherwise, you can simply put rEFInd in that default position as well.  Just keep the other configuration as is, and then additionally copy refindx64.efi to \EFI\boot\bootx64.efi.  Of course that path is relative to the root of youe ESP, and not to your filesystem as a whole.

Offline

#6 2013-05-14 21:59:40

UnsolvedCypher
Member
Registered: 2012-04-28
Posts: 201

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

I'm currently doing some rEFInd setup to see if I can fix it that way, but I will try your method if it my fixes fail. I have a question about one of the directories mentioned: my system just has /boot/EFI/whatever, but the wiki says /boot/efi/EFI/whatever. Is this ok? The wiki said to mount the partition at /boot, so I think it should only have /EFI. Am I doing something wrong? This is from the UEFI Bootloader page.

Offline

#7 2013-05-14 22:12:18

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

Yes, I mount my ESP at /boot.  I have been doing that since I migrated to UEFI as it seemed much more sane in my head. 

The only reason not to do it that way is if you want to keep your kernels and initramfs' off of the ESP.  Many UEFI bootloaders and boot managers have support for reading them off certain partition formats, but some don't.  I use gummiboot, which does not have this support, so I keep my kernels and initramfs' in \EFI\arch (which would be /boot/EFI/arch) on my machine.

To make sure my kernels and initramfs' get to where i want them to be, I use a systemd.path/systemd.service to move the kernel when it is installed.  Then I have mkinitcpio set to look for the kernel (and thereby determine the kernel version) at its new location of /boot/EFI/arch/vmlinuz-linux.efi.  Mkinitcpio then creates the initramfs, and I ahve it set to simply write it to that location as well.  This can be done in the presets in /etc/mkinitcpio.d.

If you want the greatest simplicity in the configuration of your boot manager, I would recommend gummiboot.  But many people really like the graphical interface of rEFInd, as well as its autodetection.  I have rEFInd set up as a backup boot manager (one of many), and I have autodetection turned off and I have it set to textonly.  I really found the autodetection mechanism a bit too much for my taste.  That and I keep numerous kernels and whatnot speard throughout my ESP.

Offline

#8 2013-05-14 22:51:11

srs5694
Member
From: Woonsocket, RI
Registered: 2012-11-06
Posts: 719
Website

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

WonderWoofy wrote:

To make sure my kernels and initramfs' get to where i want them to be, I use a systemd.path/systemd.service to move the kernel when it is installed.  Then I have mkinitcpio set to look for the kernel (and thereby determine the kernel version) at its new location of /boot/EFI/arch/vmlinuz-linux.efi.  Mkinitcpio then creates the initramfs, and I ahve it set to simply write it to that location as well.  This can be done in the presets in /etc/mkinitcpio.d.

If you want the greatest simplicity in the configuration of your boot manager, I would recommend gummiboot.  But many people really like the graphical interface of rEFInd, as well as its autodetection.

In terms of simplicity of configuration, IMHO rEFInd beats gummiboot, and your post illustrates one of gummiboot's limitations: It's much more restrictive about where kernels can reside. You even included a whole paragraph describing how your system must copy kernels from their standard location to where gummiboot can find them. (I don't believe that's really necessary in all cases, though; it depends on how other details are set up. rEFInd is more flexible, though, since it supports EFI drivers and so can read kernels from the most popular Linux filesystems.)

If you set up mount points or EFI drivers correctly, rEFInd can work acceptably with no changes to its default configuration file and with one additional configuration file (/boot/refind_linux.conf). The latter file is generated automatically by rEFInd's install script or by the mkrlconf.sh script that comes with rEFInd. (The last I checked, though, the Arch package didn't include either of these scripts.) Of course, you might want to tweak the default settings, too, but that goes for any boot manager.

Gummiboot, by contrast, requires a main configuration file (which is very simple) and one file per kernel that you want to launch. If you've got many kernels, or if they change frequently, this can be a hassle to maintain. That said, Arch's kernel-naming scheme means you probably won't need to make changes very frequently. Also, gummiboot supports fewer configuration options than rEFInd, so there's less to learn if you want to learn every detail of the software's operation.

Thus, for Arch, the two are pretty similar in complexity of both initial and ongoing configuration. If you multi-boot with another distribution, though, rEFInd will probably be easier to set up and maintain. Of course, if you value a minimalistic design, gummiboot has its advantages; but a simple design doesn't necessarily correlate to minimal maintenance effort.

Offline

#9 2013-05-14 22:53:10

UnsolvedCypher
Member
Registered: 2012-04-28
Posts: 201

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

Since Arch doesn't seem to include these scripts, should I just download the tarball, or is there a better way to generate the refind_linux file?

Offline

#10 2013-05-14 23:05:02

srs5694
Member
From: Woonsocket, RI
Registered: 2012-11-06
Posts: 719
Website

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

You can certainly use the scripts (and the binary, if you like) from the official rEFInd .zip files. Alternatively, you can generate refind_linux.conf manually. The file's description is in the rEFInd documentation (scroll down a bit).

Offline

#11 2013-05-15 00:57:12

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

@srs5694, the only reason I have things moved around the way I do (and thereby make things so complex for myself) is that I try to stick to the recommended filesystem hierarchy of the ESP.  At first, I did keep everything at the root of the ESP, so I dind't have to mave anything and just mounted it at /boot.  This worked, but as I played with other systems and whatnot on my spare drive, things got messy pretty quick.  So now I stick to \EFI\{arch,gummiboot,refind,etc,etc}.  But you are probably right that the way I do it is in fact more complicated than simply letting your autoscan things work in rEFInd.  But if I dind't clean things up, it would give me a billion entries that I didn't want or need.

I have wondered though, if I were to use the autoscan, I would therefore use the refind_linux.conf file that I would put in \EFI\arch along with my kernels.  But I have multiple kernels.  ATM, they mostly take the same kernel arguments.  But for a while I had an LTS kernel there, which took slightly different arguements for my system to work properly.  How would you do this with the refind_linux.conf file and autoscanning?  I just turned autoscanning off and then used boot stanzas in refind.conf.

Offline

#12 2013-05-15 00:59:50

UnsolvedCypher
Member
Registered: 2012-04-28
Posts: 201

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

Well, I wish I had tried gummiboot sooner, the installation seems so simple! After running gummiboot install, I got an error saying "Failed to create EFI Boot variable entry: No such file or directory". So how do I generate, create, or find the file it is looking for? Or, have I done something wrong in my hierarchy?

Offline

#13 2013-05-15 01:07:15

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

Before we get any further... are you booted using UEFI?  Or are you using a bios bootloader?  Because you cannot create efibootmgr entries from a bios booted machine. 

It is kind of a chicken/egg thing.  But if you turn off bios compatibility mode, then slap in the Arch Linux live cd, it will boot in UEFI.  Otherwise, you can use a USB, though the creation of a UEFI live USB is different. 

In any case, if you turn off bios booting, or there is an option to give UEFI priority over bios mode, just select the HDD/SSD with the EFI System Partition and it should boot in UEFI now using gummiboot.  This is because gummiboot automatically copies itself to \EFI\gummiboot\gummiboot.efi as well as \EFI\boot\bootx64.efi.  It is that second option that should give you UEFI bootability.

Offline

#14 2013-05-15 01:11:05

UnsolvedCypher
Member
Registered: 2012-04-28
Posts: 201

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

My USB was created by following the Wiki's bootable UEFI USB instructions, and when asked to select a boot device, I selected [UEFI] Device name rather than just Device name. Is there anything additional I need to do? I'm not quite sure what you mean by "select" in your last post. Select when?

Offline

#15 2013-05-15 01:59:56

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

I meant select from the firmware boot manager.  Which I am pretty sure you did.  Okay, so when you boot from the USB, you should be presented with the options to boot Arch Linux (the live media), the UEFI Shell v1, and the UEFI Shell v2.  If you choose the UEFI Shell v2, there is a tool that is included in the shell that also allows you to create UEFI boot manager entries.  It is the bcfg command.  I have never used it (I have never needed to), but from what I understand it is more reliable than the efibootmgr utility.  Maybe give that a whirl?  There are instructions in the wiki about how to use it on the UEFI page.

Offline

#16 2013-05-15 02:45:50

UnsolvedCypher
Member
Registered: 2012-04-28
Posts: 201

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

Strangely, when I boot from the USB Arch is booted automatically, without asking me anything. It only gives me that menu when I boot the USB non-UEFI. I'll search around for a solution to that. As soon as I get that fixed, I'll try that command. Thanks for all your help so far!

Offline

#17 2013-05-15 04:20:05

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

If you made a UEFI USB it should not boot at all using bios compatibility.  This is because the UEFI USB creation is simply copying all the contents from the iso to the USB.  There is no process of actually installing a bios bootloader onte the drive.  So unless there is a bios bootloader from a previous usage, it should not boot whatsoever unless from UEFI.  Could it be that you are booting in what it is telling you is bios mode, but then just immediately falling back to UEFI because it can't find shit to boot?

Offline

#18 2013-05-15 13:23:55

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

UnsolvedCypher wrote:

Well, I wish I had tried gummiboot sooner, the installation seems so simple!

IMO the wiki entry on configuring rEFInd is not one of the best on the Arch wiki. If you decide to take another stab at rEFInd, I suggest you read The rEFInd Boot Manager: Methods of Booting Linux. I was completely lost trying to configure rEFInd before reading that; after reading it, I was up and running in minutes.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#19 2013-05-15 14:28:44

srs5694
Member
From: Woonsocket, RI
Registered: 2012-11-06
Posts: 719
Website

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

WonderWoofy wrote:

But you are probably right that the way I do it is in fact more complicated than simply letting your autoscan things work in rEFInd.  But if I dind't clean things up, it would give me a billion entries that I didn't want or need.

I'm not sure when you last tried rEFind, but I've been adding features to try to remove redundant or non-functional boot entries. the latest version of rEFInd (0.6.11) includes a feature to ignore symbolic links (on filesystems that support them, of course), since a lot of distributions create symbolic links that result in duplicated entries. This likely isn't an issue if you're mounting the ESP at /boot, though, since FAT doesn't support symbolic links. Some time ago I added a check to see if EFI/BOOT/bootx64.efi is a duplicate of another boot manager, and if so, to hide EFI/BOOT/bootx64.efi.

I have wondered though, if I were to use the autoscan, I would therefore use the refind_linux.conf file that I would put in \EFI\arch along with my kernels.  But I have multiple kernels.  ATM, they mostly take the same kernel arguments.  But for a while I had an LTS kernel there, which took slightly different arguements for my system to work properly.  How would you do this with the refind_linux.conf file and autoscanning?  I just turned autoscanning off and then used boot stanzas in refind.conf.

Using manual boot stanzas is the way that gives you the most control, and will certainly work -- but it's also more effort to configure. One other way would be to set up multiple subdirectories of the ESP's "EFI" directory, one for each set of kernel options. You'd then sort your kernels into the appropriate subdirectories depending on the options they require. Another alternative would be to set up the different options as submenus (separate lines) in refind_linux.conf. This might not be desirable if you need radically different options to boot particular kernels, since some of your entries would then not work at all if you just hit Enter to launch them; but if you want certain non-critical options (that you don't always use) with some kernels but not with others, this approach would probably be fine.

Offline

#20 2013-05-15 20:09:31

UnsolvedCypher
Member
Registered: 2012-04-28
Posts: 201

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

WonderWoofy wrote:

If you made a UEFI USB it should not boot at all using bios compatibility.  This is because the UEFI USB creation is simply copying all the contents from the iso to the USB.  There is no process of actually installing a bios bootloader onte the drive.  So unless there is a bios bootloader from a previous usage, it should not boot whatsoever unless from UEFI.  Could it be that you are booting in what it is telling you is bios mode, but then just immediately falling back to UEFI because it can't find shit to boot?

I meant from before, when I accidentally made a non UEFI USB. I'll try to see if there is an alternative way to load the shell.

Offline

#21 2013-05-15 20:57:04

UnsolvedCypher
Member
Registered: 2012-04-28
Posts: 201

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

Is the efi system partition supposed to be mounted as /boot? Also, is it possible to install in BIOS none p mode on a UEFI motherboard?

Offline

#22 2013-05-15 21:14:07

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

UnsolvedCypher wrote:

Is the efi system partition supposed to be mounted as /boot?

It depends on what bootloader you use. If you use rEFInd, it can go either way.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#23 2013-05-15 22:19:25

UnsolvedCypher
Member
Registered: 2012-04-28
Posts: 201

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

I've decided that I don't really want to deal with UEFI, as it doesn't seem to have an advantage. I've installed BIOS grub, which works. I'm put into the shell when I boot, though. Do I need to configure something, and if so, what?

Last edited by UnsolvedCypher (2013-05-15 22:19:55)

Offline

#24 2013-05-15 23:53:18

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

I'm put into the shell when I boot, though. Do I need to configure something, and if so, what?

You might need to be more specific. That sounds like exactly what one should expect after installing Arch.

Anyhoo, when you get things up and running, try qemu+ovmf to experiment with UEFI.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#25 2013-05-16 00:22:02

UnsolvedCypher
Member
Registered: 2012-04-28
Posts: 201

Re: [SOLVED] Blank Screen, Blinking Cursor after Fresh UEFI Install

Sorry, I meant the grub shell, where it says "minimal bash-like line editing is supported". I think I need to specify what OS to load in some configuration file, but I'm not sure which one.

Offline

Board footer

Powered by FluxBB