!oNSIfazDqEcwhcOjSL:matrix.org

disko

171 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko55 Servers

Load older messages


SenderMessageTime
12 Jul 2024
@nevrv:matrix.orgnrv At first i think miscalculated the sizes. sgdisk would say cannot make partition and refuse going further. That is ok.
But then this, and also partprobe broke and said to reboot, and also sgdisk were spitting random numbers instead of ones that i give to it
09:48:07
@nevrv:matrix.orgnrv
In reply to @lassulus:lassul.us
during formating or booting?
Formatting, i use --mode format
09:48:26
@nevrv:matrix.orgnrv
In reply to @nevrv:matrix.org
At first i think miscalculated the sizes. sgdisk would say cannot make partition and refuse going further. That is ok.
But then this, and also partprobe broke and said to reboot, and also sgdisk were spitting random numbers instead of ones that i give to it
Ah and the important part that it worked once! But only once. I can't reproduce it with the same config
09:48:52
@nevrv:matrix.orgnrvThis is insanity09:49:03
@lassulus:lassul.uslassulusmaybe some partition of the disk is in use? are you doing this from a live image? what does the config look like09:49:16
@nevrv:matrix.orgnrvThe config is... complicated in addition to all the trouble, i'm trying to do 1M BIOS offset + 600G luks zfs and then -1G reserve at the end and -512M off that ESP -4096 off that ext4 boot. For the time being i commented out the end part and try to create only the BIOS + main partition part. No part of the disk is in use. I blkdiscarded and sgdisk --zapped it and rebooted and partprobed and whatever multiple times. It is also healthy disk that i can manually partition and use09:54:00
@nevrv:matrix.orgnrv * The config is... complicated in addition to all the trouble, i'm trying to do 1M BIOS offset + 600G luks zfs and then -1G reserve at the end and -512M off that ESP -4096 off that ext4 boot. So, ESP and another boot partition counting from the end. For the time being i commented out the end part and try to create only the BIOS + main partition part. No part of the disk is in use. I blkdiscarded and sgdisk --zapped it and rebooted and partprobed and whatever multiple times. It is also healthy disk that i can manually partition and use09:54:40
@nevrv:matrix.orgnrv * The config is... complicated in addition to all the trouble, i'm trying to do 1M BIOS offset + 600G luks zfs and then -1G reserve at the end and -512M off that ESP -4096 off that ext4 boot. So, ESP and another boot partition counting from the end, leaving a lot of space to possibly expand the ZFS later (1T drive). For the time being i commented out the end part and try to create only the BIOS + main partition part. No part of the disk is in use. I blkdiscarded and sgdisk --zapped it and rebooted and partprobed and whatever multiple times. It is also healthy disk that i can manually partition and use09:55:18
@nevrv:matrix.orgnrv * The config is... complicated in addition to all the trouble, i'm trying to do 1M BIOS offset + 600G luks zfs and then -1G reserve at the end and -512M off that ESP -4096 off that ext4 boot. So, ESP and another ext4 boot partition counting from the end, leaving a lot of space to possibly expand the ZFS later (1T drive). For the time being i commented out the end part and try to create only the BIOS + main partition part. No part of the disk is in use. I blkdiscarded and sgdisk --zapped it and rebooted and partprobed and whatever multiple times. It is also healthy disk that i can manually partition and use09:55:37
@nevrv:matrix.orgnrv * The config is... complicated in addition to all the trouble, i'm trying to do 1M BIOS offset + 600G luks zfs and then -1G reserve at the end and -512M off that ESP -4096 off that ext4 boot. So, ESP and another ext4 boot partition counting from the end, leaving a lot of space to possibly expand the ZFS later (1T drive). For the time being i commented out the end part and try to create only the BIOS + main partition part. No part of the disk is in use. I blkdiscarded and sgdisk --zapped it and rebooted and partprobed and whatever multiple times. It is also healthy disk that i can manually partition with luks/zfs/ext4 and use09:56:48
@nevrv:matrix.orgnrv * The config is... complicated in addition to all the trouble, i'm trying to do 1M BIOS offset + 600G luks zfs and then -1G reserve at the end and -512M off that ESP -4096 off that ext4 boot. So, ESP and another ext4 boot partition counting from the end, leaving a lot of space to possibly expand the ZFS later (1T drive) OR use it for something else. For the time being i commented out the end part and try to create only the BIOS + main partition part. No part of the disk is in use. I blkdiscarded and sgdisk --zapped it and rebooted and partprobed and whatever multiple times. It is also healthy disk that i can manually partition with luks/zfs/ext4 and use09:58:58
@nevrv:matrix.orgnrvSo, sgdisk commands succeed, but then there is no cryptsetup in the log. It is in the script though, but refers to hardcoded random partlabels(?), dunno how that works, are they static and calculated at build time?10:01:27
@nevrv:matrix.orgnrv * So, sgdisk commands succeed, but then there is no cryptsetup in the log. It is in the script though, but refers to hardcoded random partlabels(?), dunno how that works, are they static and calculated at build time? They seem to exist10:02:30
@nevrv:matrix.orgnrv /tmp/secret.key is also created10:03:08
@nevrv:matrix.orgnrvi did actually forget that before and the error was different and intelligible of the issue10:03:33
@nevrv:matrix.orgnrv..so it's failed to open keyfile10:16:55
@nevrv:matrix.orgnrvbut cat /tmp/secret.key works10:17:08
@nevrv:matrix.orgnrv (and of course it's not in the logs, disabled explicitly for the cat but not for the cryptsetup so hmm) 10:19:32
@nevrv:matrix.orgnrv * (and of course it's not in the logs, disabled with +x explicitly for the cat but not for the cryptsetup so hmm) 10:19:44
@nevrv:matrix.orgnrvalso, disko completely misses this error and proceeds with the zfs stuff10:20:44
@nevrv:matrix.orgnrv * ..so it's failed to open keyfile (the pipe substitution or whatever it's called in bash)10:22:28
@nevrv:matrix.orgnrv * ..so it's failed to open keyfile (the pipe substitution of cat or whatever it's called in bash) 10:22:40
@nevrv:matrix.orgnrv * ..so it's failed to open keyfile (the process substitution of cat) 10:23:34
@nevrv:matrix.orgnrv * ..so it's failed to open keyfile (the process substitution of cat /tmp/secret.key) 10:23:44
@nevrv:matrix.orgnrv * (and of course it's not in the logs, disabled with +x explicitly for the cat but not for the cryptsetup so hmm, maybe the big ( ) subshell captures it?) 10:24:56
@lassulus:lassul.uslassulushmm, weird, I don't see any code that ignores the cryptsetup error. like it should fail if cryptsetup fails. The partlabels are calculated inside the gpt type and are used onwards from there10:26:11
@nevrv:matrix.orgnrv * At first i think i miscalculated the sizes. sgdisk would say cannot make partition and refuse going further. That is ok.
But then this, and also partprobe broke and said to reboot, and also sgdisk were spitting random numbers instead of ones that i give to it
10:26:13
@lassulus:lassul.uslassulusbut you can also overwrite the labels there, if they are too long, they are changed to a hash10:33:30
@nevrv:matrix.orgnrvcould it be that sgdisk --clear doesn't work properly and there's still partitions on the disk when i run disko multiple times?10:38:05
@nevrv:matrix.orgnrveven though it runs --clear and partprobe and everything10:38:17

Show newer messages


Back to Room ListRoom Version: 10