Skip to content

Instantly share code, notes, and snippets.

@helinwang
Last active June 13, 2022 00:48
Embed
What would you like to do?
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

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