Difference between revisions of "Net.mounts"
m (added proto=tcp tip for nfs) |
m (add line break) |
||
Line 11: | Line 11: | ||
xmount 192.168.0.44:/nfsroot ShareName nfs | xmount 192.168.0.44:/nfsroot ShareName nfs | ||
note: some NFS's have problems with the default mount option of UDP. If you have issues playing or listing content, then add '''proto=tcp''' as the fourth parameter. | note: some NFS's have problems with the default mount option of UDP. If you have issues playing or listing content, then add '''proto=tcp''' as the fourth parameter. | ||
+ | |||
== Mount a remote FTP == | == Mount a remote FTP == |
Revision as of 21:37, 27 January 2011
Example net.mounts to demonstrate options of xmount to be used in auto-mounting of network shares.
note: that if you store a net.mounts file in /conf/ then it will ALSO execute on startup.
Contents
xmount "//192.168.0.33/ShareName" "ShareName" cifs
if your "guest" account is disabled, you must supply username and password
xmount "//192.168.0.34/ShareName" "ShareName" cifs "user=username,pass=password"
xmount 192.168.0.44:/nfsroot ShareName nfs
note: some NFS's have problems with the default mount option of UDP. If you have issues playing or listing content, then add proto=tcp as the fourth parameter.
Mount a remote FTP
to find advanced options execute: curlftpfs --help
xmount "ftp://192.168.0.234:21" "FTP Name" ftpfs "-o user=UserName:Password -o Option2"
Mount a remote SSH server
sshfs *requires* keyless login
you can view your public key by executing: ssh-public-key
add your key to a remote machine by executing: ssh-copy-id user@server
to find options execute: sshfs --help
xmount "User@ServerName:Directory" "Server Name"sshfs "-o follow_symlinks"
combine previous xmounts using unionfs
unionfs takes a colon delimited list of 'ShareNames' and aggregates their content to the target directory structure is preserved. The following is an example, it mounts 4 remote shares 'hidden' so they are not visible in the OSD and then aggregates them. you hide an xmount by preceeding its 'ShareName' with a . (dot)
xmount "192.168.0.44:/movies" ".movies1" nfs xmount "192.168.0.233:/stuff" ".movies2" nfs xmount "192.168.0.101:/movies3" ".movies3" nfs xmount "192.168.0.151:/videos" ".movies4" nfs xmount ".movies1:.movies2:.movies3:.movies4" "ShareUnion" unionfs