!oNSIfazDqEcwhcOjSL:matrix.org

disko

358 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko89 Servers

Load older messages


SenderMessageTime
12 Jul 2024
@lassulus:lassul.uslassulusmaybe the start of it is inside or on the end of it11:45:52
@lassulus:lassul.uslassulustrying to read the code now :)11:46:02
@nevrv:matrix.orgnrv
In reply to @nevrv:matrix.org
i'll try it, sec

the same;

Could not create partition 2 from 4096 to 1258295295
Unable to set partition 2's name to '06445541fb4bfc49161c5e8c7b7b431ea6c8'!
Could not change partition 2's type code to 8300!
Error encountered; not saving changes.
11:46:07
@nevrv:matrix.orgnrv
In reply to @lassulus:lassul.us
trying to read the code now :)
mine or generated?:P
11:46:50
@nevrv:matrix.orgnrvit looks fine. start offset is 1M/2048 sectors and the main partition is from 2M/4096 sector and on, after which there is nothing currently so it's fine11:48:36
@nevrv:matrix.orgnrv
In reply to @nevrv:matrix.org

this is dicko.nix https://0x0.st/XMUo.txt
this is it's output https://0x0.st/XMUT.txt built by nix run .#disko -- --dry-run --mode format --arg disks '[ "/dev/disk/by-id/nvme-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ]' ./disko.nix

the command that i'm running is sudo --preserve-env=NIX_PATH nix run .#disko -- --mode format --arg disks '[ "/dev/disk/by-id/nvme-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ]' ./disko.nix
disko rev is 786965e1b1ed3fd2018d78399984f461e2a44689

what i'm getting:

  • command log https://0x0.st/XMUQ.txt
  • the disk state after it is this:
Device                                                            Start     End Sectors Size Type
/dev/disk/by-id/nvme-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-part1 4194304 4196351    2048   1M BIOS boot

...for some reason

The resulting disk state is this btw
11:49:38
@nevrv:matrix.orgnrv
In reply to @nevrv:matrix.org

this is dicko.nix https://0x0.st/XMUo.txt
this is it's output https://0x0.st/XMUT.txt built by nix run .#disko -- --dry-run --mode format --arg disks '[ "/dev/disk/by-id/nvme-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ]' ./disko.nix

the command that i'm running is sudo --preserve-env=NIX_PATH nix run .#disko -- --mode format --arg disks '[ "/dev/disk/by-id/nvme-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ]' ./disko.nix
disko rev is 786965e1b1ed3fd2018d78399984f461e2a44689

what i'm getting:

  • command log https://0x0.st/XMUQ.txt
  • the disk state after it is this:
Device                                                            Start     End Sectors Size Type
/dev/disk/by-id/nvme-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-part1 4194304 4196351    2048   1M BIOS boot

...for some reason

* The resulting disk state is this though
11:49:53
@nevrv:matrix.orgnrvSeems that the first 1M one gets created incorrectly11:49:58
@nevrv:matrix.orgnrvBut why?11:50:02
@nevrv:matrix.orgnrvit's --new=1:0M:+1M11:50:24
@nevrv:matrix.orgnrv
In reply to @nevrv:matrix.org
The resulting disk state is this though
It's this, and the fact that it worked before once, all the way in with all zfs stuff mounted & fine
11:52:13
@nevrv:matrix.orgnrvThen i happily changed some datasets & mount settings and it broke again11:52:46
@nevrv:matrix.orgnrv * Then i happily changed some datasets & mount settings expecting that i can finally purge & rebuild it until i'm happy and it broke again11:53:19
@lassulus:lassul.uslassulushmm, I guess the start=0M confuses sgdisk11:53:59
@lassulus:lassul.uslassulusCould not create partition 1 from 8594128896 to 859413094311:54:00
@nevrv:matrix.orgnrvBut isn't it straight from example?11:54:21
@lassulus:lassul.uslassulusuh I hope not11:54:31
@lassulus:lassul.uslassulusit should be start=0, not 0M, but you should be able to leave it out11:54:44
@nevrv:matrix.orgnrvhmm, it isn't11:54:55
@nevrv:matrix.orgnrvapparently that's mine11:55:04
@nevrv:matrix.orgnrv examples just have size and no start 11:55:15
@lassulus:lassul.uslassulusyeah, start = 0 makes sgdisk automatically choose the next startpoint11:55:44
@lassulus:lassul.uslassulusso size is usually enough to set11:56:35
@nevrv:matrix.orgnrv...but it's not 011:56:40
@nevrv:matrix.orgnrvit's 0M11:56:42
@lassulus:lassul.uslassulusyeah, that seems to be confusing to sgdisk11:57:05
@lassulus:lassul.uslassulusmaybe a bug in there?11:57:12
@nevrv:matrix.orgnrvit's worked. Thank God11:59:35
@nevrv:matrix.orgnrv

changed 0M to 1M

11:59:45
@0x4a6f:matrix.org[0x4A6F]AFAIK "34s" is the first usable start point for partions on gpt table.11:59:45

Show newer messages


Back to Room ListRoom Version: 10