Skip to content

Instantly share code, notes, and snippets.

@helinwang
Last active May 31, 2024 21:31
Show Gist options
  • Save helinwang/727c1d0fc94fd9e87b19142610fd6881 to your computer and use it in GitHub Desktop.
Save helinwang/727c1d0fc94fd9e87b19142610fd6881 to your computer and use it in GitHub Desktop.
Unraid: mount a unraid share using the unraid mount tag in Ubuntu

Mounting the shared path You can mount the shared folder using

mount -t 9p -o trans=virtio [mount tag] [mount point] -oversion=9p2000.L

mount tag: As specified in Qemu commandline. mount point: Path to mount point. trans: Transport method (here virtio for using 9P over virtio) version: Protocol version. By default it is 9p2000.u . Other options that can be used include:

msize: Maximum packet size including any headers. By default it is 8KB. access: Following are the access modes access=user : If a user tries to access a file on v9fs filesystem for the first time, v9fs sends an attach command (Tattach) for that user. This is the default mode. access= : It only allows the user with uid= to access the files on the mounted filesystem access=any : v9fs does single attach and performs all operations as one user

Reference: https://wiki.qemu.org/Documentation/9psetup

@maddinek
Copy link

maddinek commented Feb 6, 2023

Thanks for sharing this one! I wasn’t aware of that either and this saved lots of research for me :)

@GaffaSnobb
Copy link

Much appreciated! Worked like a charm for me, Unraid 6.2.10 Ubuntu 24.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment