Skip to content

Instantly share code, notes, and snippets.

@expipiplus1
Created August 22, 2019 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save expipiplus1/710f8053251bd85dd2034cebded60711 to your computer and use it in GitHub Desktop.
Save expipiplus1/710f8053251bd85dd2034cebded60711 to your computer and use it in GitHub Desktop.
$ nix-build sd-image/sd-image.nix -A image -j2
these derivations will be built:
/nix/store/5zxpyy5sjvqwrny83nqdd1pkzpm2878x-ext4-fs.img.drv
/nix/store/yij2vz7ryggy2d9x80bzjazhyafqw3az-helios-4-sd.img.drv
waiting for locks or build slots...
building '/nix/store/5zxpyy5sjvqwrny83nqdd1pkzpm2878x-ext4-fs.img.drv'...
Creating an EXT4 image of 3079606272 bytes (numInodes=99643, numDataBlocks=552571)
mke2fs 1.45.3 (14-Jul-2019)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /nix/store/r6jrcn57mhqyp9s8iaim60q8khmfgl07-ext4-fs.img is mounted.
warning: Unable to get device geometry for /nix/store/r6jrcn57mhqyp9s8iaim60q8khmfgl07-ext4-fs.img
Discarding device blocks: done
Creating filesystem with 751857 4k blocks and 188048 inodes
Filesystem UUID: 44444444-4444-4444-8888-888888888888
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
can't open fsimg /nix/store/r6jrcn57mhqyp9s8iaim60q8khmfgl07-ext4-fs.img: Value too large for defined data type
/nix/store/wcpxj2qh99kcdcvilmlzisqjm36jvh7z-stdenv-linux/setup: line 1305: 708 Segmentation fault cptofs -t ext4 -i $out nix-path-registration /
builder for '/nix/store/5zxpyy5sjvqwrny83nqdd1pkzpm2878x-ext4-fs.img.drv' failed with exit code 139
cannot build derivation '/nix/store/yij2vz7ryggy2d9x80bzjazhyafqw3az-helios-4-sd.img.drv': 1 dependencies couldn't be built
error: build of '/nix/store/yij2vz7ryggy2d9x80bzjazhyafqw3az-helios-4-sd.img.drv' failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment