Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Is it possible to share /tmp?

Featured Replies

This is probably a dumb question with a simple answer, but is it possible to share /tmp to clients?

 

I would like to use it for Tdarr transcoding to save writes on my cache SSD, but I need my windows nodes to be able to access it as well

  • Community Expert

Why does anything need to access transcoding except the application using it?

  • Author

Because of how Tdarr works.  There's a centralized "transcode" directory that all of the nodes/server are connected to.  The node does the conversion to that directory, then copies it out of the directory at the end of the transcode.  In my case the server is in a docker container, but all of my nodes are standalone Windows boxes.

 

I honestly don't know why the individual nodes don't write to local storage for transcode, possibly for use in other docker containers or something.

  • Community Expert

So are you talking about the path /tmp in the Unraid host, or about the path /tmp within the container?

  • Author

On the host.

 

I want to map Docker: "/temp" to Unraid: "/tmp" and point transcodes at the Docker: "/temp" so that operations happen in RAM rather than on the SSD.

 

However the Windows clients need to be able to map the Unraid: "/tmp" to something like X:\ for it to work correctly.

Edited by weslocke

  • Community Expert

How much RAM do you have? Do the windows clients need to be able to modify the contents of /tmp?

  • Author

128gig, and yes.

 

I was essentially wanting windows systems to connect to the Unraid box something like:

 

x:\ -> /mnt/users/Videos

y:\ -> /mnt/users/Pictures

z:\ -> /tmp

 

However now it's academic.  I just tossed the Tdarr server onto one of the Windows boxes so that I didn't have to worry about path translations at all.  I hate not having it in a Docker container, but it was too much of a pain to get set up.  Took about a minute with the Windows install.

 

Though I am still curious if it would be possible to expose system level directories in Unraid to client systems.  /etc or tmp for example.  I'm not saying it's a good idea, mind you, just more curious

  • Community Expert

I would say it's a bad idea, but you can probably do it if you know how to speak SMB.

 

Settings - SMB - SMB Extras

  • Author

Ahh...  didn't even think about directly working on the samba setup.  Thanks!

  • 2 months later...

For future folks coming across this thread (as I just did on a google search for the exact same reason)

 

1) Edit your shares in /etc/samba/smb-shares.conf  (you can just copy another share's section and change the path and name)

[tdarr]
        path = /tmp/tdarr
        comment =
        browseable = yes
        # Private
        writeable = no
        read list =
        write list = YOURUSERNAME
        valid users =  YOURUSERNAME
        case sensitive = auto
        preserve case = yes
        short preserve case = yes

 

2) Restart  /etc/rc.d/rc.samba restart

 

This will only work until restart, so you'd have to put this into SMB extras to make this work through a restart, but if you're like me, you only need the windows machine temporarily to work through a big backlog.

Edited by ionred

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.