| 8 May 2025 |
@nemnix:matrix.org | However, after rebooting (I'm installing NixOS using nixos-anywhere), the disk doesn't appear. Any idea what might be going wrong? | 20:51:32 |
lassulus | what does disk point to? | 21:09:49 |
@nemnix:matrix.org | /dev/disk/by-partlabel/labelofdisk | 21:11:31 |
lassulus | huh this seems a bit recursive? or how do you create that label? | 21:17:18 |
@nemnix:matrix.org | nothing just the disko config and install via nixos-anywhere command | 21:18:40 |
lassulus | ah wait then it's the label of the live environment | 21:19:06 |
lassulus | so you basically install it into the live system, weird that this works though | 21:19:20 |
lassulus | I would have guessed stuff would break after formatting the nix store | 21:19:35 |
@nemnix:matrix.org | it's the name of the disk ? | 21:21:11 |
@nemnix:matrix.org | like if a remember correctly it's nixos-smtg-root | 21:21:36 |
@nemnix:matrix.org | * it's not the name of the disk ? | 21:21:47 |
lassulus | usually it should point to something like /dev/sda or /dev/disk/by-id/something | 21:22:32 |
lassulus | because old labels get removed by disko (since it reformats the disk) | 21:22:56 |
@nemnix:matrix.org | I don't have more info as everything brokes | 21:23:03 |
@nemnix:matrix.org | the disk are cleans sooo | 21:23:26 |
lassulus | yeah so I guess it's the kexec environment which has that label? | 21:23:52 |
lassulus | or the live iso, if you install into an installer | 21:24:10 |
@nemnix:matrix.org | I don't know—I'm clueless and a bit tired of this. I tried bare metal and VM, same result | 21:24:27 |
lassulus | well just look into /dev/disk/by-id and take a device from there and put that into the value of disk | 21:26:09 |
@nemnix:matrix.org | Okay, let's try again | 21:26:57 |
@nemnix:matrix.org | But how can I get the uuid of fresh new disk ? | 21:29:10 |
lassulus | disks don't have uuids, just ids, you can try booting a live iso on the machine or run only the kexec phase of nixos-anywhere (although you need to run with another key in that case) | 21:30:38 |
@nemnix:matrix.org | I'm have a booted a live iso into the machine, what should I do now ? | 21:31:24 |
@nemnix:matrix.org | * I'm have booted a live iso into the machine, what should I do now ? | 21:32:01 |
lassulus | ls -la /dev/disk/by-id | 21:33:33 |
@nemnix:matrix.org | and copy the value or all the path ? | 21:34:04 |
lassulus | choose one path that points to something like /dev/nvme0n1 or /dev/sda or /dev/vda | 21:34:42 |
lassulus | so you can put something like disk = "/dev/disk/by-id/nvme-WD_BLACK_SN770_2TB_23091X804020"; into your disko config | 21:35:24 |
@nemnix:matrix.org | Okay I'll try in bare metal | 21:36:06 |
projectinitiative | Totally missed these, life's been pretty hectic these past few weeks, but glad to see the work being pushed forward! | 21:46:40 |