Steam Deck

Steam Deck

Cant get network drive to attach on boot through fstab
I can't get the network drive to mount on boot through fstab. If I run the command sudo mount -a it will mount the drive. So I believe my options in fstab are correct. Does anyone know what I can do to make this drive mount on boot?

Another option I have considered is to make a bash script executable and add that as a non-steam game. Though I won't be able to run as superuser then, it will need a password.

Here is my fstab addition:
555.555.55.55:/mnt/share /home/deck/share nfs defaults,nolock,soft,intr,retry=5,timeo=900,nofail,_netdev 0 0
Last edited by Pleasant Timing; Jul 25, 2023 @ 10:45pm
< >
Showing 1-7 of 7 comments
PopinFRESH Jul 26, 2023 @ 12:10am 
Id suspect it is failing to mount before establishing the network connection. Are you doing this over Wi-Fi or a wired connection via a dock? The nofail option would tell it to just continue booting if the mount fails. Considering it mounts properly via mount -a after finishing boot I’d expect your fstab entry for the nfs mount is fine.

You could simply add “mount -o remount -a” to your users login profile so when the deck user logs in after boot it would re-parse fstab and mount the file system. No need to make a script to just do that.

EDIT: you’d look for the hidden file ~/.bash_login for the deck user. Or you could put it in the deck users ~/.bashrc

https://wiki.archlinux.org/title/bash
Last edited by PopinFRESH; Jul 26, 2023 @ 12:19am
Pleasant Timing Jul 26, 2023 @ 1:33am 
There was no .bash_login. I put "mount -o remount -a" at the end of .bashrc. First reboot it worked. Second and after it did not. When I switched to desktop mode a new terminal popped up with the same error repeated a bunch of times:

mount: /var/log: must be superuser to use mount.
dmesg(1) may have more information after failed mount system call.

I then tried that command in .bash_profile and nothing. I also created the .bash_login file and tried that, but also nothing happened.
Pleasant Timing Jul 26, 2023 @ 1:37am 
I have a dock with Ethernet. When I use Ethernet it does mount on boot. With WiFi it does not mount on boot. The dream is to have all my games in bed though.

I'll look into tomorrow about what I can do with Sudo in bash scripts, of if there is a non sudo mount option I can use
Last edited by Pleasant Timing; Jul 26, 2023 @ 2:15am
PopinFRESH Jul 26, 2023 @ 9:32am 
Yeah the Wi-Fi is not up yet when the boot parses fstab. Try removing it from the deck users bashrc and try putting it in the root user .bashrc (should be /root/.bashrc) I don’t have my Steam Deck handy to check things but hopefully that works for you.
Pleasant Timing Jul 26, 2023 @ 11:44am 
Editing the root directory did not work either. I don't think the root logs in on boot
winnie Jul 27, 2023 @ 2:17am 
That won;t work for root user, as root user isn't even logged in.


I have no idea how to enable it in steam os mode.

In desktop mode you can add *.desktop file to /home/deck/.config/autostart with an analogy to ones that already exists in that folder.


But that won't wok for Gaming mode.
winnie Jul 27, 2023 @ 2:18am 
I guess closest thing to that you want is this https://askubuntu.com/a/727751/489578

But you would need to change script content, it has check for network interface name
`$1 = wlp3s0f0`

You can also look at reference of all available variables for script here: https://man.archlinux.org/man/NetworkManager-dispatcher.8.en#DESCRIPTION


Be aware that script should start with

#!/bin/sh
Last edited by winnie; Jul 27, 2023 @ 2:23am
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Jul 25, 2023 @ 10:39pm
Posts: 7