Skip to content

Instantly share code, notes, and snippets.

@helinwang
Last active February 17, 2024 16:07
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • 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

@mspencerl87
Copy link

mspencerl87 commented Dec 18, 2019

This was exactly my problem.. I just assumed this was automagic. idk too much about 9P or Virtio

@Celsiusss
Copy link

Celsiusss commented Nov 25, 2021

For fstab:

[mount tag] [mount point] 9p trans=virtio,version=9p2000.L,rw,_netdev 0 2

@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 :)

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