Nixos disk capacity cannot display

Why disk capacity is unknown?

Can you share more information about the disk and how you partitioned it (especially filesystems involved), and do tools like df also show you “garbage” or “useless” information?

Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        790M     0  790M   0% /dev
tmpfs           7.8G  8.0K  7.8G   1% /dev/shm
tmpfs           3.9G  8.6M  3.9G   1% /run
tmpfs           7.8G  456K  7.8G   1% /run/wrappers
/dev/nvme0n1p2  477G  301G  175G  64% /
tmpfs           7.8G  245M  7.5G   4% /tmp
/dev/nvme0n1p1  128M   30M   99M  24% /boot
tmpfs           1.6G  235M  1.4G  15% /run/user/1000

Not using it currently, but I think gnome still uses udisks2 to gather info about your disks, so
services.udisks2.enable = true; might be worth a try, if not already running :slight_smile:

I try it but the disk capacity still be ‘unknown’. The following is my /etc/nixos/configuration.nix:

# Edit this configuration file to define what should be installed on
# your system.  Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).

{ config, pkgs, ... }:

rec {
  # basic {{{ #
  imports =
    [
      # Include the results of the hardware scan.
      ./hardware-configuration.nix
    ];
  nix.settings.experimental-features = [ "nix-command" "flakes" ];
  nix.settings.trusted-users = [ "root" "@wheel" ];
  nix.settings.substituters = [ "https://mirrors.bfsu.edu.cn/nix-channels/store" ];
  nix.settings.use-xdg-base-directories = true;

  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = true;
  boot.kernelPackages = pkgs.linuxPackages_latest;
  boot.tmp.useTmpfs = true;

  nixpkgs.config = {
    allowUnfree = true;
    packageOverrides = pkgs: {
      nur = import
        (
          builtins.fetchTarball
            "https://github.com/nix-community/NUR/archive/master.tar.gz"
        )
        {
          inherit pkgs;
        };
      # https://github.com/nix-community/nix-index-database/issues/69
      nix-index-database = (
        builtins.getFlake "github:nix-community/nix-index-database"
      ).packages.${builtins.currentSystem}.default;
    };
  };
  hardware.enableAllFirmware = true;
  hardware.opengl.extraPackages = with pkgs; [
    # intel-ocl
    intel-compute-runtime
  ];

  security.sudo.wheelNeedsPassword = false;

  networking.hostName = "laptop";
  # Pick only one of the below networking options.
  # networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant.
  networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
  # Open ports in the firewall.
  # networking.firewall.allowedTCPPorts = [ ... ];
  # networking.firewall.allowedUDPPorts = [ ... ];
  # Or disable the firewall altogether.
  networking.firewall.enable = false;

  time.timeZone = "Asia/Shanghai";

  console.font = "latarcyrheb-sun32";
  console.useXkbConfig = true; # use xkbOptions in tty.

  # Define a user account. Don't forget to set a password with ‘passwd’.
  users.defaultUserShell = pkgs.zsh;
  users.users.wzy.isNormalUser = true;
  users.users.wzy.extraGroups = [ "wheel" "networkmanager" "input" "docker" ];

  # List services that you want to enable:

  # Enable the OpenSSH daemon.
  services.openssh.enable = true;

  # Copy the NixOS configuration file and link it from the resulting system
  # (/run/current-system/configuration.nix). This is useful in case you
  # accidentally delete configuration.nix.
  system.copySystemConfiguration = true;

  # This value determines the NixOS release from which the default
  # settings for stateful data, like file locations and database versions
  # on your system were taken. It‘s perfectly fine and recommended to leave
  # this value at the release version of the first install of this system.
  # Before changing this value read the documentation for this option
  # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  system.stateVersion = "22.11"; # Did you read the comment?
  # }}} basic #

  # GUI {{{ #
  # Select internationalisation properties.
  i18n.inputMethod.enabled =
    if
      services.xserver.displayManager.defaultSession == "gnome" then
      "ibus"
    else
      "fcitx5";
  i18n.inputMethod.fcitx5.addons = [ pkgs.fcitx5-rime ];
  i18n.inputMethod.ibus.engines = with pkgs.ibus-engines; [ rime ];

  fonts.fontDir.enable = true;
  fonts.enableDefaultPackages = true;
  fonts.packages = with pkgs; [
    wqy_zenhei
    wqy_microhei
    (nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
  ];
  # Enable the X11 windowing system.
  services.xserver.enable = true;
  services.xserver.libinput.enable = true;
  # Configure keymap in X11
  services.xserver.displayManager.defaultSession = "gnome";
  services.xserver.desktopManager.gnome.enable = services.xserver.displayManager.defaultSession == "gnome";
  services.xserver.displayManager.gdm.enable = services.xserver.displayManager.defaultSession == "gnome";
  # https://github.com/wez/wezterm/issues/3766
  # services.xserver.displayManager.gdm.wayland = false;

  services.xserver.desktopManager.plasma5.enable = services.xserver.displayManager.defaultSession == "plasma";
  services.xserver.displayManager.sddm.enable = services.xserver.displayManager.defaultSession == "plasma";

  services.xserver.desktopManager.lxqt.enable = services.xserver.displayManager.defaultSession == "lxqt";

  services.xserver.desktopManager.xfce.enable = services.xserver.displayManager.defaultSession == "xfce";

  services.xserver.displayManager.lightdm.greeters.slick.font.name = "Ubuntu 24";
  # https://github.com/Freed-Wu/my-x11-keymaps
  services.xserver.xkbDir = ./xkb;

  services.touchegg.enable = true;
  services.picom.enable = services.xserver.displayManager.defaultSession != "gnome" && services.xserver.displayManager.defaultSession != "plasma";
  services.picom.fade = true;
  services.picom.inactiveOpacity = 0.95;
  services.picom.settings = {
    blur = {
      kern = "3x3box";
      background-exclude = [
        "class_g ?= 'zoom'"
        "window_type = 'dock'"
        "class_g ?= 'wemeetapp'"
        "name = 'rect-overlay'"
        "window_type = 'desktop'"
        "_GTK_FRAME_EXTENTS@:c"
      ];
    };
    shadow = true;
    shadowExclude = [
      "name = 'cpt_frame_xcb_window'"
      "class_g ?= 'zoom'"
      "class_g ?= 'wemeetapp'"
      "name = 'rect-overlay'"
      "name = 'Notification'"
      "class_g = 'Conky'"
      "class_g ?= 'Notify-osd'"
      "class_g = 'Cairo-clock'"
      "_GTK_FRAME_EXTENTS@:c"
    ];
  };

  # Enable CUPS to print documents.
  services.printing.enable = true;

  services.xserver.excludePackages = [
    pkgs.xterm
  ];

  # Enable sound.
  sound.enable = true;
  hardware.pulseaudio.enable = true;

  environment.lxqt.excludePackages = [
    pkgs.lxqt.qterminal
  ];
  environment.xfce.excludePackages = [
    pkgs.xfce.xfce4-terminal
  ];
  environment.gnome.excludePackages = [
    pkgs.gnome-console
    pkgs.gnome.epiphany
    pkgs.gnome.evince
  ];
  environment.plasma5.excludePackages = [
    pkgs.plasma5Packages.konsole
    pkgs.plasma5Packages.konqueror
    pkgs.plasma5Packages.okular
  ];
  # }}} GUI #

  # List packages installed in system profile. To search, run:
  # $ nix search wget
  environment.systemPackages = with pkgs;
    [
      man-pages
      man-pages-posix
      glibcInfo
      # python {{{ #
      (
        python3.withPackages (
          p: with p; [
            nvchecker
            openai
            # tensorflow is broken
            # wandb
            polib
            build
            gdown
            isort
            pudb
            ptpython
            rich
            colorama
            beautifulsoup4
            lxml
            pandas
            pytest
            pip
            dbus-python
            jedi-language-server
            tensorboard
            torchWithoutCuda
            torchvision
            torchmetrics
            sphinx
            py-cpuinfo
            nur.repos.Freed-Wu.mulimgviewer
            nur.repos.Freed-Wu.help2man
            nur.repos.Freed-Wu.translate-shell
            nur.repos.Freed-Wu.repl-python-wakatime
            nur.repos.Freed-Wu.repl-python-codestats
            nur.repos.Freed-Wu.autoconf-language-server
            nur.repos.Freed-Wu.bitbake-language-server
            nur.repos.Freed-Wu.make-language-server
            # pypandoc's check fails
            # nur.repos.Freed-Wu.pkgbuild-language-server
            # nur.repos.Freed-Wu.portage-language-server
            # nur.repos.Freed-Wu.requirements-language-server
            nur.repos.Freed-Wu.sublime-syntax-language-server
            nur.repos.Freed-Wu.termux-language-server
            nur.repos.Freed-Wu.xilinx-language-server
          ]
        )
      )
      trash-cli
      visidata
      asciinema
      pdd
      grc
      hyfetch
      pre-commit
      doq
      cmake-format
      cmake-language-server
      # }}} python #
      # perl {{{ #
      (
        perl.withPackages (
          p: with p; [
            PerlTidy
            po4a
            PerlLanguageServer
          ]
        )
      )
      rename
      exiftool
      parallel
      # }}} perl #
      # ruby {{{ #
      (
        ruby.withPackages (
          p: with p; [
            solargraph
            rubocop
            pry
          ]
        )
      )
      # }}} ruby #
      # nodejs {{{ #
      nodejs
      nodePackages.gitmoji-cli
      # https://github.com/NixOS/nixpkgs/pull/245016
      # nodePackages.gitmoji-chanagelog
      # }}} nodejs #
      # lua {{{ #
      (
        lua.withPackages (
          p: with p; [
            ldoc
            argparse
            luafilesystem
            # https://github.com/NixOS/nixpkgs/issues/244771
            # ansicolors
            # https://github.com/NixOS/nixpkgs/issues/223852
            # luaprompt
          ]
        )
      )
      luarocks-nix
      lua-language-server
      # }}} lua #
      # rust {{{ #
      manix
      nix-index-database
      nixpkgs-fmt
      nixd
      cargo
      firefox
      wezterm
      onefetch
      mdcat
      exa
      fd
      vivid
      delta
      bat
      ripgrep
      # https://discourse.nixos.org/t/ripgrep-all-build-error-on-latest-unstable/31907/5
      # ripgrep-all
      bottom
      hexyl
      hyperfine
      texlab
      typst
      typst-lsp
      # }}} rust #
      # go {{{ #
      go
      fq
      actionlint
      fzf
      scc
      direnv
      gh
      wakatime
      gdu
      shfmt
      git-lfs
      cog
      nix-build-uncached
      # }}} go #
      # shell {{{ #
      wgetpaste
      pass
      hr
      has
      lesspipe
      bats
      bats.libraries.bats-support
      bats.libraries.bats-assert
      bash-completion
      zsh-completions
      zsh-powerlevel10k
      nur.repos.Freed-Wu.manpager
      nur.repos.Freed-Wu.undollar
      nur.repos.Freed-Wu.bash-prompt-style
      # }}} shell #
      # haskell {{{ #
      # broken
      # haskellPackages.nix-linter
      # haskellPackages.nvfetcher
      haskellPackages.ShellCheck
      haskellPackages.pandoc-cli
      haskellPackages.cachix
      # }}} haskell #
      # f# {{{ #
      marksman
      # }}} f# #
      # java {{{ #
      jdk
      pdftk
      # }}} java #
      # c {{{ #
      minicom
      socat
      nmap
      glxinfo
      clinfo
      dpkg
      rpm
      pacman
      fontconfig
      graphicsmagick
      sqlite
      hello
      lsb-release
      gtk3
      glib
      xdotool
      autoconf
      automake
      pkg-config
      readline
      gnumake
      gcc
      gdb
      cgdb
      neomutt
      wget
      curl
      git
      tmux
      file
      dos2unix
      dmidecode
      android-tools
      scrcpy
      pciutils
      usbutils
      texlive.combined.scheme-full
      linux-firmware
      p7zip
      w3m
      elinks
      jq
      acpi
      zathura
      ffmpeg
      x264
      moreutils
      bc
      num-utils
      espeak-classic
      gettext
      progress
      libmodbus
      # }}} c #
      # c++ {{{ #
      copyq
      qq
      clang-tools
      gtest.dev
      cmake
      ninja
      cling
      x265
      aria2
      lftp
      yuview
      luaformatter
      chafa
      patchelf
      ansifilter
      libreoffice-fresh
      nur.repos.linyinfeng.wemeet
      # https://github.com/NixOS/nixpkgs/pull/243429
      nur.repos.Freed-Wu.netease-cloud-music
      # }}} c++ #
      xsel
    ] ++ (if services.xserver.desktopManager.gnome.enable
    then [
      gnome.gnome-tweaks
      gnomeExtensions.gtk4-desktop-icons-ng-ding
      gnomeExtensions.clipboard-indicator
      # https://github.com/NixOS/nixpkgs/pull/243032
      nur.repos.Freed-Wu.g3kb-switch
    ] else [ ]) ++ (if hardware.opengl ? extraPackages &&
    builtins.elem intel-compute-runtime hardware.opengl.extraPackages
    then [
      intel-gpu-tools
    ] else [ ]);
  # wl-clipboard breaks vim / firefox
  # ++ (
  #   if services.xserver.displayManager.gdm ? wayland && ! services.xserver.displayManager.gdm.wayland then
  #     [ xsel ]
  #   else [ wl-clipboard ]
  # );

  # program {{{ #
  virtualisation.docker.enable = true;
  virtualisation.docker.storageDriver = "btrfs";
  virtualisation.docker.autoPrune.enable = true;
  virtualisation.docker.rootless.enable = true;
  virtualisation.docker.rootless.setSocketVariable = true;

  services.udisks2.enable = services.xserver.displayManager.defaultSession == "gnome";
  services.dockerRegistry.enable = true;
  services.dockerRegistry.enableDelete = true;
  services.dockerRegistry.enableGarbageCollect = true;
  services.v2raya.enable = true;

  programs.proxychains.enable = true;
  programs.proxychains.proxies = {
    myproxy = {
      type = "socks5";
      host = "127.0.0.1";
      port = 1080;
    };
  };
  programs.less.envVariables = {
    LESS = "--mouse -S -I -R -M";
  };
  programs.tmux.terminal = "screen-256color";

  # Some programs need SUID wrappers, can be configured further or are
  # started in user sessions.
  programs.zsh.enable = true;
  programs.zsh.enableBashCompletion = true;
  programs.zsh.enableGlobalCompInit = true;
  programs.zsh.autosuggestions.async = true;
  programs.zsh.setOptions = [ "HIST_IGNORE_DUPS" "SHARE_HISTORY" "HIST_FCNTL_LOCK" "emacs" ];
  programs.zsh.histSize = 20000;
  programs.gnupg.agent.enable = true;
  programs.gnupg.agent.enableSSHSupport = true;
  programs.neovim.enable = true;
  programs.neovim.defaultEditor = true;
  programs.neovim.vimAlias = true;
  programs.neovim.viAlias = true;
  programs.neovim.withNodeJs = true;
  programs.neovim.configure = {
    customRC = ''
      if filereadable(stdpath('config') . '/init.vim')
        execute 'source' stdpath('config') . '/init.vim'
      endif
    '';
  };
  # }}} program #
}
# ex: foldmethod=marker

Is it running? I.e. systemctl status udisks2? What does udisksctl info say (run in nix shell nixpkgs#udisks if udisks is not in your current profile)

Yes, It is running.

$ systemctl status udisks2
● udisks2.service - Disk Manager
     Loaded: loaded (/etc/systemd/system/udisks2.service; linked; preset: enabled)
     Active: active (running) since Sat 2023-09-02 14:27:48 CST; 19h ago
       Docs: man:udisks(8)
   Main PID: 444242 (udisksd)
         IP: 0B in, 0B out
         IO: 6.5M read, 0B written
      Tasks: 6 (limit: 18915)
     Memory: 9.4M
        CPU: 2.501s
     CGroup: /system.slice/udisks2.service
             └─444242 /nix/store/1hfnzm9s9idjag0xz17slq5fr7igsbgd-udisks-2.10.0/libexec/udisks2/udisksd

Sep 02 14:27:48 laptop systemd[1]: Started Disk Manager.
Sep 02 14:27:48 laptop udisksd[444242]: Acquired the name org.freedesktop.UDisks2 on the system message bus
Sep 02 15:32:34 laptop udisksd[444242]: Error getting 'loop6' information: Failed to get status of the device loop6: No such device or address (g-bd-loop-error-quark, 2)
Sep 02 15:32:34 laptop udisksd[444242]: Error getting 'loop0' information: Failed to get status of the device loop0: No such device or address (g-bd-loop-error-quark, 2)
Sep 02 15:32:34 laptop udisksd[444242]: Error getting 'loop7' information: Failed to get status of the device loop7: No such device or address (g-bd-loop-error-quark, 2)
Sep 02 15:32:34 laptop udisksd[444242]: Error getting 'loop1' information: Failed to get status of the device loop1: No such device or address (g-bd-loop-error-quark, 2)
Sep 02 15:32:34 laptop udisksd[444242]: Error getting 'loop2' information: Failed to get status of the device loop2: No such device or address (g-bd-loop-error-quark, 2)
Sep 02 15:32:34 laptop udisksd[444242]: Error getting 'loop3' information: Failed to get status of the device loop3: No such device or address (g-bd-loop-error-quark, 2)
Sep 02 15:32:34 laptop udisksd[444242]: Error getting 'loop4' information: Failed to get status of the device loop4: No such device or address (g-bd-loop-error-quark, 2)
Sep 02 15:32:34 laptop udisksd[444242]: Error getting 'loop5' information: Failed to get status of the device loop5: No such device or address (g-bd-loop-error-quark, 2)
$ udisksctl info -d HFM512GD3JX013N_FYA7N039710607D6F
/org/freedesktop/UDisks2/drives/HFM512GD3JX013N_FYA7N039710607D6F:
  org.freedesktop.UDisks2.Drive:
    CanPowerOff:                false
    Configuration:              {}
    ConnectionBus:              
    Ejectable:                  false
    Id:                         HFM512GD3JX013N-FYA7N039710607D6F
    Media:                      
    MediaAvailable:             true
    MediaChangeDetected:        true
    MediaCompatibility:         
    MediaRemovable:             false
    Model:                      HFM512GD3JX013N
    Optical:                    false
    OpticalBlank:               false
    OpticalNumAudioTracks:      0
    OpticalNumDataTracks:       0
    OpticalNumSessions:         0
    OpticalNumTracks:           0
    Removable:                  false
    Revision:                   41000C20
    RotationRate:               0
    Seat:                       seat0
    Serial:                     FYA7N039710607D6F
    SiblingId:                  
    Size:                       0
    SortKey:                    00coldplug/00fixed/nvme0
    TimeDetected:               1693601112375673
    TimeMediaDetected:          1693601112375673
    Vendor:                     
    WWN:                        
  org.freedesktop.UDisks2.NVMe.Controller:
    ControllerID:                       1
    FGUID:                              
    NVMeRevision:                       1.3
    SanitizePercentRemaining:           -1
    SanitizeStatus:                     never_sanitized
    SmartCriticalWarning:               
    SmartPowerOnHours:                  4989
    SmartSelftestPercentRemaining:      -1
    SmartSelftestStatus:                success
    SmartTemperature:                   312
    SmartUpdated:                       1693706028
    State:                              live
    SubsystemNQN:                       nqn.2021-07.com.skhynix:nvme:nvm-subsystem-sn-FYA7N039710607D6F
    UnallocatedCapacity:                0

Sorry, I kinda forgot about this. If you haven’t solved it by now, you could check whether polkit.service is enabled and running as well, but that’s just a guess tbh. As i understand it thats what gnome uses to run privileged operations. Speaking of which, do the disks display correclty in gnome-disks?

well , i can tell you that if its nixos, it will probably be 99% :wink: …

but seriously…

if you run the gui panel up from cli, do you get any logging from it… it may show us the failure when trying to enumerate/calculate this value?

or journalctl -r , and watch it for errors when you spin this window up.

1 Like
❯ sudo systemctl status polkit.service
● polkit.service - Authorization Manager
     Loaded: loaded (/etc/systemd/system/polkit.service; linked; preset: enabled)
    Drop-In: /nix/store/21jfh0g4130m8z87pba9d84f814s1kmp-system-units/polkit.service.d
             └─overrides.conf
     Active: active (running) since Mon 2023-09-18 11:40:18 CST; 7h ago
       Docs: man:polkit(8)
   Main PID: 1212513 (polkitd)
         IP: 0B in, 0B out
         IO: 1.1M read, 0B written
      Tasks: 4 (limit: 18915)
     Memory: 2.9M
        CPU: 708ms
     CGroup: /system.slice/polkit.service
             └─1212513 /nix/store/32s2i2yr6pyq4ihldvzvcxf3qc80bllb-polkit-122/lib/polkit-1/polkitd --no-debug

Sep 18 11:40:18 laptop systemd[1]: Starting Authorization Manager...
Sep 18 11:40:18 laptop polkitd[1212513]: Started polkitd version 122
Sep 18 11:40:18 laptop polkitd[1212513]: Loading rules from directory /etc/polkit-1/rules.d
Sep 18 11:40:18 laptop polkitd[1212513]: Loading rules from directory /run/current-system/sw/share/polkit-1/rules.d
Sep 18 11:40:18 laptop polkitd[1212513]: Finished loading, compiling and executing 8 rules
Sep 18 11:40:18 laptop systemd[1]: Started Authorization Manager.
Sep 18 11:40:18 laptop polkitd[1212513]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Sep 18 11:40:18 laptop polkitd[1212513]: Registered Authentication Agent for unix-session:2 (system bus name :1.65 [/nix/store/z1bvmz5p7vwcpmqvm8kjravhngx79czl-gno>

do the disks display correclty in gnome-disks?

it may show us the failure when trying to enumerate/calculate this value?

❯ gnome-control-center
19:06:53.9706                  Gtk[1344698]: WARNING: Unknown key gtk-modules in /home/wzy/.config/gtk-4.0/settings.ini
19:06:53.9801                  Gtk[1344698]: WARNING: Theme parser error: gtk.css:98:3-4: Expected a valid selector
19:06:53.9802                  Gtk[1344698]: WARNING: Theme parser error: gtk.css:100:5-6: Expected a valid selector

(process:1344991): Gtk-WARNING **: 19:07:05.440: Unknown key gtk-modules in /home/wzy/.config/gtk-4.0/settings.ini

(process:1344991): Gtk-WARNING **: 19:07:05.445: Theme parser error: gtk.css:98:3-4: Expected a valid selector

(process:1344991): Gtk-WARNING **: 19:07:05.445: Theme parser error: gtk.css:100:5-6: Expected a valid selector

(process:1344991): Gtk-CRITICAL **: 19:07:05.597: _gtk_css_corner_value_get_x: assertion 'corner->class == &GTK_CSS_VALUE_CORNER' failed

(process:1344991): Gtk-CRITICAL **: 19:07:05.597: _gtk_css_corner_value_get_y: assertion 'corner->class == &GTK_CSS_VALUE_CORNER' failed

(process:1344991): Gtk-CRITICAL **: 19:07:05.597: _gtk_css_corner_value_get_x: assertion 'corner->class == &GTK_CSS_VALUE_CORNER' failed

(process:1344991): Gtk-CRITICAL **: 19:07:05.597: _gtk_css_corner_value_get_y: assertion 'corner->class == &GTK_CSS_VALUE_CORNER' failed

(process:1344991): Gtk-CRITICAL **: 19:07:05.597: _gtk_css_corner_value_get_x: assertion 'corner->class == &GTK_CSS_VALUE_CORNER' failed

(process:1344991): Gtk-CRITICAL **: 19:07:05.597: _gtk_css_corner_value_get_y: assertion 'corner->class == &GTK_CSS_VALUE_CORNER' failed

(process:1344991): Gtk-CRITICAL **: 19:07:05.597: _gtk_css_corner_value_get_x: assertion 'corner->class == &GTK_CSS_VALUE_CORNER' failed

(process:1344991): Gtk-CRITICAL **: 19:07:05.597: _gtk_css_corner_value_get_y: assertion 'corner->class == &GTK_CSS_VALUE_CORNER' failed
❯ journalctl -r
Sep 18 19:08:14 laptop .firefox-wrappe[1251115]: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Sep 18 19:08:14 laptop .firefox-wrappe[1251115]: invalid (NULL) pointer instance
Sep 18 19:08:14 laptop firefox[1251115]: [Parent 1251115, Main Thread] WARNING: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib w>
Sep 18 19:08:14 laptop firefox[1251115]: [Parent 1251115, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /build/firefox-117.0.1/toolki>
Sep 18 19:08:13 laptop .firefox-wrappe[1251115]: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Sep 18 19:08:13 laptop .firefox-wrappe[1251115]: invalid (NULL) pointer instance
Sep 18 19:08:13 laptop firefox[1251115]: [Parent 1251115, Main Thread] WARNING: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib w>
Sep 18 19:08:13 laptop firefox[1251115]: [Parent 1251115, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /build/firefox-117.0.1/toolki>
Sep 18 19:07:44 laptop .firefox-wrappe[1251115]: Unable to load split_v from the cursor theme
Sep 18 19:07:35 laptop systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Sep 18 19:06:54 laptop systemd[1]: Started Hostname Service.
Sep 18 19:06:54 laptop dbus-daemon[719]: [system] Successfully activated service 'org.freedesktop.hostname1'
Sep 18 19:06:54 laptop systemd[1]: Starting Hostname Service...
Sep 18 19:06:54 laptop dbus-daemon[719]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' re>
Sep 18 19:06:48 laptop sudo[1341473]: pam_unix(sudo:session): session closed for user root
Sep 18 19:06:47 laptop .firefox-wrappe[1251115]: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Sep 18 19:06:47 laptop .firefox-wrappe[1251115]: invalid (NULL) pointer instance
Sep 18 19:06:47 laptop firefox[1251115]: [Parent 1251115, Main Thread] WARNING: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib w>
Sep 18 19:06:47 laptop firefox[1251115]: [Parent 1251115, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /build/firefox-117.0.1/toolki>
Sep 18 19:06:43 laptop .firefox-wrappe[1251115]: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Sep 18 19:06:43 laptop .firefox-wrappe[1251115]: invalid (NULL) pointer instance
Sep 18 19:06:43 laptop firefox[1251115]: [Parent 1251115, Main Thread] WARNING: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib w>
Sep 18 19:06:43 laptop firefox[1251115]: [Parent 1251115, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /build/firefox-117.0.1/toolki>
Sep 18 19:06:42 laptop .firefox-wrappe[1251115]: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Sep 18 19:06:42 laptop .firefox-wrappe[1251115]: invalid (NULL) pointer instance
Sep 18 19:06:42 laptop firefox[1251115]: [Parent 1251115, Main Thread] WARNING: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib w>
Sep 18 19:06:42 laptop firefox[1251115]: [Parent 1251115, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /build/firefox-117.0.1/toolki>
Sep 18 19:06:41 laptop systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Sep 18 19:06:38 laptop .firefox-wrappe[1251115]: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Sep 18 19:06:38 laptop .firefox-wrappe[1251115]: invalid (NULL) pointer instance
Sep 18 19:06:38 laptop firefox[1251115]: [Parent 1251115, Main Thread] WARNING: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib w>
Sep 18 19:06:38 laptop firefox[1251115]: [Parent 1251115, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /build/firefox-117.0.1/toolki>
Sep 18 19:06:17 laptop .firefox-wrappe[1251115]: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Sep 18 19:06:17 laptop .firefox-wrappe[1251115]: invalid (NULL) pointer instance
Sep 18 19:06:17 laptop firefox[1251115]: [Parent 1251115, Main Thread] WARNING: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib w>
Sep 18 19:06:17 laptop firefox[1251115]: [Parent 1251115, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /build/firefox-117.0.1/toolki>
Sep 18 19:06:17 laptop .firefox-wrappe[1251115]: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Sep 18 19:06:17 laptop .firefox-wrappe[1251115]: invalid (NULL) pointer instance
Sep 18 19:06:17 laptop firefox[1251115]: [Parent 1251115, Main Thread] WARNING: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib w>
Sep 18 19:06:17 laptop firefox[1251115]: [Parent 1251115, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /build/firefox-117.0.1/toolki>
Sep 18 19:06:17 laptop .firefox-wrappe[1251115]: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Sep 18 19:06:17 laptop .firefox-wrappe[1251115]: invalid (NULL) pointer instance
Sep 18 19:06:17 laptop firefox[1251115]: [Parent 1251115, Main Thread] WARNING: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib w>
Sep 18 19:06:17 laptop firefox[1251115]: [Parent 1251115, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /build/firefox-117.0.1/toolki>
Sep 18 19:06:10 laptop systemd[1]: Started Hostname Service.
Sep 18 19:06:10 laptop dbus-daemon[719]: [system] Successfully activated service 'org.freedesktop.hostname1'
Sep 18 19:06:10 laptop systemd[1]: Starting Hostname Service...
Sep 18 19:06:10 laptop dbus-daemon[719]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' re>

Ask the problem in gnome forum:

discuss

Perhaps this upstream bug: Cant detect disk size ¡ Issue #1194 ¡ storaged-project/udisks ¡ GitHub