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

Volume on disk3s7 failed to mount #1284

Open
Phoeenix05 opened this issue Nov 11, 2024 · 8 comments
Open

Volume on disk3s7 failed to mount #1284

Phoeenix05 opened this issue Nov 11, 2024 · 8 comments
Labels
MacOS Darwin/MacOS

Comments

@Phoeenix05
Copy link

Error

Error: 
   0: Install failure
   1: Error executing action
   2: Action `create_nix_volume` errored
   3: Action `encrypt_apfs_volume` errored
   4: Failed to execute command with status 1 `"/usr/sbin/diskutil" "mount" "Nix Store"`, stdout: 
      stderr: Volume on disk3s7 failed to mount


Metadata

key value
version 0.27.1
os macos
arch aarch64
@cole-h cole-h added the MacOS Darwin/MacOS label Nov 17, 2024
@cole-h cole-h changed the title <autogenerated-issue> Volume on disk3s7 failed to mount Nov 17, 2024
@cole-h
Copy link
Member

cole-h commented Nov 17, 2024

That's interesting. What does diskutil info disk3s7 say about the disk? Is this an organization-managed device?

@Phoeenix05
Copy link
Author

I'm sorry, I cannot provide more info as I decided to use the official nix installer right after I made this report. But no this is my own MacBook not organization managed. If it helps my MacBook is a base 14" M1 Pro.

@Phoeenix05
Copy link
Author

Also, I upgraded to Sequoia and reset my machine before installing nix.

@defaude
Copy link

defaude commented Nov 29, 2024

Trying to install on a completely fresh MBP 14", 2001 (with M1 Pro CPU) using running Sequoia (15.1.1).

Fails immediately with this output:

 INFO Step: Create an encrypted APFS volume `Nix Store` for Nix on `disk3` and add it to `/etc/fstab` mounting on `/nix`
ERROR Error saving receipt: RecordingReceipt("/nix" OS { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" })
ERROR
    0: Install failure
    1: Error executing action
    2: Action `create_nix_volume` errored
    3: Action `encrypt_apfs_volume` errored
    4: Failed to execute command `"/usr/sbin/diskutil" "moint" "Nix Store"`
       stdout:
       stderr: Volume on disk3s7 failed to mount

    4: exited with status code: 1
    4:

Location:
    src/cli/subcommand/install.rs:259

Yes, it is a machine that's managed by an organization.

@cole-h
Copy link
Member

cole-h commented Dec 2, 2024

We actually released 0.30.2 which (we hope) includes a workaround for this, would you be willing to give that a shot?

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix/tag/v0.30.2 | \
  sh -s -- install

@defaude
Copy link

defaude commented Dec 3, 2024

That worked like a charm, thank you so much! Output after the "Proceed?" prompt looks like this:

 INFO Step: Create an encrypted APFS volume `Nix Store` for Nix on `disk3` and add it to `/etc/fstab` mounting on `/nix`
 INFO Step: Provision Nix
 INFO Step: Create build users (UID 351-382) and group (GID 350)
 INFO Step: Configure Time Machine exclusions
 INFO Step: Configure Nix
 INFO Step: Configuring zsh to support using Nix in non-interactive shells
 INFO Step: Create a `launchctl` plist to put Nix into your PATH
 INFO Step: Configure upstream Nix daemon service
 INFO Step: Remove directory `/nix/temp-install-dir`
Nix was installed successfully!
To get started using Nix, open a new shell or run `. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh`

@philschonholzer
Copy link

Got this also just now on a factory reseted MacBook

Error

Error: 
   0: Install failure
   1: Error executing action
   2: Action `create_nix_volume` errored
   3: Action `encrypt_apfs_volume` errored
   4: Failed to execute command `"/usr/sbin/diskutil" "mount" "Nix Store"`
      stdout: 
      stderr: Volume on disk3s7 failed to mount

   4: exited with status code: 1

Metadata

key value
version 0.32.2
os macos
arch aarch64

@philschonholzer
Copy link

After running v0.30.2 it worked, but I guess it would have worked the second time also running v0.32.2 again.

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

No branches or pull requests

4 participants