FAQ  •  Register  •  Login

Best way of mounting network shares - Linux

<<

Luckyfriend222

Streaming enthusiast

Posts: 46

Joined: Thu Jul 04, 2013 7:49 am

Post Fri May 02, 2014 7:53 am

Best way of mounting network shares - Linux

Hey guys

I am not sitting with a specific problem. It's more of an enquiry about some features.

I am in the process of upgrading my home system (computer part of the system anyway), and this means that my setup will have to change. Currently I have a small Microserver which has local disks with content, and the library therefore is easy to set up. I am changing this though. I am getting a small Mac Mini which will either have Fedora 20 of CentOS 6.5 on it, an Serviio running on there. Then I want to purchase a NAS device with all the disks. In your experience, what's the best way of doing this? Mounting shares on local mount points on the Mini Mac (Samba), or adding the shared folder location (the path to the NAS) directly into Serviio?

If I understand correctly Serviio will see these folders in different ways? My thoughts are if I mount them locally via Samba and add them from the local mount point, permissions will not be an issue, and Serviio will run as if it is local disks?

Any "potholes" I have to be aware of in creating such a setup?

Thanks in advance!
<<

Iveky

User avatar

DLNA master

Posts: 329

Joined: Thu Jan 31, 2013 5:17 pm

Location: Split, Croatia

Post Fri May 02, 2014 8:30 am

Re: Best way of mounting network shares - Linux

i setup fedora with 3 local drives, in future i will add fourth instead of dvd-rom, no more space inside. i prefer that way.
beware (make your own startup script) that you dont start serviio if nas is not reachable (offline). serviio will remove things from library and add them again later when nas is online, so maybe better not start it?

Sent from my LG-E440 using Tapatalk 2
<<

Luckyfriend222

Streaming enthusiast

Posts: 46

Joined: Thu Jul 04, 2013 7:49 am

Post Fri May 02, 2014 9:57 am

Re: Best way of mounting network shares - Linux

Iveky wrote:beware (make your own startup script) that you dont start serviio if nas is not reachable (offline). serviio will remove things from library and add them again later when nas is online, so maybe better not start it?


Thanks! That is a very good point well made! Hmmm, will think of a way for Fedora to "test" NAS connectivity before launchin Serviio. Anyone with such a script is MORE than welcome to post their's :D I will gladly use that one instead! ;)
<<

Iveky

User avatar

DLNA master

Posts: 329

Joined: Thu Jan 31, 2013 5:17 pm

Location: Split, Croatia

Post Fri May 02, 2014 9:37 pm

Re: Best way of mounting network shares - Linux

i think, during boot, fedora several times checks fstab to mount drives. i mount some nfs shares and noticed that (press esc during boot to see messages).
will write some script for ya tomorrow if you still need it...


Sent from my LG-E440 using Tapatalk 2
<<

Iveky

User avatar

DLNA master

Posts: 329

Joined: Thu Jan 31, 2013 5:17 pm

Location: Split, Croatia

Post Fri May 02, 2014 10:45 pm

Re: Best way of mounting network shares - Linux

this is part of my dd-wrt startup script, take this idea and modify it to check already mounted network shares, here I check if some folder is already mounted :)

  Code:
#!/bin/sh
if mount | grep /opt > /dev/null; then
  echo "/opt already mounted"
else
  mount -o bind,noatime /tmp/mnt/sda1/opt /opt
fi

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 86 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.