Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot mount or format microSD card #321

Open
graysonhead opened this issue Apr 16, 2024 · 4 comments · May be fixed by #418
Open

Cannot mount or format microSD card #321

graysonhead opened this issue Apr 16, 2024 · 4 comments · May be fixed by #418
Labels
1. type: Enhancement Contributes a new feature, or a new package 2. priority: 2. normal 2. topic: system integration About our integration of Steam stuff within NixOS 3. status: has PR For bugs, a related PR exists

Comments

@graysonhead
Copy link

Hey there. First of all thanks for this project! This is pretty slick, and I'm hoping to get it working well enough that I can use this in favor of the regular OS. But one major issue that is blocking me is that I can't seem to use microSD cards. Whenever I try to format it, it says "We encountered an error while formatting your microSD card (2). Please try again or contact steam-support."

This microSD card also has a pre-existing steam library on it. When I switch to desktop mode on the Jovian NixOS install, I can see all the games in the desktop version of Steam. So I'm wondering perhaps if the microSD card isn't being auto-mounted in the Steam UI session? Anyone run into this before?

@jptrzy
Copy link

jptrzy commented Jul 7, 2024

Yes, unfortunately there is no auto mounting of microSD card in the Steam UI
or at list to me knowledge.

I have the same issue

@jptrzy
Copy link

jptrzy commented Jul 7, 2024

This is my current walk-around

hardware-configuration.nix

  fileSystems."/mnt/MicroSDCard" = {
    device = "/dev/mmcblk0p1";
    # If you have this partition mounted, then you can check its type by using
    # df -T | grep /dev/${device}
    fsType = "ext4";
    options = [
      # System will boot up if you don't have sd card inserted
      "nofail"
      # After booting up systemd will try mounting the sd card
      "x-systemd.automount"
    ];
  };

This will try mounting /dev/mmcblk0p1 partition at a boot time.
If it is not detected, then the system will boot without any issue, but Systemd will still try to detect if MicroSD Card is inserted and will auto mount it.

It lacks flexibility to be implemented into main branch,
but it should be ok until someone fix this issue.

@Majiir
Copy link

Majiir commented Sep 8, 2024

From .steam/steam/logs/systemmanager.txt, when clicking Format Storage:

[2024-09-08 17:47:58] CClientJobFormatRemovableStorage: starting
[2024-09-08 17:47:58] CClientJobFormatRemovableStorage: stage: 1 progress 0.000000 rtCompletionTime: 0
[2024-09-08 17:47:58] format-sdcard: [JOVIAN] /nix/store/i4zdqksakq68dhvrma9lsh7jda0fhmqb-jovian-stubs/bin/sudo: stub called with: -n /usr/lib/hwsupport/format-sdcard.sh
[2024-09-08 17:47:58] format-sdcard: /nix/store/i4zdqksakq68dhvrma9lsh7jda0fhmqb-jovian-stubs/bin/sudo: line 18: /usr/lib/hwsupport/format-sdcard.sh: No such file or directory
[2024-09-08 17:47:58] format-sdcard returned: 127
[2024-09-08 17:47:59] CClientJobFormatRemovableStorage: result 2

@samueldr
Copy link
Member

We now have mounting:

And formatting is coming:

@samueldr samueldr linked a pull request Oct 27, 2024 that will close this issue
3 tasks
@samueldr samueldr added 2. priority: 2. normal 2. topic: system integration About our integration of Steam stuff within NixOS 3. status: has PR For bugs, a related PR exists 1. type: Enhancement Contributes a new feature, or a new package labels Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. type: Enhancement Contributes a new feature, or a new package 2. priority: 2. normal 2. topic: system integration About our integration of Steam stuff within NixOS 3. status: has PR For bugs, a related PR exists
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants