disko | 356 Members | |
| disko - declarative disk partitioning - https://github.com/nix-community/disko | 89 Servers |
| Sender | Message | Time |
|---|---|---|
| 22 May 2025 | ||
| for systemd initrds this one seems to work around it: https://git.chir.rs/darkkirb/nixos-config/raw/branch/main/modules/bcachefs.nix | 16:34:44 | |
| 22:16:42 | ||
| hi all, Im attempting to use disko to replicate the partitioning and formatting steps as described by the nixos manual this is what I have so far
sorry for any typos, Im literally having to copy this from the tty evidently, the above did not work with I got an error that I will try to get word-for-word here (I cant quite yet get it, because I cant scroll in tty and havent used a pager yet) but the error was related to “cannot create name disk-main-root”, and then “cannot set code 8300” | 22:32:13 | |
| let me try getting the exact error, one second | 22:32:22 | |
Unable to set partition 2’s name to ‘disk-main-root’!Could not change partition 2’s type code to 8300! | 22:33:25 | |
| could anyone help me with? | 22:33:54 | |
| again, im just trying to replicate the steps from the nixos manual (https://nixos.org/manual/nixos/stable/#sec-installation) | 22:34:59 | |
| i’ve also tried adding for some reason, | 22:49:04 | |
for reference, an ls into /dev/disk/by-partlabel when following the instructions (https://nixos.org/manual/nixos/stable/#sec-installation-manual-partitioning-UEFI) gives ESP root swap, but the above disko config is giving me a disk-main-ESP, as is expected by the erroneous switch of sgdisk | 23:00:24 | |
im noticing the same behavior with simple.efi (https://raw.githubusercontent.com/nix-community/disko/refs/heads/master/example/simple-efi.nix) | 23:27:04 | |
| 23 May 2025 | ||
| it seems the end of your ESP partition is on the same block as your root partition | 07:08:30 | |
| and it's end overlaps with the swap partition | 07:08:40 | |
| if you want to override the label, you need to set label on the partition | 07:08:54 | |
| 14:26:16 | ||
| so, concretely, I need to use a also, how does my ESP partition overflow into my other partitions? the only way that I can think of is if so you’re saying that both | 18:30:01 | |
| I say its weird because this how we make the partitions according to the nixos manual mkpart ESP fat32 1MB 512MB mkpart root ext4 512MB -8GB mkpart swap linux-swap -8GB 100% | 18:31:29 | |
| so I quite literally just attempted copying that | 18:31:40 | |
| yes, they are sadly inclusive, not sure why sgdisk was built that way :D | 18:33:05 | |
| thats why I usually leave start empty, because 0 will pick the next empty space | 18:33:32 | |
| ah so its sgdisk’s fault. alright, thanks! | 18:33:52 | |
| I thought about different ways to fix that in disko, but nothing good comes to mind, maybe there is a way to do a 1 block addition in the specification? but on my last search I didn't find anything | 18:35:05 | |
| 24 May 2025 | ||
| 13:01:58 | ||
| 14:28:29 | ||
| 17:25:10 | ||
| 17:25:21 | ||
| 25 May 2025 | ||
Hello. I'm trying to set up a VM using a flake and disko, but the flake fails to build due to an sgdisk error ("Could not create partition 1"). What am I doing wrong? | 22:26:30 | |
| you need to set imageSize on the disk type | 22:34:37 | |
| the default is just 2G | 22:34:48 | |
| 22:41:07 | ||
In reply to @lassulus:lassul.usThank you, I'll give it a shot! | 22:50:33 | |