Skip to content
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

Installer can't mount /dev/root on MBP M1 #60

Closed
nik012003 opened this issue Mar 7, 2023 · 4 comments
Closed

Installer can't mount /dev/root on MBP M1 #60

nik012003 opened this issue Mar 7, 2023 · 4 comments

Comments

@nik012003
Copy link

nik012003 commented Mar 7, 2023

Hello, I'm facing the same exact problem as #17 .
After dd'ing the generated iso to the usb drive and successfully booting grub and the kernel, it prints:
mount: mounting /dev/root on /mnt-root/iso failed: No such file or directory
I tried unplugging and replugging the usb while in the interactive shell, and it's recognized as /dev/sda, but I can't mount and fdisk says:
Disk /dev/sda doesn't contain a valid partition table

EDIT: using the .iso from the releases worked fine, so it's either an issue with my build or the newer versions of the packages included in the latest build process

@tpwrules
Copy link
Owner

tpwrules commented Mar 8, 2023

How exactly did you build the .iso? Did you use the same nixpkgs version as the release?

The release .iso might have worked by chance. This failure to mount is intermittent in my experience, even with the same computer, .iso, and flash drive.

@nik012003
Copy link
Author

I followed the steps defined here: https://github.com/tpwrules/nixos-apple-silicon/blob/main/docs/uefi-standalone.md
Executed those commands on arch linux on arm.

@tpwrules
Copy link
Owner

I followed those steps exactly on my M1 Max MBP and got four successful boots and one failed boot. There must be a race condition or timing issue. It sounds like you did nothing wrong, you just got unlucky and didn't try again. There's not much I can do about that.

@theoparis
Copy link

theoparis commented Sep 18, 2024

I'm running into this same problem with a M2 MBP, but I got this instead of no such file or directory: mount: mounting /dev/loop0 on /mnt-root/nix/.ro-store failed: invalid argument.

I used this to flash the ISO: sudo dd if=/nix/store/vp1kpyhgmsfrai26rxjl5m8nld2rv4ji-nixos-24.11.20240918.1b8c065-aarch64-linux.iso-aarch64-unknown-linux-gnu/iso/nixos-24.11.20240918.1b8c065-aarch64-linux.iso of=/dev/sdb status=progress bs=4M

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants