-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NixOS Live USB/DVD fails in UEFI mode #7132
Comments
Did you follow http://nixos.org/nixos/manual/sec-installation.html#sec-uefi-installation? PS: We've just merged |
I did follow those instructions and label the USB drive as NIXOS_ISO. As I said, I am able to complete the bootup process in BIOS mode from DVD but UEFI mode on either DVD or USB the boot stalls randomly. I also tested the DVD and USB in UEFI mode on my laptop (Which currently dual-bools Windows 8 and Sabayon) and the boot completed with no issues. I suspect this is some kind of hardware issue. Is there a specific tool you'd like me to use to provide some hardware info? |
I expect the dd-related commits might help this, but note: those won't appear in 14.12, only in unstable (once the channel updates finally). |
In the meantime you might want to try one of the ISOs published during testing those changes, e.g. #4678 (comment). Once you boot, you should be able to install any version you like (even 14.12). |
The ISO published in the comment you referenced freezes in UEFI mode for me, just as the older ones do. |
What we know:
When the system fails, it doesn't freeze completely (Ctrl+Alt+Delete still works). So I'm assuming systemd is still working and there is no (hidden) kernel panic. I presume you do enter gummiboot (the boot menu before the system starts). In there, you can press If you boot with this change, it'll show debug information from both systemd as well as the kernel. Hopefully it'll give some better understanding to the problem. |
If by gummiboot you refer to the menu with 3 items, the top one being NixOS and the bottom one being EFI firmware interface then yes I do enter that. I'll try the debug trick shortly and let you know what turns up :-) |
It's weird, that's stage 2 and shouldn't be affected by this PR (in theory). Edit: ignore this comment, I've been confused by the title of this issue. |
(@lethalman this isn't a PR ;) It's an issue regardless of the new boot system or the old) It must be some incompatiblity with UEFI and something that's loaded in stage 2... somehow. Too bad the debug output didn't give us much. I'm still wondering how to determine whether this is a kernel-freeze or whether this has something to do with some systemd service. Just to be sure, I presumed the system will not show something after 90 seconds? Is this indeed correct? I noticed in the screenshots that the last line isn't interrupted abruptly. Could you add the following to the commandline: |
I have left the system sitting in the "locked" state for 5 minutes just to make sure there wasn't anything loading really slowly but no luck :-/ This issue is most noticeable in that the command prompt cursor the follows that bottom of the scroll which is usually flashing sticks and the system becomes unresponsive. I will try the systemd.unit command suggested and see what happens. If I get a chance to come on IRC at that time I will :-) |
I wonder if nouveau(fb) could cause this. Some people complained about these. For some it helped to add "modprobe.blacklist=nouveau" as a boot option, but for some it didn't #5829. |
I will try the setting the modprobe blacklist option and see what happens. Although I should not that this problem also happens on the minimal ISO. Not sure of noveau is included with that one? |
The part for KMS console is probably in there. |
Okay, I tested using that mobprobe.blacklist setting and the system seemed to get to the point that X would be started (Systemd output was cleared away and only cursor left at top of screen) and the machine then hard-locked and had to be switched off. I tried this again with the systemd.unit=rescue.target and the machine once again hard-locked. As an experiment, I entered my BIOS and enable the on-board Intel IGP and set it to be activated first and tried booting into NixOS again (Without the blacklist options though). Once again the machine hard-locked completely at the point where X would start. :-/ |
Hi. I know I'm rather late to the party, but I have an issue which looks really equivalent to this one: I've tried to install NixOS 14 and the pre 15 ISO on my ThinkPad X220. It fails withe the following lines in stage 1:
The above is listed ... 20 times or something... after that:
The above errors are printed with the 14.04 image as well as with the pre 15 image (The hashes are from pre 15). I tried several things, all resulting in this:
none succeeded. Can I somehow mount the |
(triage) bug still existent? |
Closing in the hopes of numerous kernel updates having solved the problem. We can re-open if it isn't solved. |
It still happens with 16.03 LiveUSB (ISO dd’ed directly to /dev/sdb) on my mom’s old netbook. Hmm. A pity it can’t be booted in non-UEFI mode. Instead of debugging this, I think I’ll get her hdd connected to my laptop and install from there. Will be less boring. =) |
I booted both in UEFI and in legacy mode yesterday from a freshly built ISO image from our company master which shouldn't have any relevant changes to code regarding the ISO. |
I saw #7132 (comment) about a week ago (with master at the time) but eventually I got it going with |
I |
Regarding @matthiasbeyer's comment on the error message
I believe this is actually offtopic, but this issue comes up in a Google search, so I want to repeat the solution here. I get that error when trying to boot from a USB drive where the label isn't sudo mlabel -i <device> -s ::"NIXOS_ISO " Note the spaces that pad the label name to exactly 11 characters. |
Changing the label to "NIXOS_ISO" fixed the issue for me as well. |
I am having this same I am on macOS so am not sure how to rename the partition. I tried I tried |
Never mind, I was able to change the label with:
However, I still get the same mounting error after booting into it, so it didn't seem to have the desired effect. Nonetheless, I still get EDIT: This is with |
By using rEFInd to alter the boot options (I looked at https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/stage-1-init.sh to get a sense of what they were) to:
I was able to see that /dev/root was not defined. However, any of the following boot variants allowed the ISO to be mounted:
However, this brings me to a totally different error immediately:
This is followed immediately by kernel panic. |
I have that same exact problem on Acer Swift 3 SF314-56-5403. UPDATE: After battling with NixOS for 4 days, I ended up installing it via Ubuntu LiveCD using this instruction. BTW, there is a relevant issue here but no advice from there helped in my case. |
I was having this problem too and eventually "solved" it by using an external SSD as bootable medium. I think there was something wrong with my USB stick. I ran into a similar sounding problem when trying to boot ubuntu from said USB stick. |
I just failed installing NixOS 19.09 using USB stick. Booting to USB immediately hangs with blank screen (with just one underbar character). So I ran EFI Shell and manually selected rEFInd.efi to boot. Not sure if this is correct way. I found instruction as @aethelz did, and successfully installed NixOS. FYI, here's my environment when I booted with Ubuntu 18.04 live CD:
|
Hello, I'm a bot and I thank you in the name of the community for opening this issue. To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human. The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them. Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel. |
If anyone is still running into this issue, the workaround is to edit the grub command prior to boot (press e while highlighting the default selection), or edit grub.cfg in the ISO. Change: |
I marked this as stale due to inactivity. → More info |
Still happening today, nixos-minimal-22.05.3147.b47d4447dc2-x86_64-linux.iso |
Nope, i cant hit 'e' to change anything. Once i see the weird graphical boot menu with oversized text and very slow to respond keystrokes, it just goes black screen as if i've selected something with enter. And i havent... |
I confirm this still happens on |
On my T100HA with |
Hi guys
Recently I decided try NixOS. First I downloaded the 14.12 x86_64 graphical ISO and tested it in virtualbox. Everything worked nicely so I decided to give it a go on my base hardware.
Currently my system is dual-booting Windows 7 Ultimate x86_64 and Sabayon Linux x86_64 (A deriviative of Gentoo Linux). My intention is to replace Sabayon with NixOS.
However, when booting from either a DVD or USB stick in UEFI mode, the boot process stalls at a random point. The system still responds to CTRL+ALT+DEL but boot proceeds no further and no error significant messages are displayed. Booting from the DVD in BIOS mode works fine however :-/
I modified the kernel parameters on the USB stick to using loglevel 7 (maximum logging) and tried booting three times in UEFI mode. Each team, the boot stalled at a different stage and no common logging messages where displayed that could indicate why. I used a phone to screencap each time, you can see the results at https://plus.google.com/photos/116682673061080912644/albums/6132475820380017041
Just to be sure, I also tested the latest ChakraOS live ISO via UEFI USB and it works fine.
I'd love to be able to give you guys better information on what's going wrong if you can give me some idea as to what information would prove useful.
The text was updated successfully, but these errors were encountered: