More > JRiver Media Center 25 for Linux

Is automounted SMB share needed for MC to access media

<< < (2/3) > >>

pepar:
Admittedly, I am a Windows guy and only use Linux for unRAID, Media Center Library Server and clients, and certain specific things like Clonezilla, PartEd, etc. I am boggled by how hard it is to do what I would think isquite a common task, i.e. map a network drive. Why it is so darn elusive I haven’t a clue.

mattkhan:
add it to /etc/fstab

google cifs fstab for articles to explain further, e.g. http://timlehr.com/auto-mount-samba-cifs-shares-via-fstab-on-linux/

an example line, some extra lines added to make it writeable (as I rip to such locations from the box)


--- Code: ---//192.168.1.123/films /media/films cifs file_mode=0777,dir_mode=0777,username=someuser,password=somepass,uid=1000,gid=1000 0 0

--- End code ---

pepar:

--- Quote from: mattkhan on January 05, 2020, 03:45:08 pm ---add it to /etc/fstab

google cifs fstab for articles to explain further, e.g. http://timlehr.com/auto-mount-samba-cifs-shares-via-fstab-on-linux/

an example line, some extra lines added to make it writeable (as I rip to such locations from the box)


--- Code: ---//192.168.1.123/films /media/films cifs file_mode=0777,dir_mode=0777,username=someuser,password=somepass,uid=1000,gid=1000 0 0

--- End code ---

--- End quote ---
Thx. Do I not need to use the "x-systemd.automount" option in that line? I am running Debian 10 Buster.

Zhillsguy:
The following is one version of my fstab line. Since the file server is running MC on Win 10 I use it for all tagging, etc, and don't need write access for the linux machines, so this mounts the share read-only:

//192.168.1.106/Music    /home/user/Music  cifs   auto,user,credentials=/home/user/netlogin  0  0  _netdev
 
You must have samba and cifs-utils installed.

ip is of share server
Music is server share name
This mounts the folder into the user's Music folder (make sure it exists)
The credential file "netlogin" can be named anything just match name and path to the fstab line.

Format and content of "netlogin" file:
--------------------
username=xx
password=xx
--------------------
The values xx must match server's share login credentials.

I was using _netdev when using a machine with wifi, to wait for network.

In a terminal you can run sudo mount -a to test live without rebooting. Keep the fstab file open in editor, save, test.

mattkhan:

--- Quote from: pepar on January 05, 2020, 05:23:52 pm ---Thx. Do I not need to use the "x-systemd.automount" option in that line? I am running Debian 10 Buster.

--- End quote ---
No. See the fstab section in the man for more details https://manpages.debian.org/buster/systemd/systemd.mount.5.en.html

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version