!oNSIfazDqEcwhcOjSL:matrix.org

disko

363 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko92 Servers

Load older messages


SenderMessageTime
30 May 2024
@waltmck:matrix.orgwaltmck

the output for sgdisk --zap-all /dev/md/raid1 was

Warning! Disk size is smaller than the main header indicates! Loading
secondary header from the last sector of the disk! You should use 'v' to
verify disk integrity, and perhaps options on the experts' menu to repair
the disk.
Warning! One or more CRCs don't match. You should repair the disk!
Main header: OK
Backup header: OK
Main partition table: OK
Backup partition table: ERROR

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
11:43:32
@waltmck:matrix.orgwaltmckgreat that fixed everything11:46:36
@lillecarl:matrix.orglillecarl lassulus: Out of curiosity, would changing the size of partitions resolve this? Since /dev/md/raid1 header would be at a different location.... right? 12:37:49
@lassulus:lassul.uslassulusnot sure, probably12:38:46
1 Jun 2024
@relichunter:nitro.chatrelichunter joined the room.21:46:01
2 Jun 2024
@bumperboat:matrix.orgbumperboat (UTC+7) changed their display name from bumperboat (UTC+7) to bumperboat (UTC+1).05:28:59
4 Jun 2024
@raitobezarius:matrix.orgraitobezarius (DECT: 7248) changed their display name from raitobezarius (DECT: 7248) to raitobezarius.11:15:39
@tanja:catgirl.cloudTanja (☎️ 6920 at GPN22, she/her) changed their display name from Tanja (☎️ 6920 at GPN22, she/her) to Tanja (she/her).18:51:48
@netpleb:matrix.orgnetpleb joined the room.21:52:57
6 Jun 2024
@swendel:curious.bio@swendel:curious.bio joined the room.18:47:34
8 Jun 2024
@wieldable9080:matrix.im🎈 Always joined the room.14:55:35
@wieldable9080:matrix.im🎈 Always

hello to all fellow disko dancers/lovers
the drive is encrypted, and every time i boot it waits for this swap, but it's not there

                content = {
                  type = "btrfs";
                  extraArgs = ["-f"];
                  subvolumes = {
                    "/@SWAP" = {
                      mountpoint = "/.swapvol";
                      swap.swapfile.size = "(people will start asking why so much swap)G";
                    };
                  };
                };
14:58:37
@lassulus:lassul.uslassulusmaybe you want to set swap.swapfile.path instead of mountpoint?15:14:36
@lassulus:lassul.uslassulusbut there is also a default value for that15:17:06
@lassulus:lassul.uslassulusso maybe you don't need mountpoint?15:17:12
@wieldable9080:matrix.im🎈 Always
In reply to @lassulus:lassul.us
maybe you want to set swap.swapfile.path instead of mountpoint?
this is the easy way of doing this :D
15:18:37
@wieldable9080:matrix.im🎈 Always
In reply to @lassulus:lassul.us
so maybe you don't need mountpoint?
btrfs subvolume swap has its pros, also it just looks nice
15:19:05
@lassulus:lassul.uslassulushmm, ok, reading the code again, it should also work with a mountpoint set15:20:24
@wieldable9080:matrix.im🎈 Alwaysdoing btrfs swapfile outside of a separate volume is probably a bad idea (has something to do with compression i think)15:20:26
@wieldable9080:matrix.im🎈 Always
In reply to @lassulus:lassul.us
hmm, ok, reading the code again, it should also work with a mountpoint set
i think i took this code from the main repo :D
15:20:55
@wieldable9080:matrix.im🎈 Alwaysi mean, except the subvolume naming15:21:12
@lassulus:lassul.uslassuluswhats the error you see on boot?15:24:17
@wieldable9080:matrix.im🎈 Always
In reply to @lassulus:lassul.us
whats the error you see on boot?
timeout waiting for the device which somewhere shows as this swap swap
15:25:34
@wieldable9080:matrix.im🎈 Always
In reply to @lassulus:lassul.us
whats the error you see on boot?
*
15:25:41
9 Jun 2024
@magic_rb:matrix.redalder.orgmagic_rb joined the room.14:19:18
11 Jun 2024
@thevilsol:matrix.orgVilsolWhat is the intended way of using disko when doing a clean install with an existing config? Or do I need to do a non-graphical (manual) install?10:12:25
@sigmasquadron:matrix.orgSigmaSquadron
In reply to @thevilsol:matrix.org
What is the intended way of using disko when doing a clean install with an existing config? Or do I need to do a non-graphical (manual) install?
Get your hardware configuration, and delete the fileSystems options. Import your disko configuration in your configuration.nix, and use disko-install to format and install the system.
11:45:09
@netpleb:matrix.orgnetplebif I want disko to make a partition but not cause the partition to be formatted or mounted, how do I do that?16:33:19
@wieldable9080:matrix.im🎈 Always
In reply to @netpleb:matrix.org
if I want disko to make a partition but not cause the partition to be formatted or mounted, how do I do that?
Ammm, I saw this message and came to find out, like, what do you mean by "make"??
16:34:13
@netpleb:matrix.orgnetpleb
In reply to @wieldable9080:matrix.im
Ammm, I saw this message and came to find out, like, what do you mean by "make"??
I have a disk-config.nix that does my partitioning for whenever provision a new instance of this type of machine (so I am just using nixos-anywhere ...). Can I just leave out the mountPoint and mountOptions in that disk-config?
16:38:09

Show newer messages


Back to Room ListRoom Version: 10