!oNSIfazDqEcwhcOjSL:matrix.org

disko

382 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko97 Servers

Load older messages


SenderMessageTime
19 Feb 2026
@dokkodo:dokkodo.medokkodo joined the room.17:24:24
21 Feb 2026
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)mpt3sas?10:30:35
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)yes, that worked10:47:54
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)thank you10:47:55
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)but now its just a black screen after boot10:48:02
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)hmm10:48:03
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)image.png
Download image.png
10:48:46
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)image.png
Download image.png
11:00:56
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)image.png
Download image.png
17:31:22
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)it was modeset17:31:25
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)but this is the real problem ^17:31:30
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)

● zfs-import-dpool.service - Import ZFS pool "dpool"
Loaded: loaded (/etc/systemd/system/zfs-import-dpool.service; enabled; preset: ignored)
Active: activating (start) since Sat 2026-02-21 20:07:49 EET; 9s ago
Job: 775
Invocation: 05ae6b72b3fd451b9645bf37d15f51e5
Main PID: 46337 (zfs-import-dpoo)
IP: 0B in, 0B out
IO: 403.4M read, 0B written
Tasks: 2 (limit: 309192)
Memory: 3.8M (peak: 31.6M)
CPU: 1.560s
CGroup: /system.slice/zfs-import-dpool.service
├─46337 /nix/store/f15k3dpilmiyv6zgpib289rnjykgr1r4-bash-5.3p9/bin/bash /nix/store/7pq6iigrnrf05qlkmp9gqk72j806nwgw-unit-script-zfs-import-dpool-start/bin/zfs-import-dpool-start
└─48644 sleep 1

Feb 21 20:07:54 tailstack zfs-import-dpool-start[47498]: The pool can be imported, use 'zpool import -f' to import the pool.
Feb 21 20:07:55 tailstack zfs-import-dpool-start[47827]: cannot import 'dpool': pool was previously in use from another system.
Feb 21 20:07:55 tailstack zfs-import-dpool-start[47827]: Last accessed by nixos (hostid=8425e349) at Sat Feb 21 19:22:46 2026
Feb 21 20:07:55 tailstack zfs-import-dpool-start[47827]: The pool can be imported, use 'zpool import -f' to import the pool.
Feb 21 20:07:57 tailstack zfs-import-dpool-start[48154]: cannot import 'dpool': pool was previously in use from another system.
Feb 21 20:07:57 tailstack zfs-import-dpool-start[48154]: Last accessed by nixos (hostid=8425e349) at Sat Feb 21 19:22:46 2026
Feb 21 20:07:57 tailstack zfs-import-dpool-start[48154]: The pool can be imported, use 'zpool import -f' to import the pool.
Feb 21 20:07:58 tailstack zfs-import-dpool-start[48481]: cannot import 'dpool': pool was previously in use from another system.
Feb 21 20:07:58 tailstack zfs-import-dpool-start[48481]: Last accessed by nixos (hostid=8425e349) at Sat Feb 21 19:22:46 2026
Feb 21 20:07:58 tailstack zfs-import-dpool-start[48481]: The pool can be imported, use 'zpool import -f' to import the pool.
~
~
~
~

18:08:30
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her) *
● zfs-import-dpool.service - Import ZFS pool "dpool"
     Loaded: loaded (/etc/systemd/system/zfs-import-dpool.service; enabled; preset: ignored)
     Active: activating (start) since Sat 2026-02-21 20:07:49 EET; 9s ago
        Job: 775
 Invocation: 05ae6b72b3fd451b9645bf37d15f51e5
   Main PID: 46337 (zfs-import-dpoo)
         IP: 0B in, 0B out
         IO: 403.4M read, 0B written
      Tasks: 2 (limit: 309192)
     Memory: 3.8M (peak: 31.6M)
        CPU: 1.560s
     CGroup: /system.slice/zfs-import-dpool.service
             ├─46337 /nix/store/f15k3dpilmiyv6zgpib289rnjykgr1r4-bash-5.3p9/bin/bash /nix/store/7pq6iigrnrf05qlkmp9gqk72j806nwgw-unit-script-zfs-import-dpool-start/bin/zfs-import-dpool-start
             └─48644 sleep 1

Feb 21 20:07:54 tailstack zfs-import-dpool-start[47498]: The pool can be imported, use 'zpool import -f' to import the pool.
Feb 21 20:07:55 tailstack zfs-import-dpool-start[47827]: cannot import 'dpool': pool was previously in use from another system.
Feb 21 20:07:55 tailstack zfs-import-dpool-start[47827]: Last accessed by nixos (hostid=8425e349) at Sat Feb 21 19:22:46 2026
Feb 21 20:07:55 tailstack zfs-import-dpool-start[47827]: The pool can be imported, use 'zpool import -f' to import the pool.
Feb 21 20:07:57 tailstack zfs-import-dpool-start[48154]: cannot import 'dpool': pool was previously in use from another system.
Feb 21 20:07:57 tailstack zfs-import-dpool-start[48154]: Last accessed by nixos (hostid=8425e349) at Sat Feb 21 19:22:46 2026
Feb 21 20:07:57 tailstack zfs-import-dpool-start[48154]: The pool can be imported, use 'zpool import -f' to import the pool.
Feb 21 20:07:58 tailstack zfs-import-dpool-start[48481]: cannot import 'dpool': pool was previously in use from another system.
Feb 21 20:07:58 tailstack zfs-import-dpool-start[48481]: Last accessed by nixos (hostid=8425e349) at Sat Feb 21 19:22:46 2026
Feb 21 20:07:58 tailstack zfs-import-dpool-start[48481]: The pool can be imported, use 'zpool import -f' to import the pool.
~
~
~
~
18:08:39
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)found the problem!!18:08:43
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)forceimport was it18:17:40
@h7x4:nani.wtfh7x4 changed their profile picture.19:26:50
@h7x4:nani.wtfh7x4 changed their profile picture.19:30:18
@h7x4:nani.wtfh7x4 changed their profile picture.19:33:46
22 Feb 2026
@quilljade83:matrix.orgQuill joined the room.00:45:39
23 Feb 2026
@sinan:sinanmohd.comsinan changed their profile picture.13:20:05
@sinan:sinanmohd.comsinan 13:20:13
@sinan:sinanmohd.comsinan 13:20:15
@sinan:sinanmohd.comsinan 13:20:17
@sinan:sinanmohd.comsinan 13:20:21
@sinan:sinanmohd.comsinan 13:21:02
24 Feb 2026
@blitzcli:matrix.orgBlitzCLI joined the room.06:03:12
25 Apr 2024
@zraexy:nixos.devDavid Mell (zraexy) joined the room.23:38:25
@zraexy:nixos.devDavid Mell (zraexy) changed their display name from David Mell to David Mell (zraexy).23:51:57
26 Apr 2024
@raj-magesh:matrix.orgRaj

Couple of questions about NixOS live USBs:

I want to partition my 64 GB USB flash drive into two partitions (FAT32 live USB + ext4 storage), so I used the following disko config:

let
  usb = "/dev/disk/by-id/usb-USB_SanDisk_3.2Gen1_0401a943ae4197a38a6f9070194e9ea2b3fb8dbb7997e05ed1b197c0e28946be4b8f000000000000000000001cf4be6800926418a955810751ab6336-0:0";
in {
  disko.devices = {
    disk = {
      live = {
        type = "disk";
        device = usb;
        content = {
          type = "gpt";
          partitions = {
            ESP = {
              type = "EF00";
              device = "${usb}-part1";
              priority = 0;
              size = "8192M";
              content = {
                type = "filesystem";
                format = "vfat";
              };
            };
            storage = {
              device = "${usb}-part2";
              priority = 1;
              size = "100%";
              content = {
                type = "filesystem";
                format = "ext4";
              };
            };
          };
        };
      };
    };
  };
}

I then copied over the files from the (minimal, non-graphical) NixOS live ISO into partition 1, hoping that the instructions on the Arch wiki would generalize to NixOS, but then my live ISO gets stuck with the following error message:

[...]
Timed out waiting for device /dev/root, trying to mount anyway
mounting /dev/root on /iso...
mount: mounting /dev/root on /mnt-root/iso failed: No such file or directory

An error occurred [...]

How can I use my USB flash drive as both a live USB and as a storage device? I found this relevant Discourse link but there was no resolution to the problem there.

I realize this might not be the best place to ask this, but I figured that folks here would have expertise configuring boot partitions correctly.

02:02:16
@raj-magesh:matrix.orgRaj *

Couple of questions about NixOS live USBs:

I want to partition my 64 GB USB flash drive into two partitions (FAT32 live USB + ext4 storage), so I used the following disko config:

let
  usb = "/dev/disk/by-id/usb-USB_SanDisk_3.2Gen1_0401a943ae4197a38a6f9070194e9ea2b3fb8dbb7997e05ed1b197c0e28946be4b8f000000000000000000001cf4be6800926418a955810751ab6336-0:0";
in {
  disko.devices = {
    disk = {
      live = {
        type = "disk";
        device = usb;
        content = {
          type = "gpt";
          partitions = {
            ESP = {
              type = "EF00";
              device = "${usb}-part1";
              priority = 0;
              size = "8192M";
              content = {
                type = "filesystem";
                format = "vfat";
              };
            };
            storage = {
              device = "${usb}-part2";
              priority = 1;
              size = "100%";
              content = {
                type = "filesystem";
                format = "ext4";
              };
            };
          };
        };
      };
    };
  };
}

I then copied over the files from the (minimal, non-graphical) NixOS live ISO into partition 1, hoping that the instructions on the Arch wiki would generalize to NixOS, but then my live ISO gets stuck with the following error message:

[...]
Timed out waiting for device /dev/root, trying to mount anyway
mounting /dev/root on /iso...
mount: mounting /dev/root on /mnt-root/iso failed: No such file or directory

An error occurred [...]

How can I use my USB flash drive as both a live USB and as a storage device? I found this relevant Discourse link but there was no resolution to the problem there.

I realize this might not be the best place to ask this, but I figured that folks here would have expertise configuring boot partitions correctly.

For reference, the NixOS manual says I should dd the ISO to the disk directly: sudo dd if=<path-to-image> of=/dev/sdX bs=4M conv=fsync

02:12:28

Show newer messages


Back to Room ListRoom Version: 10