VLC cannot play files on ZFS RAID array


It seems that VLC (both 3.0 and 4.0) cannot find my ZFS RAID array: https://i.imgur.com/CeUuG56.png and https://i.imgur.com/T5miGuP.png even when I install it with --classic or --devmode. I would appreciate if this could be looked into.

VLC 3.0 and 4.0 installed through apt work just fine for all files on my ZFS RAID array without issue.

Thank you.

mount your raid somewhere underneath /media/$USER and use:

sudo snap connect vlc:removable-media

then you sould be able to access the files there …


Thanks for the reply, but that won’t work. ZFS RAID arrays are not a block device, so it returns: mount: /data is not a block device

That command also doesn’t help make /data visible to VLC, unfortunately.

I would appreciate if this could be looked into as it means anyone who is using ZFS for media storage (which is a surprising amount of people) cannot use a VLC snap.


snap confinement will only allow access to either the $SNAP_{USER_}DATA, $SNAP_{USER_}COMMON dirs or via interfaces to /media (via the removable-media interface) or non-hidden files in $HOME (via the home interface).

If you want to access your files the only way to do this is to make your ZFS raid show up under one of these dirs (by (bind-)mounting it there or configuring it in a way it becomes a subdir of them) and use the respective interface. This is not specific to ZFS or any other filesystem it is a general confinement restriction.

Yup you were right, you can mount existing mountpoints with bind: sudo mount -o bind /data /media/data then you can access it from /media/data.

1 Like