Any Idea why I'm unable to update #NixOS due to "No space left on device" even if there are 23G available?
Edit: The issue was caused by number of inodes.
this path will be fetched (458.58 MiB download, 464.67 MiB unpacked):
/nix/store/4mc1wf8b6jad08wlfqaw6zvv7007d51d-linux-firmware-20240513-zstd
copying path '/nix/store/4mc1wf8b6jad08wlfqaw6zvv7007d51d-linux-firmware-20240513-zstd' from 'https://cache.nixos.org'...
building '/nix/store/l4drcr95rzznb9n18rl95cjhzrvwi96q-system-path.drv'...
error: mkdir /nix/store/swcchba29bqmm9mjfgs7flsmhw1fw4wg-system-path//share/locale/az: No space left on device at /nix/store/x65ah6kl9sqjwp4pqm0fn9kb20bc0974-builder.pl line 267.
error: builder for '/nix/store/l4drcr95rzznb9n18rl95cjhzrvwi96q-system-path.drv' failed with exit code 28
error: 1 dependencies of derivation '/nix/store/6zlwarcc34qv5h2rfq2pj83h7zzcimm8-nixos-system-hikari-24.05pre628669.6c0b7a92c301.drv' failed to build
nixpkgs > df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 395M 0 395M 0% /dev
tmpfs 3.9G 16K 3.9G 1% /dev/shm
tmpfs 2.0G 4.3M 2.0G 1% /run
tmpfs 3.9G 1.1M 3.9G 1% /run/wrappers
/dev/dm-0 102G 74G 23G 77% /
/dev/sda1 511M 200M 312M 40% /boot/efi
tmpfs 789M 44K 789M 1% /run/user/1000
Pol Dellaiera
in reply to Daniel Siepmann • • •Daniel Siepmann
in reply to Pol Dellaiera • •Well, it indeed was inodes as mentioned in https://fosstodon.org/@phaer/112474210853953708 .
I always keep last three generations of my user profile and system profile.
Not sure why it is an issue on that machine after using the setup more than a year now.
Your command seems to remove all the old generations … I always ran
nix store gc
after deleting all generations older than 3 for system and user and 12 days for home-manager. I typically update once a week.I've now run your command and reduced the number of generations to two. Let's see how long this will work from now on.
Thank you :)
Daniel Siepmann
in reply to Pol Dellaiera • •I had another look today. I still use channels and it looks like every channel is added as root and not garbage collected via my usual commands.
Any idea where I can find further info on how to delete no longer used channels as roots? That should solve all issues I guess.
The issue only seems to exist for the #NixOS, not home-manager.
https://git.daniel-siepmann.de/danielsiepmann/nixpkgs/src/branch/main/home/packages/custom/update-nixos-system/default.nix is my current script to update and clean things up.
Pol Dellaiera
in reply to Daniel Siepmann • • •NixOS Discourse
NixOS DiscourseDaniel Siepmann
in reply to Pol Dellaiera • •TheDragon
in reply to Daniel Siepmann • • •Daniel Siepmann
in reply to TheDragon • •phaer
in reply to Daniel Siepmann • • •Daniel Siepmann likes this.
Robert Hensing
in reply to phaer • • •Daniel Siepmann
in reply to phaer • •Thanks, indeed it looks like that's the issue:
Quentin Stafford-Fraser
in reply to Daniel Siepmann • • •Daniel Siepmann
in reply to Quentin Stafford-Fraser • •Thanks, indeed. That was already suggested and indeed was the case.
https://fosstodon.org/@phaer/112474210853953708
Peder Bergebakken Sundt
in reply to Daniel Siepmann • • •What to do with a full /boot partition?
NixOS DiscourseDaniel Siepmann
in reply to Peder Bergebakken Sundt • •