disko | 339 Members | |
| disko - declarative disk partitioning - https://github.com/nix-community/disko | 86 Servers |
| Sender | Message | Time |
|---|---|---|
| 10 Nov 2025 | ||
| This is my config:
| 18:02:47 | |
| I've discussed this in #users:nixos.org and it seems that subvolumes are created but are not used; all my files store in the root, and the subvolumes are empty | 18:04:14 | |
| * Okay I'm going crazy, I just reinstalled my system with nixos-anywhere (using bcachefs) since it didn't boot anymore | 18:04:32 | |
| Link to that discussion: https://matrix.to/#/!6oudZq5zJjAyrxL2uY:0upti.me/$nd9QnFGo3-5Q9JB3tgef3V0_PyyaGoEqR_rdyyPITCY?via=laas.fr&via=matrix.org&via=node.marinchik.ink | 18:06:42 | |
| Now I just don't know how to fix, I even tried to move files from the root to the subvolumes; it still fails | 18:07:12 | |
| I've been having the same issue, I cant get my system to boot with root on bcachefs using disko. The filesystem exists, I can mount create and view files but the system just doesnt boot. I can boot off another fs and have disko create and mount drives other than root. Was trying to debug more before I posted anything. | 21:57:34 | |
| * I've been having the same issue, I cant get my system to boot with root on bcachefs using disko. The filesystem exists, I can mount create and view files but the system just doesnt boot. I can boot off another fs and have disko create and mount drives other than root. Was trying to debug more before I posted anything. Been feeling a little crazy cause I couldn't find any mention of the issue, almost glad to see its not just me | 22:01:25 | |
| 11 Nov 2025 | ||
| Okay I'm pretty sure it's related to: https://github.com/nix-community/disko/issues/1045 | 00:27:23 | |
| 00:28:16 | ||
| And (thanks ElvishJerrico and dramforever) actually I think people didn't realized this because mount were broken: https://github.com/NixOS/nixpkgs/pull/414391 | 00:29:01 | |
| The issue is indeed related to the subvolumes: I think they are created, but they aren't mounted end all the files go into the root as descrived in the issue. I couldn't get them to work even by moving the files where they should be (inside the subvolumes) | 00:30:36 | |
| Now I got it to work (in the 5th install of the day) by avoiding subvolumes until this is fixed :) | 00:31:15 | |
| As I expected you're creating subvolumes. It should be the same issue | 00:32:53 | |
| 12 Nov 2025 | ||
| I have been wanting to add disko to my flake for a while now, but I am uncertain as how to do that without losing any data on disk. I have been running nixos at home for about 2 years now and I would like to up my game by introducing disko, with future installs/reinstalls in mind. But I am afraid that when I add it that my disks will get formatted according to the disk config I will have created. Is there an onboarding/getting started guide somewhere for adding disko to existing systems? | 07:09:13 | |
| they are not getting formatted if you add disko, but they will get mounted according to it | 07:21:57 | |
| so if you add something that is not what you currently have, you could not boot it | 07:22:16 | |
| but rollback should still work in that case | 07:22:23 | |
| so besides not being able to boot (which I could solve with a live-usb and mounting manually), there are no dangers to my data when adopting disko? cool! | 07:23:59 | |
| well there is also rollback when booting, you can just boot an older generation without the usb | 07:27:56 | |
| but disko is not run automatically, only nixos-anywhere or disko-install is running disko | 07:28:17 | |
| or if you run it manually | 07:28:21 | |
| ooooooooooh, gotcha | 07:28:41 | |
| awesome, tnx! | 07:28:48 | |
| a downside of that model is: if you add new volumes, pools, mount or something in your disko config, it will not automatically apply without reinstalling | 07:29:33 | |
| in theory you can run the format script again, it has some checks to not delete data | 07:29:58 | |
| but that is not super tested, so better do it with backups | 07:30:10 | |
| Agreed. That is also not my goal. what I want to do is to migrate my current snowfall based config for my machines at home to a clan based one, and the only hurdle I saw was the adoption of disko. But knowing that disko is not really ran outside of install or manual invocations I can happily do my migration. If and when I ever do end up reconfiguring my disk I get it that the best course of action is to first to a backup, but then again, this would have been the flow if I'd done it all manually anyway! So again, thanks for dispelling my worries! | 07:35:57 | |
| 12:38:55 | ||
| 13 Nov 2025 | ||
| 09:40:01 | ||
| 20:24:28 | ||