Mount WD-hdd to nixos / nix pkgs - exfat-utils

Hello,

I’m trying to mount a older external western digital hdd (2.5) to nixos.

I found the solution to install “exfat-utils” on nixos but cannot find the package in the 20.03 repo.


udisksctl mount -b “${partHdd}”
Error mounting /dev/sda1: GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Error mounting /dev/sda1 at /run/media/ae/My_Passport: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error


The kind of special thing is that the drive is formatted in ntfs but additionally it contains a Western Digital Virtual CD (VCD) which is the thing that makes it failing.
(Ubuntu 20.04 can read the usb hdd without any issues ?!)

The wiki has something on exFAT: https://nixos.wiki/wiki/FAQ#I.27m_unable_to_connect_my_USB_HDD_.7C_External_HDD_is_failing_to_mount_automatically

There have been some changes with there now being an official kernel driver, which are what you might be running into.

there are two “issues”

  • pkgs fails in build
  • kernel >= 5.4 should already contain the module

Do you know how to install “exfat-utils” in nixos? On reddit they write that it would exist …

If you just want a shell with exfat-utils then nix run nixpkgs.exfat-utils. Otherwise put it in environment.systemPackages in your configuration.nix.

Hello danieldk,

why is it not listed?
https://nixos.org/nixos/packages.html?channel=nixpkgs-unstable&query=exfat-utils

I put it in home.nix and it accepted it (or do I need to set it explicitly in configuration.nix?).

It was renamed to exfat and the search is probably not showing aliases.

The Virtual CD (VCD)* from western digital causes the read issues.
Is there a solution for Nixos?