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.

Mapping sub directory differently than parent directory

Featured Replies

I think this is a fairly straightforward question but my Google-Fu isn't good enough to find an answer apparently. Can you map a subdirectory of an already mapped location to somewhere different like the following?

/config  ->  /mnt/user/appdata/PlexMediaServer
/config/other  ->  /mnt/user/other

I have tried mapping the above to see if it works like I'd hoped but I've either done it wrong or it doesn't work.

Edited by Dipskcit

6 hours ago, Dipskcit said:

I think this is a fairly straightforward question but my Google-Fu isn't good enough to find an answer apparently. Can you map a subdirectory of an already mapped location to somewhere different like the following?

/config  ->  /mnt/user/appdata/PlexMediaServer
/config/other  ->  /mnt/user/other

I have tried mapping the above to see if it works like I'd hoped but I've either done it wrong or it doesn't work.

I don't think it would work with a parent + a sub.

 

Why don't you just map /other instead of /config/other?

Usually simpler is better.

 

Otherwise an alternative is to create symlinks in the host which I try to avoid doing in /mnt/user because of potential issues with Unraid own shfs process.

  • Author
7 hours ago, testdasi said:

Why don't you just map /other instead of /config/other?

Usually simpler is better.

I'd like to but I don't think I can move it. The real 'other' is Plex's cache folder for Sync jobs is filling up my relatively small cache drive.

  • Author
7 hours ago, testdasi said:

Otherwise an alternative is to create symlinks in the host which I try to avoid doing in /mnt/user because of potential issues with Unraid own shfs process.

If I were do go this route what precautions should I take to not mess up anything? Could I symlink within the docker image to /other and then map that?

1 hour ago, Dipskcit said:

If I were do go this route what precautions should I take to not mess up anything? Could I symlink within the docker image to /other and then map that?

What I do is to map disk and not user share just to be 100% sure there can be no wrong.

So let's say I have /mnt/user/other that is on the array and /mnt/user/appdata/PlexMediaServer on cache.

Then

cd /mnt/cache/appdata/PlexMediaServer
ln -s /mnt/disk1/other other

You get the picture. Obviously appdata is set to Cache = Only so that there won't be any mover action.

 

The map /config to /mnt/cache/appdata/PlexMediaServer

Then anything written to /config/other => /mnt/cache/appdata/PlexMediaServer/other => /mnt/disk1/other

 

It's overly cautious but I rather err on the safe side.

 

  • Author

That's done the trick, thanks for the help :)

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.