GithubHelp home page GithubHelp logo

therealbeowulf / steam-deck.mount-external-drive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scawp/steam-deck.mount-external-drive

0.0 0.0 0.0 546 KB

A Script to (Un)Mount and Setup Auto-Mount for an External USB SSD on the Steam Deck

License: Other

Shell 100.00%

steam-deck.mount-external-drive's Introduction

Steam-Deck.Mount-External-Drive

Scripts to Auto-Mount (and to Manually mount & unmount from GameMode) External USB SSD on the Steam Deck

How does this work?

a udev rule is added to /etc/udev/rules.d/99-external-drive-mount.rules which calls systemd /etc/systemd/system/external-drive-mount@[sda1|sda2|sdd1|etc].service that then runs automount.sh to Auto Mount any plugged in USB Storage Device.

/etc/fstab is not required for mounting in this way, (however if a Device has an fstab entry these scripts will still work)

Video Guide

https://youtu.be/TiXmf_b7HF8 (Slightly Out of Date)

Operation

The External Drive(s) will be Auto-Mounted to /run/media/deck/[LABEL] eg /run/media/deck/External-ssd/ if the Device has no label then the Devices UUID will be used eg /run/media/deck/a12332-12bf-a33ab-eef/

The install will also offer an optional install of zMount.sh which will be added to your Steam Library as a non-steam game which can be ran from GameMode, this will allow manual (un)mounting of USB Devices and the SD-Card. (NOTE: This is probably more useful for unmounting as the auto mount script should mount anything anyway).

NOTE!

Drive requires prior formatting (currently tested with NTFS, Ext4, btrfs, NOTE: btrfs mounts with incorrect ownership, TODO). All Partitions will be Mounted on Boot and /or On Insert.

Drive will still need added to Steam as a Steam Library Folder in Desktop mode initially but will appear on subsequent Boots/Inserts. This was the case until recently, now however the Steam Library on the Drive was no longer added to Steam on Inserting the Drive. As Such I've "stolen" the following systemd-run -M 1000@ --user --collect --wait sh -c "./.steam/root/ubuntu12_32/steam steam://addlibraryfolder/${url@Q}" from Valve SD Card Auto Mounting Service (which is pretty similar it turns out!). This "should" automatically add any pre existing SteamLibrary folders if at the root of the drive.

Installation

Via Curl (One Line Install)

In Konsole type curl -sSL https://raw.githubusercontent.com/scawp/Steam-Deck.Mount-External-Drive/main/curl_install.sh | bash

a sudo password is required (run passwd if required first)

Uninstall

sudo rm /etc/udev/rules.d/99-external-drive-mount.rules

sudo rm /etc/systemd/system/[email protected]

sudo rm -r /home/deck/.local/share/scawp/SDMED

sudo udevadm control --reload

sudo systemctl daemon-reload

WORK IN PROGRESS!

This will probably have bugs, so beware! log bugs under issues!

"This is cool! How can I thank you?"

Why not drop me a sub over on my youtube channel ;) Chinballs Gaming

steam-deck.mount-external-drive's People

Contributors

scawp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.