trouble auto mounting nas

Hey y'all I figured would discuss my use case and see if this is even possible. I currently have a windows HTPC that I have windows and retrobat installed.on for emulation. I mounted my NAS as a mapped drive and then I used symlinks to Symlink my different systems in ROMs to the ROMs folder of retrobat so I load up all of my ROMs from my NAS. I want to switch to bazzite for a more console like experience using Retrodeck but I'm not sure how to mount my Nas as a network drive. When I look it up it says it isn't possible because it's immutable and I've been having trouble mounting it in regular fedora workstation as well. Is there any way to do this?
16 Replies
wolfyreload
wolfyreloadβ€’6mo ago
This looks promising https://linuxconfig.org/how-to-mount-a-samba-shared-directory-at-boot Since you using an Atomic desktop you'd need to run the script below to add this to your current installed layers
rpm-ostree install cifs-utils
rpm-ostree install cifs-utils
You have to reboot for the new layer with cifs-utils to be available. Then just follow the rest of the guide
Linux Tutorials - Learn Linux Configuration
How to mount a Samba shared directory at boot
In this tutorial we see how to mount a Samba shared directory at boot using cifs-utils on any Linux distribution.
Sirchacha
SirchachaOPβ€’6mo ago
No description
Sirchacha
SirchachaOPβ€’6mo ago
not sure what this means
HikariKnight
HikariKnightβ€’6mo ago
cifs is already in the image, just add (and change to fit your config) to fstab
//192.168.10.22/storage/Music /home/hk/Music cifs uid=0,credentials=/path/to/credentials/file,iocharset=utf8,vers=3.0,noperm,_netdev 0 0
//192.168.10.22/storage/Music /home/hk/Music cifs uid=0,credentials=/path/to/credentials/file,iocharset=utf8,vers=3.0,noperm,_netdev 0 0
the credential file looks something like this
user=hk
password=somepassword
domain=somedomain
user=hk
password=somepassword
domain=somedomain
you might however have to do a sudo mount -a after login if you so like i do and mount to a special folder, idk why i have to do this on atomic though πŸ€” also do test with sudo mount -a before rebooting
Sirchacha
SirchachaOPβ€’6mo ago
mount error(22): Invalid argument Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg) mount: (hint) your fstab has been modified, but systemd still uses the old version; use 'systemctl daemon-reload' to reload this is what i get when sudo mount -a
HikariKnight
HikariKnightβ€’6mo ago
your options are wrong (maybe credentials file)
Sirchacha
SirchachaOPβ€’6mo ago
so i already had a credentials cause i did this same thing on a linux mint install a couple of days ago user=Sirchacha password=pw domain=WORKGROUP thas whats in mine ugg i redid everything andnow im getting this mount error(115): Operation now in progress
HikariKnight
HikariKnightβ€’6mo ago
try umount the path then mount -a again
Sirchacha
SirchachaOPβ€’6mo ago
how would i unmount?
HikariKnight
HikariKnightβ€’6mo ago
not much else i can suggest since the options you need might be different for your share config, but it should be the same entry you use in mint
Sirchacha
SirchachaOPβ€’6mo ago
ok
HikariKnight
HikariKnightβ€’6mo ago
sudo umount /path/to/folder at this point specifically the samba share mountpoint (the folder you want it to be mounted) as it might be stuck trying to mount it
Sirchacha
SirchachaOPβ€’6mo ago
maybe a restart?
HikariKnight
HikariKnightβ€’6mo ago
im about to sign out for the day. got a day full of meetings tomorrow πŸ™ƒ make sure you comment out the mount then just to be safe, there is a reason we tell people to test with mount -a first because editing the fstab is one way to brick your install (until you manually fix it with a live usb)
Sirchacha
SirchachaOPβ€’6mo ago
op[, i got it, forgot to delete your ip and add mine lol
HikariKnight
HikariKnightβ€’6mo ago
lol that will do it
Want results from more Discord servers?
Add your server