Skip to content

Instantly share code, notes, and snippets.

@Chuckame
Last active June 14, 2025 22:27
Show Gist options
  • Save Chuckame/69eaf277e4308a198853ea2066b9ac57 to your computer and use it in GitHub Desktop.
Save Chuckame/69eaf277e4308a198853ea2066b9ac57 to your computer and use it in GitHub Desktop.
Unraid: mount share in LXC
# Add this line in your container that needs to mount a share.
# The target path will be relative to the root of the container.
# Note the missing slash '/' in the target path. In the example, the mount point will be at /<target path>
# Without 'create=dir', the container won't be able to start as the /<target path> have to exist to mount properly
lxc.mount.entry = /mnt/user/<the share name> <target path> none bind,create=dir 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment